/* Contact Form 7 - Compact & Efficient Design */
.custom-form {
  max-width: 600px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.custom-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.custom-form .row.full,
.custom-form .full {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

.custom-form .field {
  display: flex;
  flex-direction: column;
}

.custom-form label {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form input[type="number"],
.custom-form select,
.custom-form textarea {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.custom-form input[type="text"]:focus,
.custom-form input[type="email"]:focus,
.custom-form input[type="tel"]:focus,
.custom-form input[type="number"]:focus,
.custom-form select:focus,
.custom-form textarea:focus {
  outline: none;
  border-color: #3b53ce;
  box-shadow: 0 0 0 2px rgba(59, 83, 206, 0.1);
}

.custom-form textarea {
  resize: vertical;
  min-height: 100px;
}

.custom-form .wpcf7-form-control.wpcf7-checkbox {
  margin: 10px 0;
}

.custom-form .wpcf7-form-control.wpcf7-checkbox label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.custom-form .wpcf7-form-control.wpcf7-checkbox input {
  margin-right: 8px;
}

.custom-form div:has(> [data-cf7sr-recaptcha]) {
  margin-bottom: 12px;
}

.custom-form .submit-wrap {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}

.custom-form input[type="submit"] {
  flex: 1;
  padding: 12px 24px;
  background: #3b53ce;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-form input[type="submit"]:hover {
  background: #2d3fa6;
}

.custom-form input[type="submit"]:active {
  transform: scale(0.98);
}

/* Validation & Messages */
.custom-form .wpcf7-form-control.wpcf7-text[aria-invalid="true"],
.custom-form .wpcf7-form-control.wpcf7-email[aria-invalid="true"],
.custom-form .wpcf7-form-control.wpcf7-tel[aria-invalid="true"],
.custom-form .wpcf7-form-control.wpcf7-select[aria-invalid="true"],
.custom-form .wpcf7-form-control.wpcf7-textarea[aria-invalid="true"] {
  border-color: #dc2626;
  background: #fef2f2;
}

.custom-form .wpcf7-not-valid-tip {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.wpcf7-response-output {
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 16px;
}

.wpcf7-mail-sent-ok {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.wpcf7-submission-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Responsive */
@media (max-width: 640px) {
  .custom-form .row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .custom-form label {
    font-size: 12px;
  }
  
  .custom-form input[type="submit"] {
    padding: 11px 20px;
    font-size: 13px;
  }
}
