/* =========================================================
   COVERINSTANTLY — GLOBAL DESIGN SYSTEM
   Sharp UK motor insurance styling shared across all pages.
========================================================= */

:root{
  --navy-950:#061426;
  --navy-900:#091b31;
  --navy-850:#0d2542;
  --navy-800:#123150;
  --navy-700:#1c456d;
  --red-600:#d92f3d;
  --red-500:#ed3d4d;
  --red-100:#ffe8eb;
  --blue-100:#eaf2fa;
  --ink:#0b1728;
  --ink-2:#2c3b4f;
  --muted:#647286;
  --line:#dbe2ea;
  --line-dark:#bac5d1;
  --surface:#ffffff;
  --surface-2:#f3f6f9;
  --surface-3:#e9eef4;
  --success:#0d8054;
  --warning:#bd6b00;
  --plate:#f8cf26;
  --shadow-sm:0 8px 22px rgba(6,20,38,.08);
  --shadow-md:0 18px 52px rgba(6,20,38,.14);
  --shadow-lg:0 30px 90px rgba(6,20,38,.22);
  --radius-sm:6px;
  --radius:10px;
  --radius-lg:16px;
  --page-width:1200px;
  --shell-width:1200px;
  --shell-navy:#061426;
  --shell-red:#ed3d4d;
  --shell-red-dark:#d92f3d;
  --shell-line:#dbe2ea;
  --shell-line-dark:#bac5d1;
  --shell-radius:12px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-width:320px;
  background:var(--surface);
  color:var(--ink);
  font-family:Arial, Helvetica, sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
body.menu-open{overflow:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.7}
::selection{background:var(--red-100);color:var(--navy-950)}

.container{
  width:min(var(--shell-width),calc(100% - 56px));
  margin-inline:auto;
}

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

/* Brand */
.brand-wordmark{
  display:inline-flex;
  align-items:baseline;
  white-space:nowrap;
  color:var(--shell-navy);
  font-weight:900;
  font-size:27px;
  line-height:1;
  letter-spacing:-1.55px;
  text-transform:lowercase;
}
.brand-wordmark .brand-me{color:var(--shell-red)}
.brand-wordmark .brand-dot{
  width:6px;
  height:6px;
  margin-left:3px;
  border-radius:50%;
  background:var(--shell-red);
  align-self:flex-start;
  margin-top:1px;
}
.brand-wordmark.is-light{color:#fff}

/* Utility bar */
.topline{
  background:var(--shell-navy);
  color:#dce8f5;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
}
.topline-inner{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.topline-items{display:flex;align-items:center;gap:22px}
.topline i{color:#ff8a94;margin-right:7px}
.topline a:hover{color:#fff}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--shell-line);
  backdrop-filter:blur(16px);
}
.site-header.is-scrolled{box-shadow:0 10px 30px rgba(6,20,38,.08)}
.nav{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
}
.brand{display:flex;align-items:center;min-width:max-content}
.navlinks{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  margin-left:auto;
  font-size:14px;
  font-weight:800;
  color:#39495d;
}
.navlinks a{
  position:relative;
  padding:29px 0 27px;
  transition:color .18s ease;
}
.navlinks a::after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:0;
  height:3px;
  background:var(--shell-red);
  transition:right .2s ease;
}
.navlinks a:hover,.navlinks a.active{color:var(--shell-navy)}
.navlinks a:hover::after,.navlinks a.active::after{right:0}
.nav-actions{display:flex;align-items:center;gap:10px}
.portal-link,.header-quote-link{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 15px;
  border:1px solid var(--shell-line-dark);
  border-radius:var(--shell-radius);
  font-size:13px;
  font-weight:900;
  transition:.18s ease;
}
.portal-link:hover{border-color:#1c456d;background:#f3f6f9}
.header-quote-link{
  border-color:var(--shell-red);
  background:var(--shell-red);
  color:#fff;
}
.header-quote-link:hover{background:var(--shell-red-dark);border-color:var(--shell-red-dark)}
.hamburger{
  width:44px;
  height:44px;
  display:none;
  align-items:center;
  justify-content:center;
  border:1px solid var(--shell-line-dark);
  border-radius:var(--shell-radius);
  background:#fff;
  color:var(--shell-navy);
  font-size:18px;
}
.mobile-menu{
  display:none;
  position:fixed;
  top:var(--mobile-menu-top,112px);
  left:0;
  right:0;
  bottom:0;
  z-index:999;
  padding:18px 24px 30px;
  background:#fff;
  overflow:auto;
}
.mobile-menu.active{display:block}
.mobile-menu a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:55px;
  padding:0 3px;
  border-bottom:1px solid var(--shell-line);
  font-size:16px;
  font-weight:850;
}
.mobile-menu a::after{content:"›";color:var(--shell-red);font-size:24px}
.mobile-menu .mobile-cta{
  justify-content:center;
  margin-top:20px;
  border:0;
  border-radius:var(--shell-radius);
  background:var(--shell-red);
  color:#fff;
}
.mobile-menu .mobile-cta::after{display:none}

/* Shared type */
.eyebrow,.section-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 0 14px;
  color:var(--red-600);
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  line-height:1;
  text-transform:uppercase;
}
.eyebrow::before,.section-kicker::before{
  content:"";
  width:24px;
  height:2px;
  background:currentColor;
}
.section-title{
  margin:0;
  color:var(--navy-950);
  font-size:clamp(32px,4.4vw,56px);
  line-height:1.02;
  letter-spacing:-.045em;
}
.section-lead{
  max-width:690px;
  margin:18px 0 0;
  color:var(--muted);
  font-size:18px;
}

/* Buttons */
.btn-primary,.primary-action,.cta-primary,.close-btn{
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  border:1px solid var(--red-500);
  border-radius:var(--shell-radius);
  background:var(--shell-red);
  color:#fff;
  padding:0 22px;
  font-weight:900;
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.btn-primary:hover,.primary-action:hover,.cta-primary:hover,.close-btn:hover{
  transform:translateY(-1px);
  background:var(--red-600);
  box-shadow:0 12px 28px rgba(217,47,61,.24);
}
.btn-secondary,.secondary-action{
  min-height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid var(--shell-line-dark);
  border-radius:var(--shell-radius);
  background:#fff;
  color:var(--navy-950);
  padding:0 22px;
  font-weight:900;
  transition:.18s ease;
}
.btn-secondary:hover,.secondary-action:hover{border-color:var(--navy-700);background:var(--surface-2)}

/* Form controls */
label{font-weight:800;color:var(--navy-900)}
input,select,textarea{
  width:100%;
  border:1px solid var(--shell-line-dark);
  border-radius:var(--shell-radius);
  background:#fff;
  color:var(--ink);
  padding:13px 14px;
  outline:none;
  transition:border .16s ease,box-shadow .16s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:var(--navy-700);
  box-shadow:0 0 0 4px rgba(28,69,109,.11);
}
input::placeholder,textarea::placeholder{color:#8b97a6}

/* Shared page hero */
.page-hero{
  position:relative;
  overflow:hidden;
  background:var(--shell-navy);
  color:#fff;
  border-bottom:4px solid var(--red-500);
}
.page-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent 0 49.8%,rgba(255,255,255,.035) 50%,transparent 50.2%) 0 0/120px 100%,
    radial-gradient(circle at 84% 18%,rgba(237,61,77,.18),transparent 28%);
}
.breadcrumb{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:18px;
  color:#aebdd0;
  font-size:13px;
  font-weight:800;
}
.breadcrumb a{color:#fff}
.breadcrumb i{font-size:9px;color:#ff8a94}

/* Shared cards / lists */
.content-card,.sidebar-card,.hero-card,.support-card,.cover-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.content-card:hover,.sidebar-card:hover,.hero-card:hover,.support-card:hover,.cover-card:hover{
  border-color:#c6d0dc;
}

/* FAQ */
.faq-wrap,.faq-list{display:grid;gap:10px}
details{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:0 22px;
}
details[open]{border-color:#bdc9d5;box-shadow:var(--shadow-sm)}
summary{
  min-height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  list-style:none;
  cursor:pointer;
  color:var(--navy-950);
  font-size:16px;
  font-weight:900;
}
summary::-webkit-details-marker{display:none}
summary::after{
  content:"+";
  flex:0 0 28px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:1px solid var(--line-dark);
  border-radius:50%;
  color:var(--red-500);
  font-size:19px;
  line-height:1;
}
details[open] summary::after{content:"−";background:var(--navy-950);border-color:var(--navy-950);color:#fff}
details p{margin:0 0 21px;color:var(--muted)}

/* Footer */
.clean-footer,.footer{
  position:relative;
  background:var(--shell-navy);
  color:#c3cfdd;
  border-top:4px solid var(--shell-red);
  padding:66px 0 0;
}
.clean-footer::before,.footer::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,transparent 49.8%,rgba(255,255,255,.02) 50%,transparent 50.2%) 0 0/160px 100%;
}
.clean-footer-grid,.footer-grid{
  position:relative;
  display:grid;
  grid-template-columns:1.5fr repeat(3,1fr);
  gap:44px;
  padding-bottom:46px;
}
.clean-footer-grid>div:first-child p,.footer-grid>div:first-child p{max-width:390px;margin:20px 0;color:#aebdd0}
.clean-footer h4,.footer h4{margin:0 0 18px;color:#fff;font-size:14px;text-transform:uppercase;letter-spacing:.08em}
.clean-footer a,.footer a{display:block;margin:9px 0;color:#c3cfdd;font-size:14px}
.clean-footer a:hover,.footer a:hover{color:#fff}
.clean-footer-badges,.secure-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:21px}
.clean-footer-badges span,.secure-item{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 9px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:4px;
  color:#dce8f5;
  font-size:11px;
  font-weight:800;
}
.clean-footer-bottom,.footer-bottom{
  position:relative;
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid rgba(255,255,255,.1);
  color:#8fa0b4;
  font-size:12px;
}
.footer-regulatory{
  position:relative;
  padding:20px 0;
  border-top:1px solid rgba(255,255,255,.1);
  color:#8495aa;
  font-size:11px;
  line-height:1.6;
}

/* Popup */
.error-popup{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(6,20,38,.76);
  backdrop-filter:blur(6px);
}
.error-popup.show{display:flex}
.popup-content{
  width:min(430px,100%);
  background:#fff;
  border-top:5px solid var(--red-500);
  border-radius:var(--radius);
  padding:30px;
  text-align:center;
  box-shadow:var(--shadow-lg);
}
.popup-content>i{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  margin:0 auto 16px;
  border-radius:50%;
  background:var(--red-100);
  color:var(--red-600);
  font-size:22px;
}
.popup-content h3{margin:0;color:var(--navy-950);font-size:24px}
.error-message{display:block;margin:10px 0 20px;color:var(--muted)}
.close-btn{min-height:44px;padding:0 22px}

/* Reveal animation */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .55s ease,transform .55s ease;
}
.reveal.active,.reveal.is-visible{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .reveal{opacity:1;transform:none}
}


/* =========================================================
   COVERINSTANTLY — RESPONSIVE FOUNDATION
   Shared mobile rules only. Page-specific layouts remain in
   their own CSS files so they are not forced into one pattern.
========================================================= */

@media(max-width:980px){
  .container{width:min(var(--shell-width),calc(100% - 36px))}
}

@media(max-width:820px){
  html,body{max-width:100%;overflow-x:hidden}
  body{min-width:320px}
  .container{width:min(var(--shell-width),calc(100% - 36px))}

  /* Shared headings should stack; content grids are controlled page by page. */
  .section-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    align-items:start!important;
    gap:12px!important;
  }
  .section-head>*{min-width:0}
  .section-head .section-lead{max-width:none!important;margin:0!important}

  .content-card,.card,.panel,.surface-card{min-width:0;max-width:100%}
  img,svg,video,canvas{max-width:100%;height:auto}
  input,select,textarea,button{max-width:100%}
  table{max-width:100%}
}

@media(max-width:720px){
  .container{width:min(var(--shell-width),calc(100% - 24px))}
  .topline-inner{min-height:32px}
  .topline-items{min-width:0;gap:10px}
  .topline-items span:nth-child(n/**/+2){display:none}
  .topline-inner>a{display:none}
  .nav{min-height:68px;gap:12px}
  .brand{min-width:0}
  .brand-wordmark{font-size:24px;letter-spacing:-1.25px}
  .header-quote-link{display:none}
  .section-lead{font-size:16px;line-height:1.65}

  .primary-action,.secondary-action,.submit-btn,.large-action{
    width:100%;
    min-width:0;
    white-space:normal;
    text-align:center;
  }

  .clean-footer-bottom,.footer-bottom{
    align-items:flex-start;
    flex-direction:column;
    justify-content:center;
    gap:7px;
    padding:18px 0;
  }
}

@media(max-width:480px){
  .container{width:min(var(--shell-width),calc(100% - 20px))}
  .popup-content{padding:24px 18px}
}

/* Shared header and footer responsive rules — the only source of shell styling. */
@media(max-width:1080px){
  .navlinks{display:none}
  .hamburger{display:flex}
  .portal-link{display:none}
  .clean-footer-grid,.footer-grid{grid-template-columns:1.4fr repeat(2,minmax(0,1fr))}
  .clean-footer-grid>div:last-child,.footer-grid>div:last-child{grid-column:2/4}
}
@media(max-width:820px){
  .clean-footer-grid,.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 22px}
  .clean-footer-grid>div:first-child,.footer-grid>div:first-child{grid-column:1/-1}
  .clean-footer-grid>div:last-child,.footer-grid>div:last-child{grid-column:1/-1}
  .footer-legal-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}
  .footer-legal-column h4{grid-column:1/-1}
}
@media(max-width:720px){
  .mobile-menu{padding:0 20px 28px}
  .mobile-menu a:first-child{border-top:0}
  .clean-footer,.footer{padding-top:48px}
  .clean-footer-grid,.footer-grid{gap:28px 16px;padding-bottom:34px}
  .clean-footer h4,.footer h4{font-size:12px}
  .clean-footer a,.footer a{font-size:13px;line-height:1.45}
}
@media(max-width:360px){
  .clean-footer-grid,.footer-grid{gap:26px 12px}
  .clean-footer a,.footer a{font-size:12px}
}

/* =========================================================
   COVERINSTANTLY — GLOBAL TYPOGRAPHY LOCK
   Matches the index-page font across every linked page.
========================================================= */
html,
body,
button,
input,
select,
textarea,
option {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Keep ordinary page text consistent even where a page stylesheet
   declares its own font family. */
body :where(
  h1, h2, h3, h4, h5, h6,
  p, a, span, strong, b, small, label,
  button, input, select, textarea, option,
  li, dt, dd, th, td, summary, legend
) {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Preserve Font Awesome rather than turning icons into squares. */
.fa,
.fa-brands,
.fa-classic,
.fa-regular,
.fa-sharp,
.fa-solid,
.fab,
.far,
.fas,
.fa::before,
.fa-brands::before,
.fa-classic::before,
.fa-regular::before,
.fa-sharp::before,
.fa-solid::before,
.fab::before,
.far::before,
.fas::before {
  font-family: "Font Awesome 6 Free" !important;
}

.fa-brands,
.fab,
.fa-brands::before,
.fab::before {
  font-family: "Font Awesome 6 Brands" !important;
}
