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

body.bs-page{
  --bs-green:#18A76B;
  --bs-grey:#F5F5F5;
  --bs-muted:#7F7F78;
  --bs-header-h:70px;
  background:#ECECEC;
  padding-bottom:0;
}
.bs-page [hidden]{display:none !important;}

/* ---------- Header: same .header-v2-overlay as every page + a dark band behind it ---------- */
.bs-main{position:relative;padding:calc(var(--bs-header-h) + 26px) 16px 56px;}
.bs-main::before{content:'';position:absolute;top:0;left:0;right:0;height:var(--bs-header-h);background:var(--green-dark,#0A2318);}
.bs-wrap{max-width:1280px;margin:0 auto;}
.bs-title{margin:0;font-family:var(--display);font-weight:800;font-size:2.3rem;line-height:1.05;color:#16181B;}
.bs-sub{margin:10px 0 0;font-size:1rem;color:var(--bs-muted);}

/* ---------- Hero ---------- */
.bs-hero{
  position:relative;overflow:hidden;margin-top:26px;border-radius:22px;min-height:230px;
  background:#1B1F1D;color:#fff;display:flex;align-items:flex-end;
}
.bs-hero-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:62% 40%;}
.bs-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%);}
.bs-hero-copy{position:relative;z-index:2;padding:22px 20px;}
.bs-hero-copy h2{margin:0;font-family:var(--display);font-weight:800;font-size:1.6rem;line-height:1.05;text-transform:uppercase;}
.bs-hero-copy p{margin:8px 0 0;font-size:.95rem;}

