/* ============================
   Contact page — Bature Digital
   Builds on tokens.css + site.css
   ============================ */

/* ============================
   Hero
   ============================ */
.contact-hero {
  position: relative;
  padding: var(--space-12) 0 var(--space-10);
  background: linear-gradient(180deg, #FAF7F0 0%, #fff 100%);
  overflow: hidden;
}
.contact-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(112,40,179,.05) 0%, transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(241,197,24,.06) 0%, transparent 60%);
}
.contact-hero-inner {
  position: relative;
  max-width: 880px; margin: 0 auto; text-align: center;
}
.contact-hero h1 {
  font-family: var(--font-body); font-weight: 800;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05;
  letter-spacing: -.02em;
  margin: 22px 0 22px;
}
.contact-hero h1 .accent {
  color: var(--brand-purple-700);
  position: relative; white-space: nowrap;
}
.contact-hero h1 .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: .14em; background: var(--brand-mustard-500); z-index: -1;
  border-radius: 2px;
}
.contact-hero .lead {
  font-size: 19px; line-height: 1.6; color: var(--fg-muted);
  margin: 0 auto 28px; max-width: 700px;
}
.contact-hero-trust {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 24px;
  font-size: 13px; color: var(--fg-subtle);
}
.contact-hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.contact-hero-trust span:not(:last-child)::after {
  content: "·"; margin-left: 24px;
  color: var(--brand-mustard-500); font-weight: 800;
}

/* ============================
   Section wrapper (light)
   ============================ */
.contact-section {
  padding: var(--space-11) 0;
  background: var(--bg);
}
.contact-section.tinted {
  background: linear-gradient(180deg, #FAF7F0 0%, #fff 100%);
}
.contact-section .section-head { max-width: 720px; }
.contact-section .section-head h2 {
  font-family: var(--font-body); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12;
  letter-spacing: -.02em;
  margin: 14px 0 12px;
}
.contact-section .section-head h2 .em { color: var(--brand-purple-700); position: relative; white-space: nowrap; }
.contact-section .section-head h2 .em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: .14em; background: var(--brand-mustard-500); z-index: -1;
  border-radius: 2px;
}
.contact-section .section-head p {
  font-size: 17px; line-height: 1.6; color: var(--fg-muted);
  margin: 0 auto;
}

/* ============================
   Calendly section
   ============================ */
.calendly-wrap {
  max-width: 900px;
  margin: var(--space-8) auto 0;
}
.calendly-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(31, 168, 102, .08);
  border: 1px solid rgba(31, 168, 102, .2);
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  color: var(--success);
  margin-bottom: 18px;
}
.calendly-badge svg { width: 14px; height: 14px; }
.calendly-badge-row {
  display: flex; justify-content: center;
  margin-bottom: 18px;
}
.calendly-frame {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(112,40,179,.06);
  overflow: hidden;
  padding: 12px;
}
.calendly-inline-widget {
  border-radius: 8px;
  overflow: hidden;
}

/* ============================
   "OR" divider
   ============================ */
.or-divider {
  position: relative;
  max-width: 900px;
  margin: var(--space-9) auto;
  display: flex; align-items: center; justify-content: center;
}
.or-divider::before, .or-divider::after {
  content: ""; flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 50%, transparent);
}
.or-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 18px;
  background: #fff;
  border: 1.5px solid var(--brand-purple-700);
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-purple-700);
  margin: 0 18px;
  white-space: nowrap;
}

/* ============================
   Multi-step form
   ============================ */
.form-wrap {
  max-width: 760px;
  margin: var(--space-8) auto 0;
  background: #fff;
  border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(112,40,179,.06);
}

.form-progress {
  margin-bottom: 32px;
}
.form-progress-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.form-progress-label {
  font-family: var(--font-body); font-weight: 600;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-purple-700);
}
.form-progress-step {
  font-size: 13px; color: var(--fg-muted);
}
.form-progress-step strong { color: var(--fg); font-weight: 700; }
.form-progress-bar {
  height: 4px;
  background: var(--neutral-200);
  border-radius: 999px;
  overflow: hidden;
}
.form-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-purple-700), var(--brand-mustard-500));
  border-radius: 999px;
  width: 33.33%;
  transition: width .32s var(--ease-out);
}

