/* ============================================================
   Celva Bio — Contact page
   Callback request form + direct channels (email, phone, address)
   Companion to book.html; shares book.css vocabulary.
   ============================================================ */

.contact {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
}
.contact .v4-mono {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 400;
}
.contact .v4-lbl { color: var(--ink-muted); }

/* ---------- Sysbar (compact) ---------- */
.contact-sysbar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 14px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--border);
  background: var(--surface-tint);
  font-size: 11px; color: var(--ink-muted);
}
.contact-sysbar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); }

/* ---------- Hero ---------- */
.contact-hero {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 64px) clamp(32px, 4vw, 56px);
}
.contact-hero__tag { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-blue); margin-bottom: 24px; }
.contact-hero__tag::before { content: ''; width: 20px; height: 1px; background: var(--accent-blue); }
.contact-hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.75rem, 5.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.contact-hero h1 em { font-style: italic; color: var(--accent-blue); font-weight: 400; }
.contact-hero__lede {
  font-size: 18px; line-height: 1.6; color: var(--ink-soft);
  margin: 0; max-width: 58ch;
}

/* ---------- Main two-column ---------- */
.contact-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px) clamp(72px, 10vw, 128px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

/* ---------- Form column ---------- */
.contact-form-wrap {
  border: 1px solid var(--border);
  padding: clamp(28px, 3.5vw, 48px);
  background: #fff;
}
.contact-form-wrap__head {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.contact-form-wrap__head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}
.contact-form-wrap__head h2 em { font-style: italic; color: var(--accent-blue); font-weight: 400; }
.contact-form-wrap__head p {
  font-size: 14.5px; color: var(--ink-muted); margin: 0; line-height: 1.55;
  max-width: 48ch;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
}
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field--full { grid-column: 1 / -1; }
.contact-field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.contact-field label .req { color: var(--accent-blue); }
.contact-field label .opt {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0;
  text-transform: none; color: var(--ink-muted);
  margin-left: 6px; font-weight: 400;
}
.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field input[type="tel"],
.contact-field select,
.contact-field textarea {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 2px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  -webkit-appearance: none; appearance: none;
}
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #97a5b8; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(45,110,177,0.12);
}
.contact-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%234A6480' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.contact-field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.contact-field__hint { font-size: 12px; color: var(--ink-muted); line-height: 1.5; }

.contact-field.is-error input,
.contact-field.is-error select,
.contact-field.is-error textarea {
  border-color: #c94a3f; box-shadow: 0 0 0 3px rgba(201,74,63,0.1);
}
.contact-field__err {
  display: none;
  font-size: 12px; color: #c94a3f;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em;
}
.contact-field.is-error .contact-field__err { display: block; }

/* Consent */
.contact-consent {
  display: flex; gap: 12px; align-items: flex-start;
  cursor: pointer;
  padding: 16px 18px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-soft);
}
.contact-consent input { position: absolute; opacity: 0; pointer-events: none; }
.contact-consent__box {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s;
  margin-top: 1px;
}
.contact-consent__box::after {
  content: ''; width: 8px; height: 5px;
  border-left: 1.8px solid #fff; border-bottom: 1.8px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.18s;
}
.contact-consent input:checked ~ .contact-consent__box {
  background: var(--accent-blue); border-color: var(--accent-blue);
}
.contact-consent input:checked ~ .contact-consent__box::after {
  transform: rotate(-45deg) scale(1) translate(1px, -1px);
}
.contact-consent a { color: var(--accent-blue); border-bottom: 1px solid currentColor; }

/* Actions */
.contact-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.contact-submit {
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 500; letter-spacing: 0.01em;
  color: #fff;
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  padding: 14px 28px;
  cursor: pointer;
  border-radius: 2px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.18s, border-color 0.18s, transform 0.12s;
}
.contact-submit:hover:not([disabled]) {
  background: var(--accent-blue-hover);
  border-color: var(--accent-blue-hover);
}
.contact-submit:active { transform: translateY(1px); }
.contact-submit svg { transition: transform 0.2s; }
.contact-submit:hover:not([disabled]) svg { transform: translateX(3px); }
.contact-actions__assure {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
}

