/* ================================================================
   TARABA BizComm — Contact (form, direct line, FAQ)
   css/pages/contact.css | Loaded by contact.html only, after base.css,
   layout.css, showroom.css, showroom-motion.css, modal.css.

   Rebuilt for the showroom restructure (Phase 7). The form markup is
   unchanged (js/forms.js depends on it) — only its look is new. Shared
   validation states (.field-error, .is-invalid, .form-send-error) stay
   in css/base.css. The pre-rebuild version is kept in
   _archive/pre-showroom/contact.css.
================================================================ */

html {
  scroll-padding-top: 70px;
}

/* ── Hero — compact; the guide stands on the room's floor ── */
.contact-hero {
  padding: calc(70px + var(--s-8)) 0 0;
}
.contact-hero .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-7);
}
.contact-hero .wrap > div {
  padding-bottom: var(--s-8);
}
.contact-hero h1 {
  font-family: var(--f-display);
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 18ch;
}
.contact-hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.contact-hero .lead {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--s-6);
}
.contact-hero__mascot {
  width: clamp(160px, 18vw, 250px);
  height: auto;
}

/* ── 01 Form + direct line (7/5) ── */
.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--s-6);
  align-items: start;
}
.form-card {
  padding: var(--s-7);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.form-card h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-bottom: var(--s-6);
}

/* Form fields (markup from the original page) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.form-label span {
  color: var(--orange-ink);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border-h);
  border-radius: var(--r-sm);
  background: var(--white);
  font: 400 15px var(--f-body);
  color: var(--navy);
  transition:
    border-color var(--dur-micro) var(--ease-out),
    box-shadow var(--dur-micro) var(--ease-out);
}
.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-xsoft);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.35);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-method-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}
.cm-option {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cm-label {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border-h);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition:
    background-color var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out);
}
.cm-option:checked + .cm-label {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.cm-option:focus-visible + .cm-label {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-3);
}
.form-note {
  font-size: 13px;
  color: var(--text-soft);
}
.form-success {
  display: none;
  text-align: center;
  padding: var(--s-6) 0;
}
.form-success.visible {
  display: block;
}
.form-success__icon {
  font-size: 40px;
}
.form-success__title {
  margin-top: var(--s-3);
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  color: var(--navy);
}
.form-success__text {
  margin: var(--s-2) auto var(--s-5);
  max-width: 40ch;
  color: var(--text-soft);
}

/* Direct line — navy card beside the form */
.direct {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--navy);
  color: var(--slate-light);
  --icon-dot: var(--amber);
}
/* .room h2 would otherwise win (same element, higher specificity) */
.room .direct__title {
  max-width: none;
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--white);
}
.direct__sub {
  margin-top: 4px;
  font-size: var(--fs-small);
}
.direct__list {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-5) 0;
  list-style: none;
}
.direct__list a {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background-color var(--dur-micro) var(--ease-out),
    border-color var(--dur-micro) var(--ease-out);
}
.direct__list a:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(244, 180, 0, 0.5);
}
.direct__list a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.direct__list b,
.direct__where b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.direct__list span:last-child {
  color: var(--white);
  font-weight: 600;
}
.direct small {
  display: block;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--slate-light);
}
.direct__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-mid);
  color: var(--white);
}
.direct__icon .icon {
  width: 20px;
  height: 20px;
}
.direct__where {
  display: flex;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-small);
  color: var(--white);
}
.direct__where small {
  margin-top: 6px;
}
.direct__founder {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding: var(--s-3);
  border-radius: var(--r-md);
  background: rgba(244, 180, 0, 0.1);
  font-size: 13px;
}
.direct__founder img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2px solid var(--amber);
}
.direct__founder b {
  color: var(--white);
}

/* ─────────────────────────────────────────────
       RESPONSIVE
    ───────────────────────────────────────────── */
@media (max-width: 1023px) {
  .contact-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}
@media (max-width: 639px) {
  .contact-hero .wrap {
    grid-template-columns: 1fr;
  }
  .contact-hero .wrap > div {
    padding-bottom: 0;
  }
  .contact-hero__mascot {
    justify-self: center;
    width: 150px;
  }
  .form-card {
    padding: var(--s-5);
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-submit .btn {
    width: 100%;
    justify-content: center;
  }
  .direct {
    padding: var(--s-5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .form-input,
  .form-select,
  .form-textarea,
  .cm-label,
  .direct__list a,
  .faq__item,
  .faq__toggle::before,
  .faq__toggle::after {
    transition: none;
  }
}