/* ---------- Service cards ---------- */
.bs-services{list-style:none;display:flex;flex-wrap:wrap;margin:20px -8px 0;padding:0;}
.bs-service{flex:1 1 220px;min-width:0;margin:0 8px 16px;padding:22px 22px 22px;border-radius:26px;background:#fff;}
.bs-icon{display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:18px;border-radius:50%;background:var(--bs-green);}
.bs-service strong{display:block;font-family:var(--display);font-weight:700;font-size:1.25rem;line-height:1.2;color:#16181B;}
.bs-service-text{display:block;margin-top:6px;font-size:.9rem;color:var(--bs-muted);}

/* ---------- Cards ---------- */
.bs-grid{margin-top:4px;}
.bs-card{background:#fff;border-radius:26px;padding:22px 18px;}
.bs-card-title{margin:0;font-family:var(--display);font-weight:700;font-size:1.5rem;line-height:1.2;color:#16181B;}
.bs-lead{margin:6px 0 0;font-size:.9rem;color:var(--bs-muted);}
.bs-right{margin-top:16px;}

/* ---------- Before / after ---------- */
.bs-compare{position:relative;overflow:hidden;height:260px;margin-top:18px;border-radius:22px;background:#DEE2E9;--pos:50%;cursor:ew-resize;touch-action:pan-y;-webkit-user-select:none;user-select:none;}
.bs-pane{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;}
.bs-pane img{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none;}
.bs-before{background:#DEE2E9;}
.bs-after{background:#C9D3DA;-webkit-clip-path:inset(0 0 0 var(--pos));clip-path:inset(0 0 0 var(--pos));}
.bs-ph{font-size:1rem;color:#8A9098;}
.bs-before .bs-ph{margin-right:50%;}
.bs-after .bs-ph{margin-left:50%;}
.bs-tag{position:absolute;top:18px;z-index:2;padding:9px 20px;border-radius:999px;font-size:.88rem;font-weight:700;color:#16181B;pointer-events:none;transition:opacity .15s;}
.bs-tag.is-hidden{opacity:0;}
.bs-tag-before{left:20px;background:#fff;}
.bs-tag-after{left:calc(var(--pos) + 20px);background:var(--yellow);}
.bs-handle{position:absolute;top:0;bottom:0;left:var(--pos);z-index:3;width:4px;margin-left:-2px;background:#fff;pointer-events:none;}
.bs-handle .bs-arrows{position:absolute;top:50%;left:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.22);}
.bs-arrows i{position:absolute;top:50%;width:0;height:0;margin-top:-6px;border-top:6px solid transparent;border-bottom:6px solid transparent;}
.bs-arrows .bs-l{left:11px;border-right:8px solid #16181B;}
.bs-arrows .bs-r{right:11px;border-left:8px solid #16181B;}
/* keyboard / screen-reader control only: invisible and not clickable. ".bs-compare .bs-range" is deliberately specific enough to beat
   the site-wide  input[type=range]{width:100%;height:4px;...}  rule in style.css (which used to shrink the old overlay to a 4px strip). */
.bs-compare .bs-range{position:absolute;top:0;left:0;z-index:0;width:1px;height:1px;margin:0;padding:0;border:0;background:none;opacity:0;pointer-events:none;}
.bs-compare:focus-within .bs-arrows{outline:3px solid #16181B;outline-offset:3px;}
.bs-arrows{transition:transform .12s;}
.bs-compare.is-dragging .bs-arrows{transform:scale(1.1);}

/* ---------- Perks ---------- */
.bs-perks{list-style:none;display:flex;flex-wrap:wrap;margin:16px -6px 0;padding:0;}
.bs-perks li{flex:1 1 220px;min-width:0;display:flex;align-items:center;margin:0 6px 12px;padding:18px 18px;border-radius:20px;background:#E8F5EE;}
.bs-perk-tick{flex:0 0 30px;width:30px;height:30px;margin-right:12px;border-radius:50%;background:var(--bs-green);display:flex;align-items:center;justify-content:center;}
.bs-perk-text strong{display:block;font-family:var(--display);font-weight:700;font-size:1rem;color:#16181B;}
.bs-perk-text span{display:block;margin-top:2px;font-size:.84rem;color:#6D7A72;}

/* ---------- Form ---------- */
.bs-row{display:flex;flex-wrap:wrap;margin:0 -7px;}
.bs-row-first{margin-top:18px;}
.bs-row .bs-field{flex:1 1 180px;min-width:0;margin:0 7px 16px;}
.bs-field{margin-bottom:16px;}
.bs-field label{display:block;margin:0 0 8px 2px;font-size:.86rem;font-weight:700;color:#16181B;}
.bs-opt{font-weight:400;color:var(--bs-muted);}
.bs-field input[type=text],.bs-field input[type=tel],.bs-field select,.bs-field textarea{
  display:block;width:100%;border:0;border-radius:14px;background:var(--bs-grey);
  font-family:inherit;font-size:.95rem;color:#16181B;-webkit-appearance:none;appearance:none;
}
.bs-field input[type=text],.bs-field input[type=tel],.bs-field select{height:56px;padding:0 18px;}
.bs-field textarea{padding:16px 18px;min-height:110px;resize:vertical;line-height:1.45;}
.bs-field input::placeholder,.bs-field textarea::placeholder{color:#8F8F88;}
.bs-field input:focus,.bs-field select:focus,.bs-field textarea:focus{outline:2.5px solid #16181B;outline-offset:2px;}
.bs-field .is-invalid{outline:2px solid #B3261E;}
.bs-select{position:relative;}
.bs-select select{padding-right:46px;cursor:pointer;}
.bs-select::after{content:'';position:absolute;right:20px;top:50%;width:9px;height:9px;margin-top:-7px;pointer-events:none;
  border-right:2px solid #7A7A74;border-bottom:2px solid #7A7A74;transform:rotate(45deg);}
.bs-select select:invalid{color:#8F8F88;}
.bs-select select option{color:#16181B;}
.bs-error{margin:6px 0 0 4px;font-size:.78rem;line-height:1.3;color:#B3261E;}
.bs-error a{text-decoration:underline;}
.bs-error-form{margin:10px 0 0;padding:10px 12px;background:#FBEAE8;border-radius:10px;}
.bs-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}
.bs-check{position:relative;display:flex;align-items:flex-start;margin:2px 0 6px;cursor:pointer;font-size:.88rem;line-height:1.4;color:#6B6B64;}
.bs-check input{position:absolute;top:0;left:0;width:26px;height:26px;margin:0;opacity:0;cursor:pointer;}
.bs-check-box{position:relative;flex:0 0 26px;width:26px;height:26px;margin-right:12px;border-radius:7px;border:2px solid #B9B9B2;background:#fff;box-sizing:border-box;}
.bs-check input:checked + .bs-check-box{background:var(--bs-green);border-color:var(--bs-green);}
.bs-check input:checked + .bs-check-box::after{content:'';position:absolute;left:7px;top:2px;width:7px;height:12px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg);}
.bs-check input:focus-visible + .bs-check-box{outline:2.5px solid #16181B;outline-offset:3px;}
.bs-check-text{padding-top:2px;}
.bs-submit{display:block;width:100%;height:60px;line-height:60px;margin-top:16px;border-radius:16px;background:var(--yellow);color:#16181B;font-weight:700;font-size:1.05rem;text-align:center;cursor:pointer;}
.bs-submit:hover{filter:brightness(.97);}
.bs-submit[disabled]{opacity:.6;cursor:wait;}
.bs-submit:focus-visible{outline:2.5px solid #16181B;outline-offset:3px;}
.bs-success:focus{outline:none;}
.bs-success-lead{margin:10px 0 12px;font-size:1rem;line-height:1.5;color:#3A3A36;}
.bs-ref{margin:0 0 6px;font-size:.95rem;}
.bs-ref strong{display:inline-block;margin-left:6px;padding:4px 10px;border-radius:8px;background:var(--yellow);font-size:1rem;letter-spacing:.04em;}
.bs-submit-again{max-width:340px;margin-top:20px;}

/* ============================================================
   TABLET (>=768px)
   ============================================================ */
@media (min-width:768px){
  .bs-main{padding-left:32px;padding-right:32px;}
  .bs-title{font-size:3rem;}
  .bs-sub{font-size:1.1rem;}
  .bs-hero{min-height:230px;border-radius:26px;align-items:center;}
  .bs-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%);}
  .bs-hero::after{background:linear-gradient(90deg,rgba(18,20,19,.94) 0%,rgba(18,20,19,.72) 38%,rgba(18,20,19,0) 78%);}
  .bs-hero-copy{padding:34px 44px;}
  .bs-hero-copy h2{font-size:2.4rem;}
  .bs-hero-copy p{font-size:1.1rem;}
  .bs-card{padding:30px 32px;border-radius:30px;}
  .bs-compare{height:320px;}
}

/* ============================================================
   DESKTOP (>=1024px): compare + perks beside the quote form
   ============================================================ */
@media (min-width:1024px){
  body.bs-page{--bs-header-h:132px;}
  .bs-main{padding:calc(var(--bs-header-h) + 34px) 40px 80px;}
  .bs-title{font-size:3.5rem;}
  .bs-hero{min-height:297px;border-radius:28px;margin-top:40px;}
  .bs-hero-copy{padding:40px 48px;}
  .bs-hero-copy h2{font-size:3rem;}
  .bs-hero-copy p{font-size:1.25rem;}
  .bs-services{margin-top:30px;}
  .bs-service{flex:1 1 20%;}
  .bs-grid{display:flex;align-items:flex-start;}
  .bs-left{flex:1 1 0;min-width:0;margin-right:26px;}
  .bs-left .bs-card{border-radius:34px;padding:36px 40px 40px;}
  .bs-compare{height:340px;}
  .bs-right{flex:0 0 36.5%;max-width:36.5%;margin-top:0;}
  .bs-formcard{border-radius:34px;padding:36px 36px 34px;}
}
