:root{
  --bg:#000;
  --panel:#0b0b0b;
  --text:#ffffff;
  --muted:rgba(255,255,255,.70);
  --muted2:rgba(255,255,255,.55);
  --line:rgba(255,255,255,.12);
  --gold:#f3ac1c;
  --gold2:#ffbf33;
  --danger:#ff4d4d;
  --ok:#34d399;
  --radius:18px;
}

html{
  scrollbar-gutter:stable;
}

*{
  box-sizing:border-box;
}

html, body{
  height:100%;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}

.shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.15fr .85fr;
}

/* =========================
   HERO
   ========================= */

.hero{
  position:relative;
  overflow:hidden;
  min-height:100vh;
  background:#050505;
}

.heroVideo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:contrast(1.05) saturate(1.05);
  transform:none;
}

.heroOverlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 20% 30%, rgba(243,172,28,.18), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.25) 55%, rgba(0,0,0,.75));
}

.heroInner{
  position:relative;
  z-index:2;
  height:100%;
  padding:48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  gap:24px;
  margin:0 auto;
}

.heroLogo{
  width:min(360px, 65vw);
  height:auto;
  filter:drop-shadow(0 12px 30px rgba(0,0,0,.55));
}

.heroText{
  max-width:720px;
}

.heroText h1{
  margin:0;
  font-size:clamp(28px, 3.5vw, 54px);
  letter-spacing:.4px;
  line-height:1.05;
}

.heroText p{
  margin:10px 0 0;
  color:var(--muted);
  font-size:clamp(14px, 1.2vw, 18px);
  max-width:52ch;
  margin-left:auto;
  margin-right:auto;
}

.heroLinks{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

.heroLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.28);
  color:rgba(255,255,255,.88);
  text-decoration:none;
  font-weight:700;
  letter-spacing:.02em;
}

.heroLink:hover{
  border-color:rgba(243,172,28,.55);
  box-shadow:0 0 0 4px rgba(243,172,28,.14);
}

/* =========================
   RIGHT PANEL – GOLD
   ========================= */

.panel{
  background:linear-gradient(180deg, var(--gold), var(--gold2));
  border-left:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
  color:#0b0b0b;
}

.panelInner{
  width:100%;
  max-width:640px;
  background:transparent;
  border:0;
  border-radius:var(--radius);
  padding:16px;
  box-shadow:none;
}

.panelHeader{
  margin-bottom:16px;
}

.panelHeader h2{
  margin:14px 0 6px;
  font-size:clamp(24px, 2vw, 30px);
  line-height:1.1;
  color:#0b0b0b;
}

.panelHeader p{
  margin:0;
  color:rgba(0,0,0,.75);
  line-height:1.55;
}

/* =========================
   FORM
   ========================= */

.form{
  margin-top:18px;
}

.field{
  margin:14px 0;
}

label{
  display:block;
  font-size:13px;
  color:rgba(0,0,0,.7);
  margin-bottom:7px;
  font-weight:800;
  letter-spacing:.02em;
}

input,
select{
  width:100%;
  padding:13px 14px;
  border-radius:16px;
  border:1px solid rgba(0,0,0,.20);
  background:rgba(255,255,255,.96);
  color:#000;
  outline:none;
  min-height:52px;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
  transition:border-color .15s ease, box-shadow .15s ease;
}

input::placeholder{
  color:rgba(0,0,0,.45);
}

input:focus,
select:focus{
  border-color:rgba(0,0,0,.42);
  box-shadow:0 0 0 5px rgba(0,0,0,.12), 0 12px 26px rgba(0,0,0,.10);
}

/* consistent select arrow */
select{
  padding-right:46px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.62) 50%),
    linear-gradient(135deg, rgba(0,0,0,.62) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat:no-repeat;
  -webkit-appearance:none;
  appearance:none;
}

.btn{
  width:100%;
  margin-top:8px;
  padding:14px 16px;
  border:0;
  border-radius:16px;
  cursor:pointer;
  font-weight:900;
  letter-spacing:.02em;
  background:#000;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position:relative;
  box-shadow:0 14px 35px rgba(0,0,0,.25);
  min-height:54px;
  transition:transform .08s ease, filter .15s ease;
}

.btn:active{
  transform:translateY(1px);
}

.btn:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.btnAlt{
  background:transparent;
  border:2px solid #000;
  color:#000;
}

.btnSpinner{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(0,0,0,.25);
  border-top-color:rgba(0,0,0,.75);
  display:none;
  animation:spin .8s linear infinite;
}

@keyframes spin{
  to{transform:rotate(360deg);}
}

.status{
  margin:12px 0 0;
  min-height:20px;
  font-size:13px;
  color:rgba(0,0,0,.7);
}

.status.ok{color:var(--ok);}
.status.bad{color:var(--danger);}

.finePrint{
  margin:14px 0 0;
  color:rgba(0,0,0,.6);
  font-size:12px;
  line-height:1.4;
}

.panelFooter{
  margin-top:18px;
  color:rgba(0,0,0,.65);
  text-align:center;
}

/* =========================
   STEP INDICATOR
   ========================= */

.stepDots{
  display:flex;
  gap:10px;
  margin: 6px 0 14px;
}

.stepDot{
  flex:1;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(255,255,255,.50);
  border: 1px solid rgba(0,0,0,.12);
  color:#111;
}

.stepDotNum{
  width:28px;
  height:28px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:900;
  background: rgba(0,0,0,.10);
}

.stepDotText{
  font-weight:900;
  letter-spacing:.02em;
  font-size:13px;
}