.form-steps {
  position: relative;
  overflow: hidden;
}
.form-step {
  display: none;
  animation: stepIn .25s var(--ease-out);
}
.form-step.active { display: block; }
.form-step.exiting-left { animation: stepOutLeft .25s var(--ease-out) forwards; }
.form-step.exiting-right { animation: stepOutRight .25s var(--ease-out) forwards; }
.form-step.entering-right { animation: stepInRight .25s var(--ease-out); }
.form-step.entering-left { animation: stepInLeft .25s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes stepInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes stepInLeft  { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes stepOutLeft { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-24px); } }
@keyframes stepOutRight{ from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(24px); } }

.form-step h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--fg);
  margin: 0 0 4px;
}
.form-step .step-sub {
  font-size: 14px; color: var(--fg-muted);
  margin: 0 0 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}
.form-row { grid-column: 1 / -1; }
.form-row-half { grid-column: span 1; }

.form-field {
  display: flex; flex-direction: column;
  gap: 6px;
}
.form-field label {
  font-family: var(--font-body); font-weight: 600;
  font-size: 13px;
  color: var(--fg);
}
.form-field label .req { color: var(--danger); margin-left: 2px; }
.form-field label .opt { color: var(--fg-subtle); font-weight: 500; margin-left: 4px; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body); font-size: 15px;
  color: var(--fg);
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.form-field textarea {
  min-height: 110px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: 1.5;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-purple-700);
  box-shadow: 0 0 0 4px rgba(112,40,179,.12);
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--danger);
}
.form-field.has-error input:focus,
.form-field.has-error select:focus,
.form-field.has-error textarea:focus {
  box-shadow: 0 0 0 4px rgba(212,58,47,.12);
}
.form-error {
  display: none;
  font-size: 12px; color: var(--danger);
  font-weight: 500;
}
.form-field.has-error .form-error { display: block; }

/* Phone with country code */
.phone-wrap {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
}
.phone-wrap select { padding: 12px 8px; }

/* "Other" reveal field */
.form-other-field {
  display: none;
  margin-top: 10px;
}
.form-other-field.shown { display: flex; }

/* Channel multi-select */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.channel-pick {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 16px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .18s var(--ease-out);
  text-align: center;
}
.channel-pick svg {
  width: 22px; height: 22px;
  color: var(--brand-purple-700);
  transition: color .18s;
}
.channel-pick span {
  font-size: 13px; font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
}
.channel-pick:hover {
  border-color: var(--brand-purple-700);
  background: rgba(112,40,179,.03);
}
.channel-pick input {
  position: absolute; opacity: 0; pointer-events: none;
}
.channel-pick.checked {
  border-color: var(--brand-purple-700);
  background: var(--brand-purple-700);
}
.channel-pick.checked svg { color: var(--brand-mustard-400); }
.channel-pick.checked span { color: #fff; }
.channel-pick .check-mark {
  position: absolute; top: 8px; right: 8px;
  width: 16px; height: 16px;
  border-radius: 99px;
  background: var(--brand-mustard-500);
  color: var(--brand-purple-900);
  display: none;
  align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 10px;
}
.channel-pick.checked .check-mark { display: flex; }

/* Form actions */
.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px;
  gap: 12px;
}
.form-actions.justify-end { justify-content: flex-end; }
.form-actions .btn { min-width: 0; }

.form-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 8px 0;
}
.form-back:hover { color: var(--brand-purple-700); }

