/* ==========================================================================
   Get Extra Warranty — styles
   Sections: 1) tokens  2) base  3) progress road  4) hero  5) card / form
             6) step 2  7) step 3  8) footer  9) legal pages  10) responsive
   ========================================================================== */

/* ------------------------------ 1) tokens -------------------------------- */
:root{
  --blue-900:#0b3f8f;
  --blue-700:#0b62d6;
  --blue-500:#1b7ef5;
  --blue-050:#e8f1fe;

  --ink:#0d1b2a;
  --ink-soft:#3c4b5d;
  --muted:#6b7a8d;

  --red-600:#d9151c;
  --red-500:#ef2b2b;

  --line:#dfe5ec;
  --sheet:#ffffff;
  --page:#eef3f8;

  --radius-card:22px;
  --radius-field:12px;

  --font-display:'Montserrat',-apple-system,'Segoe UI',Arial,sans-serif;
  --font-text:'Inter',-apple-system,'Segoe UI',Arial,sans-serif;

  --shadow-card:0 24px 60px rgba(13,27,42,.16);
  --shadow-btn:0 10px 22px rgba(217,21,28,.35);

  --wrap:1240px;
}

/* ------------------------------- 2) base --------------------------------- */
*,*::before,*::after{box-sizing:border-box}

html,body{margin:0;padding:0}

body{
  font-family:var(--font-text);
  color:var(--ink);
  background:var(--page);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

img{max-width:100%;display:block}
a{color:var(--blue-700)}

.wrap{
  width:100%;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 20px;
}

.visually-hidden{
  position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;padding:0;margin:-1px;
}

:focus-visible{
  outline:3px solid var(--blue-500);
  outline-offset:2px;
  border-radius:6px;
}

/* --------------------------- 3) progress road ---------------------------- */
.progress{
  --p:30%;
  padding:26px 0 6px;
}

.progress__steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:start;
  gap:6px;
  position:relative;
}

.pstep{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  text-align:center;
  position:relative;
}

.pstep__num{
  width:44px;height:44px;
  border-radius:50%;
  border:2px solid #b9c6d6;
  color:#8f9dae;
  background:rgba(255,255,255,.75);
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
  display:flex;align-items:center;justify-content:center;
  transition:background .25s ease,border-color .25s ease,color .25s ease;
}

.pstep__label{
  font-size:14px;
  color:var(--muted);
  max-width:15ch;
}

.pstep__pct{
  font-family:var(--font-display);
  font-weight:700;
  font-size:16px;
  color:var(--muted);
}

.pstep.is-active .pstep__num,
.pstep.is-done .pstep__num{
  background:var(--blue-700);
  border-color:var(--blue-700);
  color:#fff;
}
.pstep.is-active .pstep__label,
.pstep.is-done .pstep__label{color:var(--blue-700);font-weight:600}
.pstep.is-active .pstep__pct,
.pstep.is-done .pstep__pct{color:var(--blue-700)}

/* connector lines between the numbers (desktop only, see 10) */
.pstep::after{
  content:"";
  position:absolute;
  top:22px;
  left:calc(50% + 30px);
  right:calc(-50% + 30px);
  height:2px;
  background:#cdd8e5;
  display:none;
}
.pstep:last-child::after{display:none !important}