/* Medical redirect banner */
.contact-redirect {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  padding: 16px 18px;
  background: var(--accent-wash);
  border: 1px solid rgba(45,110,177,0.25);
  margin-top: 24px;
  align-items: center;
}
.contact-redirect__icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-blue);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
  font-family: var(--font-display); font-size: 18px; font-weight: 400;
}
.contact-redirect__body {
  font-size: 13.5px; line-height: 1.5; color: var(--ink-soft);
}
.contact-redirect__body strong {
  color: var(--ink); font-weight: 500;
}
.contact-redirect__cta {
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.contact-redirect__cta:hover { color: var(--accent-blue-hover); }

/* ---------- Channels column ---------- */
.contact-channels {
  display: flex; flex-direction: column; gap: 40px;
  position: sticky; top: 96px;
}
.contact-channels__block {
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.contact-channels__block:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-channels__eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
  display: block;
}
.contact-channels h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.contact-channels h3 em { font-style: italic; color: var(--accent-blue); font-weight: 400; }

.contact-channels__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  text-decoration: none;
  display: block;
}
a.contact-channels__value:hover { color: var(--accent-blue); }

.contact-channels__sub {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-muted);
  margin-top: 10px;
}
.contact-channels__sub strong { color: var(--ink); font-weight: 500; }

.contact-channels__address {
  font-style: normal;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.contact-channels__address .primary { display: block; font-weight: 500; margin-bottom: 4px; }
.contact-channels__address .line { display: block; color: var(--ink-soft); }

.contact-channels__hours {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  font-size: 13.5px;
  margin-top: 14px;
}
.contact-channels__hours dt {
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  align-self: center;
}
.contact-channels__hours dd {
  color: var(--ink); margin: 0; text-align: right; font-weight: 500;
}

.contact-channels__map {
  margin-top: 20px;
  aspect-ratio: 16 / 10;
  background: var(--surface-tint) center/cover no-repeat;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.contact-channels__map svg { width: 100%; height: 100%; display: block; }
.contact-channels__map-pin {
  position: absolute;
  top: 69%; left: 73%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(11,29,58,0.25);
}
.contact-channels__map-pin::after {
  content: ''; position: absolute; inset: -10px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-blue);
  opacity: 0.4;
  animation: ctpulse 2.4s ease-out infinite;
}
@keyframes ctpulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}
.contact-channels__map-cap {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Success state ---------- */
.contact-success {
  display: none;
  text-align: left;
  padding: 16px 0;
}
.contact-success.is-active { display: block; animation: ctIn 0.4s ease-out; }
@keyframes ctIn { from {opacity:0; transform:translateY(6px);} to {opacity:1; transform:translateY(0);} }
.contact-success__glyph {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.contact-success__glyph::after {
  content: ''; width: 20px; height: 10px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(2px, -4px);
}
.contact-success h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.contact-success h2 em { font-style: italic; color: var(--accent-blue); font-weight: 400; }
.contact-success p {
  font-size: 16px; line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 48ch;
}
.contact-success__meta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink);
}
.contact-success__meta b { color: var(--accent-blue); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .contact-channels { position: static; }
}
@media (max-width: 640px) {
  .contact-sysbar { padding: 10px 20px; gap: 10px; font-size: 10px; flex-wrap: nowrap; justify-content: center; overflow: hidden; }
  .contact-sysbar .v4-mono { font-size: 9.5px; white-space: nowrap; }
  .contact-sysbar .dot { display: none; }
  .contact-sysbar > span:nth-child(3),
  .contact-sysbar > span:nth-child(5) { display: none; }

  .contact-fields { grid-template-columns: 1fr; }
  .contact-actions { flex-direction: column-reverse; align-items: stretch; }
  .contact-submit { justify-content: center; }
  .contact-actions__assure { text-align: center; }

  .contact-redirect { grid-template-columns: 1fr; gap: 10px; }
  .contact-redirect__icon { display: none; }

  .contact-channels__hours { grid-template-columns: 1fr; gap: 2px; }
  .contact-channels__hours dd { text-align: left; }
}