/* Privacy note */
.form-privacy-note {
  margin-top: 20px;
  font-size: 12px; color: var(--fg-subtle);
  line-height: 1.5;
  text-align: center;
}
.form-privacy-note a {
  color: var(--brand-purple-700);
  text-decoration: underline;
  text-decoration-color: rgba(112,40,179,.3);
  text-underline-offset: 2px;
}
.form-privacy-note a:hover { text-decoration-color: var(--brand-purple-700); }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: clamp(20px, 4vw, 40px) 12px;
  animation: stepIn .35s var(--ease-out);
}
.form-success.shown { display: block; }
.form-success .success-icon {
  width: 72px; height: 72px;
  border-radius: 99px;
  background: var(--brand-mustard-500);
  color: var(--brand-purple-900);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-mustard);
}
.form-success h3 {
  font-family: var(--font-body); font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.01em;
  margin: 0 0 10px;
  color: var(--fg);
}
.form-success p {
  font-size: 16px; line-height: 1.6; color: var(--fg-muted);
  max-width: 480px; margin: 0 auto 24px;
}
.form-success .success-actions {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* ============================
   Expectation columns
   ============================ */
.expect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: var(--space-8);
}
.expect-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: all .22s var(--ease-out);
}
.expect-card:hover {
  border-color: var(--brand-purple-700);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.expect-num {
  font-family: var(--font-body); font-weight: 800;
  font-size: 13px; letter-spacing: .12em;
  color: var(--brand-mustard-500);
}
.expect-card h3 {
  font-family: var(--font-body); font-weight: 700;
  font-size: 18px; line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--fg);
  margin: 0;
}
.expect-card p {
  font-size: 14px; line-height: 1.6;
  color: var(--fg-muted);
  margin: 0;
}

/* ============================
   Direct contact strip
   ============================ */
.direct-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--space-8);
  background: var(--brand-purple-900);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
}
.direct-card {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 10px;
  padding: 0 8px;
  border-right: 1px solid rgba(255,255,255,.1);
}
.direct-card:last-child { border-right: 0; }
.direct-icon {
  width: 36px; height: 36px;
  border-radius: 99px;
  background: rgba(241,197,24,.15);
  color: var(--brand-mustard-500);
  display: inline-flex; align-items: center; justify-content: center;
}
.direct-icon svg { width: 18px; height: 18px; }
.direct-label {
  font-family: var(--font-body); font-weight: 700;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-mustard-500);
}
.direct-value {
  font-family: var(--font-body); font-weight: 700;
  font-size: 17px; line-height: 1.3;
  color: #fff;
}
.direct-value a { color: inherit; }
.direct-value a:hover { color: var(--brand-mustard-500); }
.direct-sub {
  font-size: 13px; color: rgba(255,255,255,.7);
  line-height: 1.5;
}
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0;
  font-size: 12px; color: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 4px 0;
  transition: color .18s;
}
.copy-btn:hover { color: var(--brand-mustard-500); }
.copy-btn.copied { color: var(--brand-mustard-500); }
.copy-btn svg { width: 12px; height: 12px; }
.direct-note {
  margin-top: 22px;
  text-align: center;
  font-size: 13px; color: rgba(255,255,255,.55);
}

/* ============================
   Mini-FAQ
   ============================ */
.mini-faq {
  max-width: 820px; margin: var(--space-8) auto 0;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 980px) {
  .expect-grid { grid-template-columns: repeat(2, 1fr); }
  .direct-strip { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .direct-card { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 24px; }
  .direct-card:last-child { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-row-half { grid-column: 1 / -1; }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  .expect-grid { grid-template-columns: 1fr; }
  .form-wrap { padding: 24px 20px; }
  .calendly-frame { padding: 6px; border-radius: 12px; }
  .or-pill { font-size: 11px; padding: 6px 14px; margin: 0 12px; }
  .contact-hero-trust { gap: 6px; }
  .contact-hero-trust span:not(:last-child)::after { display: none; }
  .contact-hero-trust { flex-direction: column; }
}

/* ============================
   Spam guard + form error box
   ============================ */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}
.form-error-box {
  margin: 16px 0 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(220, 38, 38, .08);
  border: 1px solid rgba(220, 38, 38, .25);
  color: #b91c1c;
  font-size: 14px;
  line-height: 1.5;
}