/* the road itself */
.road{
  position:relative;
  margin-top:14px;
  height:26px;
  border-radius:16px;
  background:linear-gradient(180deg,#c9d3de,#aab7c6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 3px 8px rgba(13,27,42,.14);
  overflow:visible;
}

.road__fill{
  position:absolute;
  inset:0 auto 0 0;
  width:var(--p);
  border-radius:16px;
  background:linear-gradient(90deg,#0b62d6 0%,#2b8bfb 70%,rgba(43,139,251,0) 100%);
  transition:width .5s cubic-bezier(.4,0,.2,1);
}

.road__dashes{
  position:absolute;
  left:12px;right:12px;top:50%;
  height:3px;
  transform:translateY(-50%);
  background-image:repeating-linear-gradient(90deg,#fff 0 18px,transparent 18px 34px);
  border-radius:2px;
  opacity:.95;
}

/* track is inset by half a car width so the car never overflows the road */
.road__track{
  position:absolute;
  top:0;bottom:0;
  left:calc(var(--car-w) / 2 + 6px);
  right:calc(var(--car-w) / 2 + 6px);
  --car-w:150px;
}

.road__car{
  position:absolute;
  left:var(--p);
  bottom:2px;
  width:var(--car-w);
  transform:translateX(-50%);
  transition:left .5s cubic-bezier(.4,0,.2,1);
  filter:drop-shadow(0 6px 10px rgba(13,27,42,.25));
  pointer-events:none;
}

.road__bubble{
  position:absolute;
  left:var(--p);
  top:calc(100% + 13px);
  z-index:3;
  transform:translateX(-50%);
  background:#fff;
  color:var(--blue-700);
  font-family:var(--font-display);
  font-weight:700;
  font-size:15px;
  padding:5px 12px;
  border-radius:10px;
  box-shadow:0 6px 16px rgba(13,27,42,.18);
  transition:left .5s cubic-bezier(.4,0,.2,1);
  white-space:nowrap;
  display:none;
}
.road__bubble::after{
  content:"";
  position:absolute;
  bottom:100%;left:50%;
  transform:translateX(-50%);
  border:7px solid transparent;
  border-bottom-color:#fff;
}

/* ------------------------------- 4) hero --------------------------------- */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:
    linear-gradient(180deg,rgba(255,255,255,.92) 0%,rgba(255,255,255,.35) 26%,rgba(255,255,255,0) 46%),
    url("../img/background.png") no-repeat right bottom / cover;
  background-color:#dfeaf6;
}

.hero > .wrap{flex:1 1 auto}

.hero__title{
  font-family:var(--font-display);
  font-weight:800;
  font-style:italic;
  letter-spacing:-.5px;
  color:var(--ink);
  font-size:clamp(28px,4.4vw,58px);
  line-height:1.08;
  margin:22px 0 26px;
  text-shadow:0 1px 0 rgba(255,255,255,.6);
}
.hero__title em{
  font-style:italic;
  color:var(--blue-700);
  position:relative;
  white-space:nowrap;
}
.hero__title em::after{
  content:"";
  position:absolute;
  left:-2%;right:-6%;
  bottom:-.16em;
  height:.12em;
  border-radius:50%;
  background:linear-gradient(90deg,rgba(11,98,214,0),var(--blue-500),rgba(11,98,214,0));
}

.hero__body{
  display:grid;
  grid-template-columns:minmax(320px,520px) 1fr;
  align-items:start;
  gap:32px;
  flex:1 1 auto;
}

.hero__photo{display:none}

.shield{
  width:min(430px,100%);
  margin:10px auto 0;
  filter:drop-shadow(0 18px 34px rgba(11,63,143,.28));
}

/* ---------------------------- 5) card / form ----------------------------- */
.card{
  background:var(--sheet);
  border-radius:var(--radius-card);
  box-shadow:var(--shadow-card);
  padding:28px 28px 24px;
}

.card__title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(22px,2.2vw,28px);
  margin:0 0 6px;
  color:var(--ink);
}

.card__lead{
  margin:0 0 18px;
  color:var(--ink-soft);
  font-size:15px;
}

.benefits{
  list-style:none;
  margin:14px 0 22px;
  padding:0;
  display:grid;
  gap:12px;
}
.benefits li{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:16px;
  color:var(--ink);
}
.benefits .ico{
  flex:0 0 auto;
  width:36px;height:36px;
  border-radius:50%;
  background:var(--blue-050);
  color:var(--blue-700);
  display:flex;align-items:center;justify-content:center;
}
.benefits .ico svg{width:19px;height:19px}

.field{position:relative;margin-bottom:14px}

.field__icon{
  position:absolute;
  left:16px;top:50%;
  transform:translateY(-50%);
  color:#8a98a9;
  pointer-events:none;
}
.field__icon svg{width:20px;height:20px;display:block}

.input,.select{
  width:100%;
  height:56px;
  border:1px solid var(--line);
  border-radius:var(--radius-field);
  background:#fbfcfe;
  font:16px/1.4 var(--font-text);
  color:var(--ink);
  padding:0 16px 0 50px;
  transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;
  appearance:none;
}
.input::placeholder{color:#94a2b3}

.input:hover,.select:hover{border-color:#c3cfdd}
.input:focus,.select:focus{
  border-color:var(--blue-500);
  background:#fff;
  box-shadow:0 0 0 4px rgba(27,126,245,.14);
  outline:none;
}

.select{
  padding-left:16px;
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236b7a8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 18px center;
  padding-right:44px;
}
.select:disabled{background-color:#f1f4f8;color:#9aa7b6;cursor:not-allowed}

.label{
  display:block;
  font-size:13px;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:none;
  color:var(--muted);
  margin:0 0 6px 2px;
}

.field.has-error .input,
.field.has-error .select{
  border-color:#e04b4b;
  background:#fff7f7;
  box-shadow:0 0 0 4px rgba(224,75,75,.12);
}

.error{
  display:none;
  margin:6px 0 0 2px;
  font-size:13px;
  color:#c81f26;
}
.field.has-error .error{display:block}

/* buttons */
.btn{
  display:block;
  width:100%;
  border:0;
  cursor:pointer;
  font-family:var(--font-display);
  font-weight:700;
  font-size:19px;
  color:#fff;
  padding:17px 20px;
  border-radius:12px;
  background:linear-gradient(180deg,var(--red-500),var(--red-600));
  box-shadow:var(--shadow-btn);
  transition:transform .15s ease,box-shadow .2s ease,filter .2s ease;
}
.btn:hover{filter:brightness(1.05);box-shadow:0 12px 26px rgba(217,21,28,.42)}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.6;cursor:progress}

.btn-ghost{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:auto;
  background:none;
  box-shadow:none;
  border:1px solid var(--line);
  color:var(--ink-soft);
  font-size:15px;
  padding:13px 18px;
  border-radius:12px;
}
.btn-ghost:hover{background:#f5f8fc;filter:none;box-shadow:none}

.actions{display:flex;gap:12px;align-items:stretch}
.actions .btn{flex:1 1 auto}
.actions .btn-ghost{flex:0 0 auto}

/* "Warranty information" link under the form */
.info-link{
  margin:16px 0 2px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:15px;
}
.info-link a{
  color:var(--blue-700);
  text-decoration:underline;
  text-underline-offset:3px;
  text-transform:none; /* always sentence case: "Warranty information" */
}
.info-link .ico-i{
  width:20px;height:20px;
  flex:0 0 auto;
  color:var(--muted);
}

.form-note{
  margin:14px 0 0;
  font-size:12.5px;
  color:var(--muted);
  text-align:center;
}
.form-note a{color:var(--muted);text-decoration:underline}

/* ------------------------------ 6) step 2 -------------------------------- */
.step{display:none}
.step.is-current{display:block}

.mount{
  margin:4px 0 16px;
  border-top:1px solid var(--line);
  padding-top:16px;
}
.mount__title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:16px;
  margin:0 0 4px;
}
.mount__hint{margin:0 0 12px;font-size:13.5px;color:var(--muted)}

.mount__options{display:grid;gap:10px}

.opt{
  display:flex;
  align-items:flex-start;
  gap:12px;
  border:1px solid var(--line);
  border-radius:var(--radius-field);
  padding:14px 16px;
  cursor:pointer;
  background:#fbfcfe;
  transition:border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.opt:hover{border-color:#bcccdf;background:#fff}
.opt input{
  appearance:none;
  width:20px;height:20px;
  margin:2px 0 0;
  border:2px solid #b9c6d6;
  border-radius:50%;
  flex:0 0 auto;
  position:relative;
}
.opt input:checked{border-color:var(--blue-700)}
.opt input:checked::after{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:50%;
  background:var(--blue-700);
}
.opt:has(input:checked){
  border-color:var(--blue-700);
  background:var(--blue-050);
  box-shadow:0 0 0 3px rgba(27,126,245,.12);
}
.opt__name{font-weight:600;display:block}
.opt__desc{font-size:13.5px;color:var(--muted)}

/* ------------------------------ 7) step 3 -------------------------------- */
.done{
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--blue-050);
  border:1px solid #cfe2fd;
  border-radius:14px;
  padding:14px 16px;
  margin:0 0 18px;
}
.done .ico{
  width:38px;height:38px;flex:0 0 auto;
  border-radius:50%;
  background:var(--blue-700);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.done p{margin:0;font-size:15px;color:var(--ink)}

.video{
  position:relative;
  border-radius:14px;
  overflow:hidden;
  background:#0d1b2a;
  aspect-ratio:16/9;
  margin:0 0 16px;
  box-shadow:0 12px 28px rgba(13,27,42,.2);
}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

.video-missing{
  display:flex;align-items:center;justify-content:center;
  text-align:center;
  padding:26px;
  border:1px dashed #c3cfdd;
  border-radius:14px;
  color:var(--ink-soft);
  background:#f7fafd;
  margin:0 0 16px;
}

.summary{
  list-style:none;
  margin:0 0 18px;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
}
.summary li{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:11px 16px;
  font-size:14.5px;
  border-bottom:1px solid var(--line);
  background:#fbfcfe;
}
.summary li:last-child{border-bottom:0}
.summary dt,.summary .k{color:var(--muted)}
.summary .v{font-weight:600;text-align:right}

.alert{
  border-radius:12px;
  padding:12px 14px;
  font-size:14px;
  margin:0 0 14px;
  display:none;
}
.alert.is-shown{display:block}
.alert--warn{background:#fff8e6;border:1px solid #f2dda2;color:#7a5a09}

/* ------------------------------ 8) footer -------------------------------- */
.site-footer{
  padding:22px 0 26px;
  margin-top:auto;
}
.site-footer__inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:8px 16px;
  font-size:14px;
  color:var(--ink-soft);
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(4px);
  border-radius:14px;
  padding:12px 18px;
  width:fit-content;
  max-width:100%;
  margin:0 auto;
  text-align:center;
}
.site-footer__inner a{
  color:var(--blue-700);
  text-decoration:underline;
  text-underline-offset:3px;
}
.site-footer__sep{color:#a9b6c5}

/* --------------------------- 9) legal pages ------------------------------ */
.legal-page{
  background:var(--page);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

.legal-head{
  background:linear-gradient(180deg,#0b3f8f,#0b62d6);
  color:#fff;
  padding:18px 0;
}
.legal-head__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.legal-head__brand{
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  letter-spacing:.01em;
  color:#fff;
  text-decoration:none;
}
.legal-head__back{
  color:#fff;
  font-size:14.5px;
  text-decoration:underline;
  text-underline-offset:3px;
  opacity:.92;
}

.sheet{
  background:var(--sheet);
  border-radius:var(--radius-card);
  box-shadow:0 16px 44px rgba(13,27,42,.1);
  padding:clamp(22px,4vw,54px);
  margin:26px auto 34px;
  max-width:900px;
}

.sheet h1{
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(26px,3.4vw,38px);
  line-height:1.15;
  margin:0 0 8px;
}
.sheet .sheet__meta{
  color:var(--muted);
  font-size:14px;
  margin:0 0 6px;
}
.sheet .sheet__note{
  color:var(--ink-soft);
  font-size:14.5px;
  background:#f5f8fc;
  border-left:3px solid var(--blue-500);
  border-radius:0 10px 10px 0;
  padding:12px 16px;
  margin:18px 0 26px;
}
.sheet h2{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(18px,2vw,22px);
  line-height:1.3;
  margin:34px 0 10px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.sheet h2:first-of-type{border-top:0;padding-top:0}
.sheet h3{
  font-family:var(--font-display);
  font-weight:700;
  font-size:17px;
  margin:24px 0 8px;
}
.sheet p{margin:0 0 14px;color:var(--ink-soft);font-size:16px}
.sheet ul{margin:0 0 16px;padding-left:22px;color:var(--ink-soft)}
.sheet li{margin:0 0 8px}
.sheet strong{color:var(--ink)}
.sheet a{word-break:break-word}
.sheet hr{border:0;border-top:1px solid var(--line);margin:30px 0}

.contact-box{
  border:1px solid var(--line);
  background:#fbfcfe;
  border-radius:14px;
  padding:16px 18px;
  margin:0 0 18px;
}
.contact-box p{margin:0 0 4px}

.toc{
  background:#f5f8fc;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px 18px;
  margin:0 0 26px;
}
.toc h2{
  border:0;
  padding:0;
  margin:0 0 10px;
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
}
.toc ol{margin:0;padding-left:20px;columns:2;column-gap:26px}
.toc li{margin:0 0 6px;font-size:14.5px}

.back-home{
  display:inline-block;
  margin-top:10px;
  font-size:15px;
}

/* ---------------------------- 10) responsive ----------------------------- */
@media (min-width:900px){
  .pstep::after{display:block}
  .road__bubble{display:block}
  .progress{padding-top:30px}
  .pstep__pct{display:none} /* percentage lives in the bubble on desktop */
  .progress{padding-bottom:40px}
  .hero__body{padding-bottom:10px}
  .card{padding:32px 34px 28px}
}

@media (max-width:899px){
  /* mobile layout: title -> steps -> road -> photo -> card (see 1 Stepmob.png) */
  .hero{
    min-height:0;
    background:#f2f7fc;
    padding-bottom:0;
  }
  .hero .wrap{display:flex;flex-direction:column;padding:0 16px}

  .hero__title{
    order:1;
    text-align:center;
    margin:20px 0 4px;
    font-size:clamp(26px,7.4vw,40px);
  }
  .progress{order:2;padding:10px 0 0}
  .hero__photo{order:3}
  .hero__body{order:4;display:block}

  .shield{display:none} /* hidden on mobile: it overlapped the road and photo */

  .hero__photo{
    display:block;
    height:clamp(160px,42vw,240px);
    margin:16px -16px 0;
    background:url("../img/background.png") no-repeat right 30% bottom / cover;
  }

  .hero__body{
    margin-top:-34px;
    position:relative;
    z-index:2;
  }

  .card{padding:22px 20px 20px}

  .road__track{--car-w:104px}
  .road{height:22px}
  .pstep__num{width:38px;height:38px;font-size:16px}
  .pstep__label{font-size:12.5px;line-height:1.25}
  .pstep__pct{font-size:14px}

  .actions{flex-direction:column-reverse}
  .btn-ghost{width:100%;justify-content:center}

  .site-footer{padding:18px 0 22px}
  .toc ol{columns:1}
}

@media (max-width:380px){
  .road__track{--car-w:86px}
  .pstep__label{font-size:11.5px}
}

@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important}
}
