/* Car Accident Clinics - contact page styles
   Builds on css/main.css tokens. No em dashes. */

/* ============================== HERO + FORM ============================== */
.contact-hero {
  position: relative;
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 96px);
  background: var(--paper);
  overflow: hidden;
}
.contact-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.contact-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.contact-glow-a {
  width: 520px; height: 520px;
  top: -240px; left: -140px;
  background: radial-gradient(circle, rgba(42, 140, 119, 0.3), transparent 70%);
}
.contact-glow-b {
  width: 460px; height: 460px;
  bottom: -280px; right: -160px;
  background: radial-gradient(circle, rgba(217, 92, 54, 0.2), transparent 70%);
}
.contact-hero .container { position: relative; }

.breadcrumb { margin-bottom: var(--space-5); }
.breadcrumb ol { list-style: none; display: flex; gap: 10px; align-items: center; }
.breadcrumb li {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--pine-300); }
.breadcrumb a { color: var(--pine-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--persimmon-deep); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-title {
  font-size: clamp(2.4rem, 4.4vw, 3.7rem);
  line-height: var(--lh-display);
  letter-spacing: -0.03em;
  color: var(--pine-900);
  max-width: 16ch;
  text-wrap: balance;
}
.contact-lede {
  margin-top: var(--gap-heading);
  font-size: var(--t-lead);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  max-width: 48ch;
}

.contact-points {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
}
.contact-points li { display: grid; gap: 3px; }
.contact-points strong {
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pine-700);
}
.contact-points span { font-size: var(--t-body-sm); color: var(--muted); line-height: 1.55; }

.contact-direct { margin-top: var(--space-6); }
.contact-direct-label {
  font-size: var(--t-small);
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-email {
  font-family: var(--font-display);
  font-size: var(--t-h4);
  color: var(--pine-900);
  text-decoration: none;
  border-bottom: 2px solid var(--persimmon-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
  word-break: break-word;
}
.contact-email:hover { color: var(--persimmon-deep); border-color: var(--persimmon); }

/* ---------- Form card ---------- */
.contact-form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-float);
}
.form-title {
  font-size: var(--t-h3);
  line-height: var(--lh-snug);
  color: var(--pine-900);
}
.form-sub {
  margin-top: 8px;
  font-size: var(--t-body-sm);
  color: var(--muted);
}
.contact-form {
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-4);
}
.field { display: grid; gap: 7px; }
.field label {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--pine-900);
}
.field label span { color: var(--persimmon); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: var(--t-body);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
.field input::placeholder,
.field textarea::placeholder { color: #9AA6A0; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--cream);
  border-color: var(--pine-500);
  box-shadow: 0 0 0 3px rgba(42, 140, 119, 0.16);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--persimmon);
  box-shadow: 0 0 0 3px rgba(217, 92, 54, 0.14);
}
.field-error {
  font-size: var(--t-small);
  color: var(--persimmon-deep);
  font-weight: 500;
}
.form-fineprint {
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1.5;
}
.form-fineprint a { color: var(--pine-600); text-decoration: underline; }
.form-status {
  font-size: var(--t-body-sm);
  border-radius: var(--radius-sm);
  padding: 0;
}
.form-status.is-success {
  color: #17694F;
  background: var(--teal-soft);
  border: 1px solid rgba(42, 140, 119, 0.35);
  padding: 12px 14px;
}
.form-status.is-error {
  color: var(--persimmon-deep);
  background: var(--persimmon-soft);
  border: 1px solid rgba(217, 92, 54, 0.3);
  padding: 12px 14px;
}

/* ============================== NEXT ============================== */
.next {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.next-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.next-step {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: grid;
  gap: 10px;
  align-content: start;
}
.next-num {
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.14em;
  color: var(--persimmon);
}
.next-step h3 {
  font-size: var(--t-h4);
  line-height: var(--lh-snug);
  font-weight: 600;
  color: var(--pine-900);
}
.next-step p { font-size: var(--t-body-sm); color: var(--muted); line-height: 1.6; }

/* ============================== OTHER WAYS ============================== */
.other {
  padding: clamp(56px, 7vw, 96px) 0;
  background: var(--paper);
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.other-cell {
  position: relative;
  display: grid;
  gap: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-decoration: none;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-spring), border-color 0.2s ease;
}
.other-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: var(--pine-300);
}
.other-label {
  font-family: var(--font-mono);
  font-size: var(--t-chip);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.other-text {
  font-size: var(--t-body-sm);
  color: var(--pine-900);
  line-height: 1.55;
  font-weight: 500;
  padding-right: 28px;
}
.other-arrow {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  color: var(--persimmon);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease-spring);
}
.other-cell:hover .other-arrow { transform: translateX(4px); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-title { max-width: none; }
  .contact-form-card { max-width: 620px; }
  .next-grid, .other-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .contact-email { font-size: 1.25rem; }
  .next-step, .other-cell { padding: var(--space-4); }
}
