/* ============================================================
   service.css — "Service My Car" page
   Load AFTER css/style.css. Everything is scoped to .sv-* / body.sv-page
   (own prefix, so it can never collide with classes in style.css).
   Mobile-first; tablet >=768px; desktop >=1024px.
   No <header>/<section> elements are used in the page (style.css styles those tags globally).
   ============================================================ */

body.sv-page{
  --sv-green:#18A76B;
  --sv-grey:#F5F5F5;
  --sv-muted:#7A7A72;
  --sv-line:#EDEDED;
  --sv-header-h:70px;
  background:#ECECEC;
  padding-bottom:0;
}
.sv-page [hidden]{display:none !important;}
.sv-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ---------- Header: same .header-v2-overlay as every page + a dark band behind it ---------- */
.sv-main{position:relative;padding:calc(var(--sv-header-h) + 26px) 16px 56px;}
.sv-main::before{content:'';position:absolute;top:0;left:0;right:0;height:var(--sv-header-h);background:var(--green-dark,#0A2318);}
.sv-wrap{max-width:1280px;margin:0 auto;}

.sv-title{margin:0;font-family:var(--display);font-weight:800;font-size:2.3rem;line-height:1.05;color:#16181B;}
.sv-sub{margin:10px 0 0;font-size:1rem;color:var(--sv-muted);}

/* ---------- Hero ---------- */
.sv-hero{
  position:relative;overflow:hidden;margin-top:26px;border-radius:22px;min-height:230px;
  background:#1B1F1D;color:#fff;display:flex;align-items:flex-end;
}
.sv-hero-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:62% 40%;}
.sv-hero::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;
  background:linear-gradient(0deg,rgba(18,20,19,.94) 0%,rgba(18,20,19,.7) 42%,rgba(18,20,19,0) 85%);}
.sv-hero-copy{position:relative;z-index:2;padding:22px 20px;}
.sv-hero-copy h2{margin:0;font-family:var(--display);font-weight:800;font-size:1.6rem;line-height:1.05;text-transform:uppercase;}
.sv-hero-copy p{margin:8px 0 0;font-size:.95rem;}

/* ---------- Progress steps ---------- */
.sv-steps{list-style:none;display:flex;margin:20px -4px 0;padding:0;}
.sv-step{flex:1 1 0;min-width:0;margin:0 4px;}
.sv-step a{
  display:flex;flex-direction:column;align-items:center;justify-content:center;height:62px;padding:6px 4px;
  border-radius:14px;background:#fff;color:#16181B;text-align:center;
}
.sv-step-n{
  display:flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;
  background:#EEE;color:#6B6B64;font-size:.74rem;font-weight:700;line-height:1;
}
.sv-step-t{margin-top:4px;font-size:.66rem;font-weight:700;line-height:1.15;}
.sv-step.is-current a{background:var(--yellow);}
.sv-step.is-current .sv-step-n{background:#16181B;color:#fff;}
.sv-step.is-done .sv-step-n{background:var(--sv-green);color:#fff;font-size:0;}
.sv-step.is-done .sv-step-n::after{content:'\2713';font-size:.8rem;font-weight:700;}
.sv-step a:focus-visible{outline:2.5px solid #16181B;outline-offset:2px;}

/* ---------- Layout ---------- */
.sv-grid{margin-top:18px;}
.sv-card{background:#fff;border-radius:26px;padding:22px 18px 20px;}
.sv-summary{margin-top:18px;}
.sv-card-title{margin:0 0 16px;font-family:var(--display);font-weight:700;font-size:1.4rem;line-height:1.2;color:#16181B;}
.sv-anchor{position:relative;top:calc(-1 * (var(--sv-header-h) + 14px));height:0;visibility:hidden;}

/* ---------- Form controls ---------- */
.sv-row{display:flex;flex-wrap:wrap;margin:0 -8px;}
.sv-row .sv-field{flex:1 1 230px;min-width:0;margin:0 8px 16px;}
.sv-field{margin-bottom:16px;}
.sv-field label,.sv-label{display:block;margin:0 0 6px 2px;font-size:.78rem;font-weight:600;color:var(--sv-muted);}
.sv-label-strong{font-size:.95rem;font-weight:700;color:#16181B;}
.sv-opt{font-weight:400;}
.sv-field input,.sv-field select{
  display:block;width:100%;height:52px;padding:0 16px;border:0;border-radius:12px;background:var(--sv-grey);
  font-family:inherit;font-size:.94rem;color:#16181B;-webkit-appearance:none;appearance:none;
}
.sv-field input::placeholder{color:#8F8F88;}
.sv-field input:focus,.sv-field select:focus{outline:2.5px solid #16181B;outline-offset:2px;}
.sv-field input.is-invalid,.sv-field select.is-invalid{outline:2px solid #B3261E;}
.sv-select{position:relative;}
.sv-select select{padding-right:42px;cursor:pointer;}
.sv-select::after{
  content:'';position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-6px;pointer-events:none;
  border-right:2px solid #16181B;border-bottom:2px solid #16181B;transform:rotate(45deg);
}
.sv-select select:invalid{color:#8F8F88;}
.sv-select select option{color:#16181B;}
.sv-datewrap{position:relative;}
.sv-datewrap input{padding-right:46px;}
.sv-datewrap input::-webkit-calendar-picker-indicator{position:absolute;top:0;right:0;width:100%;height:100%;opacity:0;cursor:pointer;}
.sv-cal{position:absolute;right:16px;top:50%;margin-top:-10px;color:#16181B;pointer-events:none;}
.sv-error{margin:6px 0 0 4px;font-size:.78rem;line-height:1.3;color:#B3261E;}
.sv-error a{text-decoration:underline;}
.sv-error-form{margin:6px 0 14px;padding:10px 12px;background:#FBEAE8;border-radius:10px;}
.sv-hint{margin:8px 0 0 4px;font-size:.76rem;line-height:1.4;color:var(--sv-muted);}
.sv-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}

/* chips (radio groups) */
.sv-set{border:0;margin:0 0 14px;padding:0;min-width:0;}
.sv-chips{display:flex;flex-wrap:wrap;margin:0 -4px;}
.sv-chip{position:relative;margin:0 4px 8px;}
.sv-chip input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;}
.sv-chip label{
  display:block;margin:0;padding:12px 18px;border-radius:12px;background:var(--sv-grey);
  font-size:.86rem;font-weight:700;color:#16181B;cursor:pointer;
}
.sv-chip input:checked + label{background:var(--yellow);}
.sv-chip input:focus-visible + label{outline:2.5px solid #16181B;outline-offset:2px;}

/* doorstep pickup */
.sv-pickup{display:flex;align-items:center;justify-content:space-between;margin:6px 0 16px;padding:16px;border-radius:14px;background:var(--sv-grey);}
.sv-pickup-text{min-width:0;padding-right:14px;}
.sv-pickup-text strong{display:block;font-size:.95rem;font-weight:700;color:#16181B;}
.sv-pickup-text span{display:block;margin-top:3px;font-size:.78rem;line-height:1.4;color:var(--sv-muted);}
.sv-switch{position:relative;flex:0 0 52px;width:52px;height:30px;margin:0;cursor:pointer;}
.sv-switch input{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;}
.sv-switch-ui{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:15px;background:#B9B9B2;transition:background .15s;}
.sv-switch-ui::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .15s;}
.sv-switch input:checked + .sv-switch-ui{background:var(--sv-green);}
.sv-switch input:checked + .sv-switch-ui::after{transform:translateX(22px);}
.sv-switch input:focus-visible + .sv-switch-ui{outline:2.5px solid #16181B;outline-offset:3px;}

/* ---------- Summary ---------- */
.sv-sum{margin:0 0 14px;}
.sv-sum > div{display:flex;justify-content:space-between;align-items:baseline;padding:11px 0;border-bottom:1px solid var(--sv-line);font-size:.88rem;}
.sv-sum dt{margin:0;color:var(--sv-muted);}
.sv-sum dd{margin:0 0 0 16px;font-weight:700;text-align:right;color:#16181B;}
.sv-cost{display:flex;align-items:center;margin:0 0 18px;padding:13px 14px;border-radius:12px;background:var(--sv-grey);font-size:.82rem;color:#5A5A54;}
.sv-cost svg{flex:0 0 18px;margin-right:10px;color:#6B6B64;}
.sv-submit{
  display:block;width:100%;height:58px;line-height:58px;border-radius:16px;background:var(--yellow);color:#16181B;
  font-weight:700;font-size:1rem;text-align:center;cursor:pointer;
}
.sv-submit:hover{filter:brightness(.97);}
.sv-submit[disabled]{opacity:.6;cursor:wait;}
.sv-submit:focus-visible{outline:2.5px solid #16181B;outline-offset:3px;}

/* ---------- Success ---------- */
.sv-success{margin-top:18px;}
.sv-success:focus{outline:none;}
.sv-success-lead{margin:0 0 12px;font-size:.98rem;line-height:1.5;color:#3A3A36;}
.sv-ref{margin:0 0 14px;font-size:.95rem;}
.sv-ref strong{display:inline-block;margin-left:6px;padding:4px 10px;border-radius:8px;background:var(--yellow);font-size:1rem;letter-spacing:.04em;}
.sv-success .sv-submit{margin-top:18px;}

/* ============================================================
   TABLET (>=768px)
   ============================================================ */
@media (min-width:768px){
  .sv-main{padding-left:32px;padding-right:32px;}
  .sv-title{font-size:3rem;}
  .sv-sub{font-size:1.1rem;}
  .sv-hero{min-height:230px;border-radius:26px;align-items:center;}
  .sv-hero-img{left:auto;right:0;width:auto;height:100%;max-width:none;object-fit:fill;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 26%);mask-image:linear-gradient(90deg,transparent 0,#000 26%);}
  .sv-hero::after{background:linear-gradient(90deg,rgba(18,20,19,.94) 0%,rgba(18,20,19,.72) 38%,rgba(18,20,19,0) 78%);}
  .sv-hero-copy{padding:34px 44px;}
  .sv-hero-copy h2{font-size:2.4rem;}
  .sv-hero-copy p{font-size:1.1rem;}
  .sv-steps{margin-left:-6px;margin-right:-6px;}
  .sv-step{margin:0 6px;}
  .sv-step a{flex-direction:row;height:56px;padding:0 16px;justify-content:flex-start;}
  .sv-step-t{margin:0 0 0 10px;font-size:.84rem;}
  .sv-card{padding:28px 26px 24px;}
}

/* ============================================================
   DESKTOP (>=1024px): vehicle form beside a sticky booking summary
   ============================================================ */
@media (min-width:1024px){
  body.sv-page{--sv-header-h:132px;}
  .sv-main{padding:calc(var(--sv-header-h) + 34px) 40px 80px;}
  .sv-title{font-size:3.5rem;}
  .sv-hero{min-height:260px;border-radius:28px;margin-top:36px;}
  .sv-hero-copy{padding:40px 48px;}
  .sv-hero-copy h2{font-size:2.9rem;}
  .sv-hero-copy p{font-size:1.2rem;}
  .sv-steps{margin-top:28px;}
  .sv-grid{display:flex;align-items:flex-start;margin-top:28px;}
  .sv-vehicle{flex:1 1 0;min-width:0;margin-right:32px;border-radius:30px;padding:32px 32px 26px;}
  .sv-summary{flex:0 0 36.5%;max-width:36.5%;margin-top:0;border-radius:30px;padding:32px 28px 28px;position:sticky;top:calc(var(--sv-header-h) + 20px);}
}
