/* =============================================================
   CONTACT.CSS — Sally Mills Consulting
   Contact page — page-specific styles only
   ============================================================= */

/* ── PAGE HEADER ─────────────────────────────────────────── */
.contact-header {
  background-color: var(--c-surface);
  padding: var(--sp-12) 0 var(--sp-8);
  border-bottom: 1px solid var(--c-border);
}

.contact-header-inner {
  max-width: 600px;
}

.contact-h1 {
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 6px;
  margin-bottom: var(--sp-3);
}

.contact-intro {
  font-size: 17px;
  color: var(--c-body);
  line-height: 1.72;
}

/* ── CONTACT BODY ─────────────────────────────────────────── */
.contact-body {
  background-color: var(--c-surface);
  padding: var(--sp-8) 0 var(--sp-12);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--sp-12);
  align-items: start;
}

/* ── FORM ─────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  letter-spacing: 0.01em;
}

.form-label .optional {
  font-weight: 400;
  color: var(--c-muted);
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--c-navy);
  background-color: var(--c-ground);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 100%;
  transition:
    border-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--c-muted);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* Custom select arrow */
.form-select-wrap {
  position: relative;
}

.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--c-muted);
  pointer-events: none;
}

.form-select {
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.65;
}

.form-submit {
  padding-top: var(--sp-1);
}

/* ── DIRECT CONTACT ───────────────────────────────────────── */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-top: 4px;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.contact-detail-value {
  font-size: 15px;
  color: var(--c-navy);
  font-weight: 500;
  line-height: 1.5;
}

.contact-detail-value a {
  color: var(--c-primary);
  transition: color var(--duration) var(--ease);
}

.contact-detail-value a:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact-detail-value a:hover {
  color: var(--c-tertiary);
}

/* ── HONEYPOT ─────────────────────────────────────────────── */
.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

/* ── RADIO GROUP (preferred contact) ─────────────────────── */
.form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.form-legend .optional {
  font-weight: 400;
  color: var(--c-muted);
  margin-left: 4px;
}

.form-radio-group {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.form-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--c-navy);
  cursor: pointer;
  user-select: none;
}

.form-radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── BUTTON STATES ────────────────────────────────────────── */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── reCAPTCHA ────────────────────────────────────────────── */
/* Hide the floating badge — attribution text is in the form instead */
.grecaptcha-badge {
  visibility: hidden !important;
}

.recaptcha-notice {
  margin-top: 12px;
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.6;
}

.recaptcha-notice a {
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration) var(--ease);
}

.recaptcha-notice a:hover {
  color: var(--c-primary);
}

/* ── FIELD-LEVEL VALIDATION ───────────────────────────────── */
.field-error {
  font-size: 13px;
  color: #DC2626;
  line-height: 1.4;
}

.form-input.input-error {
  border-color: #EF4444;
}

.form-input.input-error:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* ── FORM STATUS (error message) ──────────────────────────── */
.form-error-msg {
  background-color: #FEF2F2;
  border: 1.5px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
  color: #DC2626;
  line-height: 1.5;
  margin-bottom: var(--sp-2);
}

.form-error-msg:focus {
  outline: 2px solid #DC2626;
  outline-offset: 3px;
}

/* ── SUCCESS STATE ────────────────────────────────────────── */
.form-success {
  padding: var(--sp-6) 0;
}

.form-success:focus {
  outline: none;
}

.form-success-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.form-success-body {
  font-size: 16px;
  color: var(--c-body);
  line-height: 1.7;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .contact-details {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--c-border);
    padding-top: var(--sp-6);
  }
}

@media (max-width: 767px) {
  .contact-header {
    padding: var(--sp-8) 0 var(--sp-6);
  }

  .contact-body {
    padding: var(--sp-6) 0 var(--sp-8);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
}
