/*===============================================================
  LUNEXO — INTERACTIVE CONTACT WIZARD  (contact.html)
  A guided, point-to-point flow that replaces the two static
  forms: topic → need → how-to-connect → (day/time) → details
  → review → done. One flow for both "message" and "booking",
  so the two paths stay visually consistent.
  Colors via theme.css tokens only. Reuses .bk-* controls.
================================================================*/
.cw{
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ── progress rail ── */
.cw-progress{
  display: flex;
  gap: .4rem;
  margin-bottom: 1.6rem;
}
.cw-progress .cw-seg{
  flex: 1 1 0;
  height: 4px;
  border-radius: 99px;
  background: var(--border-color);
  transition: background .3s ease;
}
.cw-progress .cw-seg.is-done{ background: var(--first-color); }
.cw-progress .cw-seg.is-current{
  background: linear-gradient(90deg, var(--first-color) 55%, var(--border-color) 55%);
}

/* ── step container ── */
.cw-step{ display: none; }
.cw-step.is-active{ display: block; animation: cw-in .34s cubic-bezier(.22,.61,.36,1); }
@keyframes cw-in{
  from{ opacity: 0; transform: translateY(10px); }
  to  { opacity: 1; transform: translateY(0); }
}

.cw-back{
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: none; cursor: pointer;
  color: var(--text-color-light); font: inherit; font-size: .85rem; font-weight: 600;
  padding: 0; margin: 0 0 1rem; transition: color .16s ease;
}
.cw-back:hover{ color: var(--first-color); }
.cw-back i{ font-size: 1.05rem; }

.cw-q{
  font-family: 'Kiona', sans-serif;
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  line-height: 1.18; color: var(--title-color);
  margin: 0 0 .35rem; font-weight: 700;
}
.cw-hint{ color: var(--text-color-light); font-size: .9rem; margin: 0 0 1.3rem; }

/* ── topic tiles (step 1) ── */
.cw-tiles{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
}
@media (max-width: 560px){ .cw-tiles{ grid-template-columns: repeat(2, 1fr); } }
.cw-tile{
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  text-align: center;
  padding: 1.15rem .7rem;
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--title-color); font: inherit;
  cursor: pointer;
  transition: transform .14s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.cw-tile i{ font-size: 1.7rem; color: var(--first-color); transition: transform .16s ease; }
.cw-tile-label{ font-size: .9rem; font-weight: 600; line-height: 1.25; }
.cw-tile:hover{
  border-color: var(--first-color);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(var(--accent-rgb), .8);
}
.cw-tile:hover i{ transform: scale(1.08); }
.cw-tile.is-active{
  border-color: var(--first-color);
  background: var(--accent-soft);
}

/* ── need chips (step 2) ── */
.cw-chips{ display: flex; flex-direction: column; gap: .6rem; }
.cw-chip{
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1.1rem;
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 13px;
  color: var(--title-color); font: inherit; font-weight: 600; font-size: .95rem;
  text-align: left; cursor: pointer;
  transition: transform .14s ease, border-color .16s ease, background .16s ease;
}
.cw-chip i{ font-size: 1.3rem; color: var(--first-color); flex: none; }
.cw-chip .cw-chip-go{ margin-left: auto; color: var(--text-color-light); font-size: 1.1rem; transition: transform .16s ease; }
.cw-chip:hover{ border-color: var(--first-color); transform: translateX(3px); }
.cw-chip:hover .cw-chip-go{ transform: translateX(3px); color: var(--first-color); }
.cw-chip.is-active{ border-color: var(--first-color); background: var(--accent-soft); }

/* ── method cards (step 3) ── */
.cw-methods{ display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 560px){ .cw-methods{ grid-template-columns: 1fr; } }
.cw-method{
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem;
  padding: 1.25rem 1.15rem;
  background: var(--container-color);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  color: var(--title-color); font: inherit; text-align: left;
  cursor: pointer;
  transition: transform .14s ease, border-color .16s ease, box-shadow .16s ease;
}
.cw-method i{ font-size: 1.7rem; color: var(--first-color); margin-bottom: .25rem; }
.cw-method-t{ font-weight: 700; font-size: 1.02rem; font-family: 'Kiona', sans-serif; }
.cw-method-s{ font-size: .82rem; color: var(--text-color-light); line-height: 1.45; font-weight: 400; }
.cw-method:hover{
  border-color: var(--first-color); transform: translateY(-2px);
  box-shadow: 0 16px 34px -20px rgba(var(--accent-rgb), .85);
}
.cw-method.is-active{ border-color: var(--first-color); background: var(--accent-soft); }

/* ── review summary (final step) ── */
.cw-review{
  list-style: none; margin: 0 0 1.3rem; padding: 0;
  border: 1px solid var(--border-color); border-radius: 14px;
  overflow: hidden;
}
.cw-review li{
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: .9rem;
}
.cw-review li:last-child{ border-bottom: none; }
.cw-review .cw-rev-k{
  flex: 0 0 30%;
  color: var(--text-color-light); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; font-size: .72rem;
  padding-top: .12rem;
}
.cw-review .cw-rev-v{ flex: 1; color: var(--title-color); font-weight: 600; }
.cw-review .cw-edit{
  margin-left: auto; flex: none;
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--first-color); font: inherit; font-size: .76rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}