.stepDot.isActive{
  background: rgba(255,255,255,.86);
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.stepDot.isActive .stepDotNum{
  background:#000;
  color:#fff;
}

/* =========================
   SLIDING STEPS (FIXED + ANIMATED)
   ========================= */

/* IMPORTANT:
   - Prevents Step 2 height stretching Step 1 (massive gap)
   - Keeps both panels top-aligned (no vertical stretch)
   - Wrapper height is controlled by JS (smooth) */

.stepsWrap{
  width:100%;
  overflow:hidden;            /* CRITICAL */
  border-radius:18px;
  position:relative;
  transition: height .35s cubic-bezier(.2,.9,.2,1); /* smooth height changes */
}

.stepsTrack{
  display:flex;               /* CRITICAL */
  flex-wrap:nowrap;           /* CRITICAL */
  width:200%;                 /* 2 panels */
  transform:translateX(0%);
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
  will-change: transform;

  /* ✅ FIX: stop flex from stretching panels to the tallest step */
  align-items:flex-start;
}

.stepPanel{
  flex:0 0 50%;               /* CRITICAL */
  width:50%;
  padding: 2px 0;

  /* ✅ FIX: prevent vertical stretching + keep each step natural height */
  flex-shrink:0;
  align-self:flex-start;
}

/* Slide state controlled by class on wrapper */
.stepsWrap.isStep2 .stepsTrack{
  transform:translateX(-50%);
}

.stepsWrap.isStep1 .stepsTrack{
  transform:translateX(0%);
}

/* subtle active/inactive fade */
.stepPanel{
  opacity:.98;
  transition: opacity .25s ease;
}

.stepsWrap.isStep1 #step2{ opacity:.20; }
.stepsWrap.isStep2 #step1{ opacity:.20; }

@media (prefers-reduced-motion: reduce){
  .stepsTrack{ transition:none; }
  .stepPanel{ transition:none; }
  .stepsWrap{ transition:none; }
}

/* =========================
   STEP 2 (REDESIGNED)
   ========================= */

.step2Header{
  margin: 6px 0 10px;
}

.step2TitleRow{
  display:flex;
  align-items:baseline;
  gap:10px;
}

.step2Kicker{
  font-weight:900;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(0,0,0,.75);
}

.step2Title{
  margin:0;
  font-size:18px;
  color:#0b0b0b;
}

.step2Desc{
  margin:8px 0 0;
  color:rgba(0,0,0,.75);
  line-height:1.5;
  font-size:13px;
}

.rulesActions{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin: 12px 0 14px;
}

.rulesActionBtn{
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 14px 14px;
  border-radius:16px;
  background:#000;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.02em;
  box-shadow:0 14px 35px rgba(0,0,0,.20);
  min-height:54px;
}

.rulesActionBtnAlt{
  background:rgba(255,255,255,.94);
  color:#000;
  border:1px solid rgba(0,0,0,.18);
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}

.rulesCard{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(0,0,0,.18);
  border-radius:18px;
  padding:12px;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}

.rulesCardTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 6px 10px;
}

.rulesBadge{
  font-weight:900;
  font-size:12px;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:#000;
}

.rulesHint{
  font-size:12px;
  color:rgba(0,0,0,.60);
}

.rulesItem{
  border-top:1px solid rgba(0,0,0,.10);
  padding-top:8px;
  margin-top:8px;
}

.rulesItem:first-of-type{
  border-top:none;
  padding-top:0;
  margin-top:0;
}

.rulesSummary{
  cursor:pointer;
  list-style:none;
  font-weight:900;
  color:#000;
  font-size:14px;
  padding:12px 12px;
  border-radius:14px;
  background:rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.rulesSummary::-webkit-details-marker{ display:none; }

.rulesSummary::after{
  content:"＋";
  font-weight:900;
  color:rgba(0,0,0,.55);
}

.rulesItem[open] .rulesSummary::after{
  content:"－";
}

.rulesBody{
  padding: 10px 12px 6px;
  color:#111;
  font-size:14px;
  line-height:1.6;
}

.rulesList{
  margin:0;
  padding-left:18px;
}

.rulesList li{
  margin: 6px 0;
}

.rulesNote{
  margin:10px 0 0;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.10);
  color:#111;
  font-size:13px;
  line-height:1.5;
}

.confirmCard{
  margin-top:14px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(0,0,0,.18);
  border-radius:18px;
  padding:12px;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}

.confirmRow{
  display:grid;
  grid-template-columns: 20px 1fr;
  gap:10px;
  align-items:start;
  cursor:pointer;
  user-select:none;
  color:#111;
  line-height:1.5;
  font-size:13px;
}

.confirmRow input{
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:#000;
}

.step2Buttons{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
  margin-top:12px;
}

.step2Buttons .btn{
  margin-top:0;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width:980px){
  .shell{
    grid-template-columns:1fr;
  }

  .hero{
    min-height:56vh;
  }

  .panel{
    border-top:1px solid var(--line);
    padding:20px;
  }

  .heroInner{
    padding:26px;
  }

  .heroLogo{
    width:min(320px, 72vw);
  }
}

@media (min-width:720px){
  .rulesActions{
    grid-template-columns: 1fr 1fr;
  }

  .step2Buttons{
    grid-template-columns: 1fr 2fr;
  }
}

@media (max-width:520px){
  .panelInner{
    padding:20px;
  }

  .panelHeader h2{
    font-size:22px;
  }

  input,
  select{
    padding:12px 12px;
    min-height:50px;
  }

  .btn,
  .rulesActionBtn{
    min-height:52px;
    padding:13px 14px;
  }
}

/* =========================
   DESKTOP HEIGHT FIX
   ========================= */

@media (min-width:981px){
  .shell{
    height:100vh;
    overflow:hidden;
  }

  .hero{
    height:100vh;
    min-height:0;
  }

  .panel{
    height:100vh;
    min-height:0;
    overflow-y:auto;
    align-items:flex-start;
  }
}
