/* ==========================================================================
   Parallex · pages-contact.css
   Contact: qualifying flow (one question per screen) routed to a host's calendar.
   ========================================================================== */

.ct2 { padding-bottom: var(--section-y); }
.ct2-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); transition: grid-template-columns .7s var(--ease-snap); gap: clamp(32px, 20px + 3vw, 80px); align-items: start; margin-top: clamp(24px, 16px + 2vw, 48px); }
.ct2-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
.ct2-aside .t-lead { color: var(--muted); max-width: 34ch; }

@media (min-width: 1081px) { .ct2-grid:has(.is-booking) { grid-template-columns: minmax(0, .52fr) minmax(0, 1.48fr); } }
.ct2-wa { max-width: 380px; }

/* ---------- flow card ---------- */
.qf { position: relative; background: #fff; border-radius: var(--r-tile); box-shadow: var(--sh-panel); padding: clamp(22px, 16px + 1.6vw, 40px); min-height: 480px; display: flex; flex-direction: column; overflow: hidden; }
.qf-top { display: flex; align-items: center; gap: 14px; min-height: 36px; margin-bottom: clamp(24px, 18px + 1.2vw, 36px); }
.qf-back { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--navy); box-shadow: inset 0 0 0 1px var(--border-2); transition: background-color .2s, transform .3s var(--ease-snap); }
.qf-back:hover { background: var(--mist); transform: translateX(-2px); }
[dir="rtl"] .qf-back:hover { transform: translateX(2px); }
.qf-progress { position: relative; flex: 1; height: 4px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.qf-progress i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--b3), var(--b1)); transform: scaleX(.04); transform-origin: left; transition: transform .6s var(--ease-snap); }
[dir="rtl"] .qf-progress i { transform-origin: right; }
.qf-count:empty { display: none; }
.qf-count { min-width: 38px; text-align: end; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

.qf-stage { position: relative; flex: 1; display: grid; }
.qf-screen { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.qf-screen.is-next { animation: qfIn .5s var(--ease-snap) both; }
.qf-screen.is-back { animation: qfInBack .5s var(--ease-snap) both; }
.qf-screen.is-leaving { animation: qfOut .28s var(--ease-out) both; pointer-events: none; }
.qf-screen.is-leaving-back { animation: qfOutBack .28s var(--ease-out) both; pointer-events: none; }
@keyframes qfIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes qfInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes qfOut { to { opacity: 0; transform: translateX(-20px); } }
@keyframes qfOutBack { to { opacity: 0; transform: translateX(20px); } }

.qf-q { font-size: var(--t-h3); line-height: 1.12; letter-spacing: -.02em; outline: none; }
.qf-sub, .qf-help { color: var(--muted); margin-top: -10px; }
.qf-help { font-size: var(--t-small); }

/* options */
.qf-opts { display: grid; gap: 10px; }
.qf-opts-rich { grid-template-columns: 1fr 1fr; }
.qf-opts-row { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.qf-opts-row[role="group"] { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.qf-opt {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border-radius: 18px; text-align: start;
  background: #fff; box-shadow: inset 0 0 0 1px var(--border-2); color: var(--navy);
  transition: box-shadow .25s, background-color .25s, transform .4s var(--ease-snap);
  animation: qfOpt .5s var(--ease-snap) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms);
}
@keyframes qfOpt { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qf-opt:hover { box-shadow: inset 0 0 0 1px var(--b2), 0 8px 20px -12px rgba(80,111,179,.45); transform: translateY(-1px); }
.qf-opt:active { transform: scale(.985); }
.qf-opt[aria-checked="true"] { background: var(--tint); box-shadow: inset 0 0 0 1.5px var(--b1); }
.qf-opt-t { min-width: 0; flex: 1; }
.qf-opt-t b { display: block; font-weight: 500; line-height: 1.25; }
.qf-opt-t small { display: block; margin-top: 2px; color: var(--muted); }
.qf-key { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--mist); box-shadow: inset 0 0 0 1px var(--border-2); font: 500 12.5px/1 var(--f-body); color: var(--muted); transition: background-color .25s, color .25s; }
.qf-opt[aria-checked="true"] .qf-key { background: var(--b1); color: #fff; box-shadow: none; }
.qf-tick { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--b1); color: #fff; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--ease-snap); }
.qf-tick .ic { width: 14px; height: 14px; stroke-width: 3; }
.qf-opt[aria-checked="true"] .qf-tick { opacity: 1; transform: none; }
.qf-opts-row .qf-opt { justify-content: center; text-align: center; padding-inline: 12px; }
.qf-opts-row .qf-key, .qf-opts-row .qf-tick { display: none; }
.qf-opts-row .qf-opt-t { flex: none; }

/* role cards */
.qf-opt-rich { flex-direction: column; align-items: flex-start; gap: 18px; min-height: 148px; padding: 18px; border-radius: 22px; }
.qf-opt-rich .qf-opt-t { flex: none; margin-top: auto; }
.qf-opt-rich .qf-opt-t b { font-size: var(--t-h4); font-family: var(--f-head); letter-spacing: -.01em; }
.qf-opt-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--b1); transition: background-color .3s, color .3s, transform .5s var(--ease-snap); }
.qf-opt-rich:hover .qf-opt-ic { transform: rotate(-6deg) scale(1.06); }
.qf-opt-rich[aria-checked="true"] .qf-opt-ic { background: var(--b1); color: #fff; }
.qf-opt-rich .qf-tick { position: absolute; top: 16px; inset-inline-end: 16px; }
.qf-chip { min-height: 44px; border-radius: var(--r-pill); }

/* chosen: the picked option holds, the others step back */
.is-chosen .qf-opt[aria-checked="false"] { opacity: .5; }

/* forms inside the card */
.qf-form { gap: 16px; }
.qf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: 8px; }
.qf-actions .privacy { flex: 1; min-width: 180px; }
.qf-actions-c { justify-content: center; margin-top: 8px; }
.qf-actions .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

/* endings */
.qf-end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin: auto 0; padding: 24px 0; }
.qf-end .ok { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; animation: okPop .6s var(--ease-snap); box-shadow: 0 0 0 10px var(--tint); }
.qf-end .ok .ic { width: 32px; height: 32px; }
.qf-end .qf-sub { margin-top: -6px; max-width: 42ch; }

/* booking */
.qf.is-booking { min-height: 0; }
.qf-cal { position: relative; height: clamp(560px, 70svh, 720px); border-radius: 20px; overflow: hidden; background: var(--mist); box-shadow: inset 0 0 0 1px var(--border); }
.qf-cal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; opacity: 1; transition: opacity .4s; }
.qf-cal.is-loading iframe { opacity: 0; }
.qf-cal-skel { position: absolute; inset: 24px; display: grid; grid-template-columns: 1fr 1.3fr; grid-template-rows: 64px 1fr; gap: 16px; opacity: 0; transition: opacity .3s; }
.qf-cal.is-loading .qf-cal-skel { opacity: 1; }
.qf-cal-skel i { border-radius: 14px; background: linear-gradient(90deg, #E9EDF5 0%, #F5F7FB 50%, #E9EDF5 100%) 0 0 / 200% 100%; animation: qfSkel 1.2s linear infinite; }
.qf-cal-skel i:first-child { grid-column: 1 / -1; }
@keyframes qfSkel { to { background-position: -200% 0; } }
.qf-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 20px; border-radius: 20px; background: var(--mist); }
.qf-alt > span { color: var(--muted); font-weight: 500; }

@media (max-width: 1080px) {
  .ct2-grid { grid-template-columns: 1fr; }
  .ct2-aside { position: static; grid-template-columns: 1fr 1fr; align-items: end; }
  .ct2-aside h1, .ct2-aside .t-lead { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .ct2-aside { grid-template-columns: 1fr; gap: 18px; }
  .qf { min-height: 0; border-radius: var(--r-lg); }
  .qf-opts-rich { grid-template-columns: 1fr; }
  .qf-opt-rich { flex-direction: row; align-items: center; min-height: 72px; gap: 14px; padding: 14px 16px; }
  .qf-opt-rich .qf-opt-t { margin-top: 0; flex: 1; }
  .qf-opt-rich .qf-tick { position: static; }
  .qf-cal { height: 640px; }
  .qf-alt { padding: 14px; } .qf-alt .btn { width: 100%; }
}
html.reduced-motion .qf-screen, html.reduced-motion .qf-opt, html.reduced-motion .qf-end .ok, html.reduced-motion .qf-cal-skel i { animation: none; }