/* ── nav buttons (continue / send) reuse .bk-submit look ── */
.cw-next, .cw-submit{
  width: 100%; margin-top: 1.4rem;
  padding: .95rem 1.2rem;
  background: var(--first-color); color: var(--text-on-accent);
  border: none; border-radius: 12px;
  font: inherit; font-weight: 700; letter-spacing: .02em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  transition: background .18s ease, transform .12s ease, opacity .18s ease;
}
.cw-next:hover, .cw-submit:hover{ background: var(--first-color-alt); }
.cw-next:active, .cw-submit:active{ transform: translateY(1px); }
.cw-submit:disabled{ opacity: .65; cursor: not-allowed; }
.cw-submit.is-loading{ position: relative; color: transparent; }
.cw-submit.is-loading::after{
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--text-on-accent); border-right-color: transparent;
  border-radius: 50%; animation: bk-spin .7s linear infinite;
}

/* the wizard owns its own card title row spacing */
.cw .gi-card-title{ margin-bottom: 1.4rem; }

/* compact tweaks under the contact-page (matches the 2026-06-25 sizing) */
.contact-page .cw-tile{ padding: 1rem .6rem; }
.contact-page .cw-tile i{ font-size: 1.5rem; }
.contact-page .cw-q{ font-size: clamp(1.15rem, 3vw, 1.5rem); }
@media (max-width: 620px){
  .contact-page .cw-tiles{ gap: .55rem; }
  .contact-page .cw-tile{ padding: .85rem .5rem; border-radius: 12px; }
  .contact-page .cw-chip{ padding: .8rem .9rem; font-size: .9rem; }
}

/*===============================================================
  CONTACT PAGE — full-page background VIDEO (light + dark)
  A fixed cinematic clip sits behind the frosted wizard card.
  The body/sections are already transparent (booking.css), so the
  video shows through. A theme-aware scrim keeps the glass card
  readable in BOTH themes; the video source itself is swapped
  dark<->light by the inline script in contact.html.
================================================================*/
.cw-bg-video{
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  /* same tone treatment as the "Your AI" (agent-ai) hero video */
  filter: brightness(0.5) saturate(1.05);
}
[data-theme="light"] .cw-bg-video{ filter: brightness(0.96) saturate(1.06); }
.cw-bg-scrim{
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
  /* dark scrim — matches agent-ai .oc-hero__scrim */
  background: linear-gradient(to bottom, rgba(8,9,14,0.62), rgba(8,9,14,0.44) 45%, rgba(8,9,14,0.86));
}
[data-theme="light"] .cw-bg-scrim{
  background: linear-gradient(to bottom, rgba(246,248,252,0.74), rgba(246,248,252,0.52) 45%, rgba(246,248,252,0.90));
}
/* a touch more frost on the card so it stays crisp over moving video */
.contact-page .cw.bk-card{
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
