/* ============================================================================
   styles-contact.css
   --------------------------------------------------------------------------
   Styles for the standalone /contact.html page only.
   Loaded AFTER styles.css on contact.html — relies on its CSS variables
   (--violet-700, --ink, etc.). Do NOT load on other pages.
   ============================================================================ */

/* ============================================================
   CONTACT PAGE — standalone /contact.html
   ============================================================ */

.contact-hero {
  padding: 32px 0 8px;
  position: relative;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Let both columns shrink below their content's intrinsic width. Without this,
   the nested .contact-channels grid (minmax(220px,…) × 2) pushes a ~450px
   min-content onto the 1fr track, so the channels and the aside card spill off
   the right edge on narrow screens. */
.contact-hero-grid > * {
  min-width: 0;
}

@media (max-width: 980px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.contact-hero-h1 {
  font-size: clamp(40px, 5.2vw, 72px);
  margin: 22px 0 18px;
}

.contact-hero-lede {
  max-width: 540px;
}

.contact-channels {
  margin-top: 30px;
  display: grid;
  /* min(100%, 220px) keeps a single card from forcing a track wider than the
     container on the narrowest phones. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
  max-width: 640px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

a.contact-channel:hover {
  border-color: var(--violet-500);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(106, 77, 234, 0.3);
}

.contact-channel-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #efeaff, #e4dcff);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--violet-700);
  flex-shrink: 0;
}

.contact-channel-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-channel-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-channel-value {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-top: 2px;
}

.contact-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 130px;
}

@media (max-width: 980px) {
  .contact-hero-aside {
    position: static;
  }
}

.contact-aside-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 26px 26px 22px;
  box-shadow: 0 20px 50px -20px rgba(62, 31, 163, 0.22);
}

.contact-aside-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--violet-700);
  margin-bottom: 18px;
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(106, 77, 234, 0.08);
  border: 1px solid var(--line-strong);
}

.contact-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.contact-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  position: relative;
}

.contact-steps li+li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: -16px;
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, transparent, var(--violet-300));
}

.contact-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(106, 77, 234, 0.6);
}

.contact-step-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.25;
}

.contact-step-body {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.contact-aside-quote {
  background: linear-gradient(135deg, #ffffff 0%, #f4f0ff 100%);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 24px 24px 20px;
  position: relative;
}

.contact-aside-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -.005em;
}

.contact-quote-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.contact-quote-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-quote-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.contact-quote-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Override default Contact section vertical rhythm when in the standalone page */
body[data-page="contact"] #contact {
  padding: 56px 0 32px;
}

/* Reassurance band */
.contact-reassure {
  padding: 32px 0;
}

.contact-reassure-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 26px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 10px 30px -18px rgba(62, 31, 163, 0.18);
}

@media (max-width: 920px) {
  .contact-reassure-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .contact-reassure-grid {
    grid-template-columns: 1fr;
  }
}

.contact-reassure-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-reassure-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(106, 77, 234, 0.12);
  color: var(--violet-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-reassure-k {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}

.contact-reassure-v {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 2px;
}

/* FAQ teaser */
.contact-faq-section {
  padding: 56px 0 80px;
}

.contact-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .contact-faq-grid {
    grid-template-columns: 1fr;
  }
}

.contact-faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.contact-faq-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -16px rgba(62, 31, 163, 0.22);
}

.contact-faq-q {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.015em;
  margin-bottom: 8px;
}

.contact-faq-a {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  text-wrap: pretty;
}

.contact-faq-foot {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--ink-soft);
}

.contact-faq-foot a {
  color: var(--violet-700);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--violet-300);
}

.contact-faq-foot a:hover {
  color: var(--violet-500);
  border-bottom-color: var(--violet-500);
}

/* ============================================================
   FORM SUCCESS / ERROR — pure-HTML state machine
   ------------------------------------------------------------
   The form lives in HTML with no JS submit handler. After
   send.php finishes server-side validation it issues a 303
   redirect back to:
     contact.html#success  → success card visible, form hidden
     contact.html#error    → error card visible, form visible
     contact.html          → clean form (default state)
   Modern :has() selector swaps which block is rendered.
   ============================================================ */

.form-card #success,
.form-card #error {
  display: none;
}

/* Reveal the matching card when its id is the URL fragment.
   #success is a centered flex column (see .success-card in styles.css), so
   reveal it as flex — `align-items:center` keeps the .ok-mark centered and
   `gap` restores the spacing. A plain `display:block` here outweighs
   .success-card's `display:flex` (higher specificity) and would push the
   check-mark bubble to the left. The error card is a plain block. */
.form-card #success:target {
  display: flex;
}

.form-card #error:target {
  display: block;
}

/* Hide the form completely when success is targeted — submit succeeded,
   nothing left to fill in. (The error card keeps the form visible so the
   user can adjust and retry.) */
.form-card:has(#success:target) #contact-form {
  display: none;
}

/* Tone for the error card — softer than the success card; uses warning hue. */
.send-error-card {
  display: none;
  text-align: center;
  padding: 28px 24px;
  border: 1px solid oklch(0.85 0.08 30);
  border-radius: 16px;
  background: oklch(0.97 0.025 30);
  margin-bottom: 18px;
}

.send-error-card .err-mark {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: oklch(0.92 0.07 30);
  color: oklch(0.45 0.18 30);
}

.send-error-card p {
  margin: 0 0 16px;
  color: oklch(0.35 0.12 30);
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================================
   MOBILE POLISH
   ------------------------------------------------------------
   The form card's 36px padding + the wrap's 28px gutters leave
   too little room on phones, and Cloudflare Turnstile renders a
   fixed ~300px iframe that gets clipped by the card. Tighten the
   gutters and scale the widget down on the narrowest screens.
   ============================================================ */
@media (max-width: 600px) {
  body[data-page="contact"] .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .contact-hero {
    padding: 24px 0 4px;
  }

  .form-card {
    padding: 24px 16px;
  }

  /* Stack the response/languages info lines comfortably */
  .contact-hero-h1 {
    margin: 16px 0 14px;
  }
}

@media (max-width: 400px) {
  /* Keep the fixed-width Turnstile fully inside the card on small phones. */
  .form-turnstile {
    transform: scale(0.82);
    transform-origin: left center;
  }
}