*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.loading-screen {
  position: fixed; inset: 0;
  background: #141e1b;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo { width: 80px; height: 80px; animation: logoPulse 1.5s ease-in-out infinite; }
.loading-logo svg { width: 100%; height: 100%; }
@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(0.8); }
}
:root {
  --teal: #2ec4a9;
  --teal-d: #1fa88f;
  --ink: #141e1b;
  --mid: #4a5e59;
  --muted: #8c9e99;
  --light: #f3f8f6;
  --white: #fff;
  --border: rgba(20,30,27,0.1);
  --border-q: #e4e4e4;
  --sans: 'Plus Jakarta Sans', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
html, body {
  height: 100%; overflow: hidden;
  font-family: var(--sans); background: var(--white);
  color: var(--ink); -webkit-font-smoothing: antialiased;
}

/* ═══ SHELL ═══ */
.shell { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 280px 1fr; }

/* ═══ LEFT PANEL ═══ */
.lp {
  background: var(--ink);
  display: flex; flex-direction: column;
  padding: 36px 28px;
  position: relative; overflow: hidden;
}
.lp-glow1 { position:absolute; top:-80px; left:-80px; width:360px; height:360px; background:radial-gradient(circle,rgba(46,196,169,.13) 0%,transparent 65%); border-radius:50%; pointer-events:none; }
.lp-glow2 { position:absolute; bottom:-60px; right:-60px; width:260px; height:260px; background:radial-gradient(circle,rgba(46,196,169,.07) 0%,transparent 70%); border-radius:50%; pointer-events:none; }

.lp-logo { margin-bottom: 36px; position: relative; z-index: 2; }
.lp-logo img { height: 28px; filter: brightness(0) invert(1); opacity: .85; }

/* Eyebrow + heading + sub */
.lp-eyebrow {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 14px;
}
.lp-eyebrow::before { content: ''; width: 18px; height: 1.5px; background: var(--teal); border-radius: 1px; flex-shrink: 0; }
.lp-heading {
  position: relative; z-index: 2;
  font-family: var(--serif);
  font-size: 34px; font-weight: 300; line-height: 1.15;
  color: white; margin-bottom: 14px;
}
.lp-heading em { font-style: italic; color: var(--teal); }
.lp-sub {
  position: relative; z-index: 2;
  font-size: 13px; color: rgba(255,255,255,.4);
  line-height: 1.65; margin-bottom: 36px;
}

/* Progress */
.lp-prog { position: relative; z-index: 2; margin-bottom: 28px; }
.lp-prog-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.lp-prog-label { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.lp-prog-pct   { font-size: 12.5px; font-weight: 700; color: var(--teal); }
.lp-prog-track { height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.lp-prog-fill  { height: 100%; background: var(--teal); border-radius: 2px; transition: width .5s cubic-bezier(.4,0,.2,1); width: 0%; }

/* Step nav */
.lp-steps { flex: 1; position: relative; z-index: 2; overflow-y: auto; scrollbar-width: none; }
.lp-steps::-webkit-scrollbar { display: none; }
.lp-step {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; transition: opacity .25s;
}
.lp-step.future  { opacity: .22; }
.lp-step.past    { opacity: .42; cursor: pointer; }
.lp-step.current { opacity: 1; }
.lp-dot {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: rgba(255,255,255,.3);
  transition: all .3s;
}
.lp-step.current .lp-dot { background: var(--teal); border-color: var(--teal); color: white; box-shadow: 0 0 0 4px rgba(46,196,169,.18); }
.lp-step.past    .lp-dot { background: rgba(46,196,169,.2); border-color: rgba(46,196,169,.4); color: var(--teal); }
.dn { display: inline; } .dc { display: none; }
.lp-step.past .dn { display: none; } .lp-step.past .dc { display: inline; font-size: 12px; }
.lp-step-name { font-family: var(--sans); font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.4); line-height: 1.3; transition: color .25s; }
.lp-step.current .lp-step-name { color: white; font-weight: 600; }

/* Contact bottom */
.lp-contact { position: relative; z-index: 2; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.lp-contact p { font-size: 12px; color: rgba(255,255,255,.28); line-height: 1.6; }
.lp-contact a { color: rgba(255,255,255,.42); text-decoration: none; transition: color .2s; }

/* ═══ RIGHT PANEL ═══ */
.rp { position: relative; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.rp-bar { height: 4px; background: #efefef; flex-shrink: 0; }
.rp-bar-fill { height: 100%; background: var(--teal); transition: width .5s cubic-bezier(.4,0,.2,1); width: 0%; }

.stage {
  flex: 1; position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  overflow-y: auto; overflow-x: hidden;
}

/* ═══ SLIDES ═══ */
.slide {
  position: absolute; width: 100%; max-width: 620px; padding: 0 64px;
  opacity: 0; pointer-events: none;
  transform: translateY(36px);
  transition: opacity .42s ease, transform .42s ease;
}
/* auto margins center the slide when it fits; collapse to 0 when content
   is taller than the stage so the stage scrolls from the top instead */
.slide.active { opacity: 1; pointer-events: all; transform: translateY(0); position: relative; margin: auto 0; }
.slide.exit-up   { opacity: 0; transform: translateY(-36px); transition: opacity .3s ease, transform .3s ease; }
.slide.exit-down { opacity: 0; transform: translateY(36px);  transition: opacity .3s ease, transform .3s ease; }

/* Welcome */
.wlc-logo { margin-bottom: 32px; }
.wlc-logo img { height: 56px; }
.wlc-title { font-family: var(--sans); font-size: clamp(18px, 2vw, 22px); line-height: 1.7; color: #555; margin-bottom: 14px; max-width: 520px; }
.wlc-title strong { color: var(--ink); font-weight: 700; }
.wlc-sub { font-family: var(--sans); font-size: 16px; color: #888; margin-bottom: 28px; }
.wlc-phone { display: flex; align-items: center; gap: 7px; font-size: 15px; color: #bbb; margin-bottom: 36px; }

/* Question */
.q-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.q-eyebrow::before { content: ''; width: 16px; height: 1.5px; background: var(--teal); border-radius: 1px; }
.q-title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300; color: var(--ink); line-height: 1.2; margin-bottom: 6px;
}
.q-title strong { font-weight: 400; font-style: normal; }
.q-req { color: var(--teal); }
.q-hint { font-family: var(--sans); font-size: 13.5px; color: #aaa; margin-bottom: 24px; line-height: 1.5; }

/* Options */
.opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.opt {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px; border-radius: 8px;
  border: 1.5px solid var(--border-q);
  background: var(--white); cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: var(--sans); width: 100%; text-align: left;
}
.opt.selected{ border-color: var(--teal); background: rgba(46,196,169,.07); }
.opt.selected .ok { background: var(--ink); color: white; border-color: var(--ink); }
.ok {
  width: 27px; height: 27px; border-radius: 6px; flex-shrink: 0;
  background: #f5f5f5; border: 1.5px solid #ddd;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #aaa;
  transition: all .15s; font-family: var(--sans);
}
.ol { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--ink); }
.os { font-family: var(--sans); font-size: 12px; color: #aaa; margin-top: 2px; font-weight: 400; }

/* Country grid */
.opts.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.opts.grid .opt { flex-direction: row; padding: 11px 14px; }

/* Text inputs */
.q-inp {
  width: 100%; font-size: 24px; font-family: var(--serif); font-weight: 300;
  color: var(--ink); background: transparent;
  border: none; border-bottom: 2px solid #e4e4e4;
  padding: 10px 0; outline: none;
  transition: border-color .2s; display: block; margin-bottom: 24px;
}
.q-inp:focus { border-color: var(--teal); }
.q-inp::placeholder { color: #ccc; font-style: italic; }
.phone-row { display: flex; align-items: flex-end; }
.phone-flag {
  font-family: var(--sans); font-size: 16px; color: #bbb;
  border-bottom: 2px solid #e4e4e4; padding: 12px 10px 12px 0;
  white-space: nowrap; transition: border-color .2s; line-height: 1.4;
}

/* Actions */
.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-ok {
  background: var(--teal); color: white;
  padding: 11px 26px; border-radius: 7px;
  font-size: 14px; font-weight: 700; font-family: var(--sans);
  border: none; cursor: pointer; display: flex; align-items: center; gap: 7px;
  transition: background .2s, transform .15s;
  box-shadow: 0 3px 12px rgba(46,196,169,.3);
}
.btn-start {
  background: var(--teal); color: white;
  padding: 13px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 700; font-family: var(--sans);
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(46,196,169,.3);
}
.btn-submit {
  background: var(--ink); color: white;
  padding: 11px 26px; border-radius: 7px;
  font-size: 14px; font-weight: 700; font-family: var(--sans);
  border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.kh { font-size: 12px; color: #bbb; display: flex; align-items: center; gap: 4px; font-family: var(--sans); }
.kc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 4px;
  background: #f5f5f5; border: 1px solid #ddd;
  font-size: 10px; font-weight: 700; color: #aaa; font-family: var(--sans);
}

/* Thank you */
.ty { text-align: center; padding: 20px 0; }
.ty-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(46,196,169,.1); border: 2px solid rgba(46,196,169,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 24px; color: var(--teal);
}
.ty-title { font-family: var(--serif); font-size: 42px; font-weight: 300; color: var(--ink); line-height: 1.1; margin-bottom: 12px; }
.ty-title em { font-style: italic; color: var(--teal); }
.ty-sub { font-family: var(--sans); font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 32px; max-width: 400px; margin-left: auto; margin-right: auto; }
.ty-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.ty-link {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 8px; border: 1.5px solid var(--border-q);
  text-decoration: none; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink);
  transition: border-color .2s, color .2s;
}
.ty-back { font-family: var(--sans); font-size: 13px; color: #bbb; text-decoration: none; }

/* Bottom bar */
.bottom {
  flex-shrink: 0; height: 52px; padding: 0 64px;
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid #f0f0f0;
  background: rgba(255,255,255,.98);
}
.bot-label { font-family: var(--sans); font-size: 12.5px; color: #ccc; font-weight: 600; }
.bot-arrows { display: flex; gap: 8px; }
.arr {
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--teal); color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; font-weight: 700;
  transition: background .2s;
  box-shadow: 0 2px 8px rgba(46,196,169,.3);
}
.arr.disabled { opacity: .28; pointer-events: none; }
.arr-mob { display: none; }

@keyframes cf-shake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-8px); }
  40%      { transform: translateX(7px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(4px); }
}
.slide.shake { animation: cf-shake .45s ease; }

/* Responsive */
@media(max-width:700px) {
  .shell { grid-template-columns: 1fr; }
  .lp { display: none; }
  .slide { padding: 0 20px; }
  .opts.grid { grid-template-columns: 1fr 1fr; }
  .q-title { font-size: 22px; }
  .stage { align-items: stretch; }
  .slide.active { padding: 28px 20px 24px; }

  /* Hide inline OK / keyboard hints — bottom bar handles navigation */
  .slide .actions { display: none; }

  /* ── Mobile sticky bottom nav bar ── */
  .bottom {
    padding: 10px 14px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    height: auto;
    border-top: 1px solid rgba(0,0,0,.07);
    background: #fff;
    justify-content: stretch;
    align-items: center;
  }
  .bot-label { display: none; }
  .bot-arrows {
    display: flex;
    width: 100%;
    gap: 10px;
  }
  .arr {
    height: 46px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(46,196,169,.25);
  }
  #arr-up {
    width: 46px;
    flex-shrink: 0;
    font-size: 20px;
  }
  #arr-dn {
    flex: 1;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .04em;
  }
  .arr-desk { display: none; }
  .arr-mob  { display: block; }
}

@media (hover: hover) {
  .lp-step.past:hover { opacity: .65; }
  .lp-contact a:hover { color: var(--teal); }
  .opt:hover { border-color: var(--teal); background: rgba(46,196,169,.04); }
  .btn-ok:hover { background: var(--teal-d); transform: translateY(-1px); }
  .btn-start:hover { background: var(--teal-d); transform: translateY(-1px); }
  .btn-submit:hover { background: #0d1a17; transform: translateY(-1px); }
  .ty-link:hover { border-color: var(--teal); color: var(--teal); }
  .ty-back:hover { color: var(--teal); }
  .arr:hover { background: var(--teal-d); }
}
