/* apply.cocoonvehicles.co.uk – Cocoon teal, Source Sans 3 (SIL Open Font Licence, in /assets/fonts) */
@font-face { font-family: 'Source Sans 3'; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/source-sans-3-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/source-sans-3-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/source-sans-3-latin-700-normal.woff2) format('woff2'); }

:root {
  --teal: #003B4D; --teal-2: #0a5266; --teal-3: #12697f; --mint: #9fd4de; --tint: #eef5f7; --tint-2: #f6fafb;
  --ink: #15202b; --ink-2: #4a5560; --line: #dbe4e7; --white: #fff;
  --radius: 20px; --shadow: 0 1px 2px rgba(0, 40, 55, .06), 0 8px 28px rgba(0, 40, 55, .08);
  --font: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-3); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
:focus-visible { outline: 3px solid #e3a21a; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0; color: var(--teal); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 900px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: #fff; color: var(--teal); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.small { font-size: 15px; color: var(--ink-2); }

/* Header */
.top { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; margin-right: auto; }
.brand svg { width: 132px; height: auto; }
.brand-sub { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mint); padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); line-height: 1.2; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.menu a { color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--mint); }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.call { display: inline-flex; gap: 8px; align-items: center; padding: 8px 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; white-space: nowrap; }
.call:hover { background: rgba(255,255,255,.1); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; border-radius: 10px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; margin: 0 auto; transition: transform .2s; }
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -7px; } .menu-icon::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-light { background: #fff; color: var(--teal); }
.btn-light:hover { background: var(--tint); color: var(--teal); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal); background: #fff; }
.btn-outline:hover { background: var(--tint); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #0e5a70 0%, rgba(14,90,112,0) 60%), var(--teal); color: #fff; padding: 64px 0 72px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin: 0 0 14px; }
.hero h1 { color: #fff; font-size: clamp(36px, 5vw, 58px); font-weight: 700; max-width: 17ch; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 46ch; margin-top: 18px; }
.hero .lead { color: #d6e7eb; }
.hero-note { margin: 22px 0 0; color: #d6e7eb; font-size: 16px; }
.hero-note a { color: #fff; font-weight: 700; }
.hero-pic img { width: 100%; border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); aspect-ratio: 720 / 509; object-fit: cover; }

/* Sections */
.section { padding: 72px 0; }
.section.tint { background: var(--tint-2); }
.section-title { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-kicker { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-3); margin: 0 0 8px; }
.card h3 { font-size: 26px; margin-bottom: 12px; }
.card p { color: var(--ink-2); }
.card-sub { font-weight: 700; color: var(--ink) !important; margin: 8px 0 8px; font-size: 16px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.tick { width: 20px; height: 20px; flex: none; margin-top: 4px; fill: var(--teal-3); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--tint); border-radius: 28px; padding: 40px; }
.band h2 { font-size: 30px; margin-bottom: 8px; }
.band p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.band .btn { flex: none; }
.help { text-align: center; }
.help h2 { font-size: 30px; margin-bottom: 10px; }
.help p { color: var(--ink-2); }

/* Form pages */
.page-head { background: var(--tint-2); border-bottom: 1px solid var(--line); padding: 40px 0 32px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 48px); }
.page-head .lead { margin-top: 12px; max-width: 70ch; }
.page-head .small { margin: 0; }
.crumbs { font-size: 15px; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.form-wrap { padding: 24px 0 64px; }
#cocoon-apply { min-height: 640px; }
#cocoon-apply iframe { border-radius: 16px; }

/* Footer */
.foot { background: #062a35; color: #c9dbe0; font-size: 16px; }
.foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.foot h2 { color: #fff; font-size: 17px; letter-spacing: .02em; margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot ul a { color: #c9dbe0; text-decoration: none; }
.foot ul a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; padding-bottom: 40px; font-size: 14px; color: #a9c2c9; }
.legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 0; }

/* Small screens */
@media (max-width: 900px) {
  body { font-size: 17px; }
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--teal); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-top: 1px solid rgba(255,255,255,.15); }
  .menu.open { display: flex; }
  .menu ul { flex-direction: column; gap: 0; }
  .menu ul a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .call { margin-top: 16px; justify-content: center; }
  .brand svg { width: 112px; }
  .hero { padding: 40px 0 48px; }
  .hero-in { grid-template-columns: 1fr; gap: 32px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .brand-sub { display: none; }
  .card { padding: 24px; }
  .cta .btn { width: 100%; }
  .menu { padding: 8px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Account site additions ---------- */
.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 20px; height: 20px; }
.btn .ico { margin-right: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.foot .link-btn { color: #fff; }
.small.mt, .mt { margin-top: 12px; }
.hero h1 { max-width: none; }
.hero { padding: 56px 0 60px; }
.quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.crumbs-wrap { padding-top: 18px; }
.crumbs-wrap + .page-head { padding-top: 16px; }
.page-head .eyebrow { color: var(--teal-3); }

/* Menu: the full list of pages */
.all-pages { position: relative; }
.all-pages summary { cursor: pointer; list-style: none; color: #fff; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.all-pages summary::-webkit-details-marker { display: none; }
.all-pages summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.all-pages[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.all-pages ul { position: absolute; right: 0; top: calc(100% + 14px); background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 30, 40, .25); list-style: none; margin: 0; padding: 8px; width: 320px; display: grid; gap: 2px; z-index: 30; }
.all-pages ul a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.all-pages ul a:hover { background: var(--tint); color: var(--teal); }
.all-pages ul .ico { color: var(--teal-3); }

/* Home tiles */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }
.tile { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 40, 55, .05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c3d4d9; color: var(--ink); }
.tile-body { display: grid; gap: 4px; }
.tile .ico { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--tint); color: var(--teal); }
.tile-t { font-weight: 700; font-size: 18px; color: var(--teal); line-height: 1.3; }
.tile-d { font-size: 15px; color: var(--ink-2); line-height: 1.4; }
.links-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.links-row a { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.links-row a:hover { background: var(--tint); }

/* Content pages */
.prose { max-width: 860px; }
.prose h2 { font-size: 28px; margin: 36px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 24px 0 10px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.section.prose-section { padding: 48px 0; }
.page-head + .section { padding-top: 40px; }
.callout { background: var(--tint); border-left: 4px solid var(--teal-3); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.callout p { margin: 0; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 20px 0; }
.cols .card { padding: 24px; box-shadow: none; }
.cols .card h3 { margin-top: 0; font-size: 21px; }
.cols .card .btn { margin-top: 8px; align-self: flex-start; }
ul.ticks, ul.crosses { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
ul.ticks li, ul.crosses li { position: relative; padding-left: 30px; margin: 0; }
ul.ticks li::before, ul.crosses li::before { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
ul.ticks li::before { content: '✓'; background: #e3f1ea; color: #1e7b4f; }
ul.crosses li::before { content: '✕'; background: #fbe9e7; color: #b42318; }
.cols-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.doc-list { list-style: none !important; padding: 0 !important; margin: 0 0 20px; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 700; color: var(--teal); background: #fff; }
.doc-list a:hover { background: var(--tint); }
.figure { margin: 24px 0; }
.figure img { border-radius: 16px; border: 1px solid var(--line); }

/* Breakdown numbers */
.numbers { list-style: none !important; padding: 0 !important; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.numbers li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; margin: 0; background: #fff; }
.n-make { font-weight: 600; }
.numbers a { font-weight: 700; white-space: nowrap; text-decoration: none; color: var(--teal); padding: 6px 12px; border-radius: 999px; background: var(--tint); }
.numbers a:hover { background: var(--teal); color: #fff; }

/* Traffic lights */
.lights { list-style: none !important; padding: 0 !important; margin: 24px 0; display: grid; gap: 14px; }
.lights li { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: 16px; border: 1px solid var(--line); margin: 0; }
.lights h2 { margin: 0 0 6px !important; font-size: 22px !important; }
.lights p { margin: 0; }
.lamp { width: 40px; height: 40px; border-radius: 50%; flex: none; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.l-red { background: #fdf1f0; } .l-red .lamp { background: #d92d20; } .l-red h2 { color: #a3140b; }
.l-amber { background: #fff7e8; } .l-amber .lamp { background: #f5a20a; } .l-amber h2 { color: #8a5300; }
.l-green { background: #edf7f1; } .l-green .lamp { background: #1e9e57; } .l-green h2 { color: #136b3b; }

/* Return checklist */
.progress-wrap { margin: 8px 0 16px; }
.progress { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--teal-3); border-radius: 999px; transition: width .2s; }
.checklist { list-style: none !important; padding: 0 !important; margin: 0 0 12px; display: grid; gap: 10px; }
.checklist li { margin: 0; }
.step { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; }
.step input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--teal); }
.step .step-n { width: 30px; height: 30px; font-size: 15px; margin: 0; }
.step:has(input:checked) { background: #f1f8f4; border-color: #cfe6d8; }
.step:has(input:checked) .step-t { color: var(--ink-2); }

/* HQ forms in frames */
.form-wrap { padding: 8px 0 16px; }
.form-wrap + .section { padding-top: 16px; }
#cocoon-apply, #cocoon-return, #cocoon-mileage, #cocoon-ve103b { min-height: 320px; }
.section:has(+ .form-wrap) { padding-bottom: 16px; }

/* Cookie banner */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(0, 30, 40, .12); padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); }
.cookie-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
.cookie p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 70ch; }
.cookie-btns { display: flex; gap: 10px; flex: none; }
.btn.small { min-height: 42px; padding: 0 18px; font-size: 15px; }

@media (max-width: 900px) {
  .all-pages ul { position: static; width: auto; box-shadow: none; background: transparent; padding: 4px 0 0; }
  .all-pages ul a { color: #fff; padding: 10px 0; }
  .all-pages ul a:hover { background: transparent; color: var(--mint); }
  .all-pages ul .ico { color: var(--mint); }
  .all-pages summary { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); width: 100%; justify-content: space-between; }
  .cols, .cols-list { grid-template-columns: 1fr; }
  .cookie-in { flex-direction: column; align-items: stretch; }
  .cookie-btns .btn { flex: 1; }
}
@media print {
  .top, .foot, .cookie, .cta, .crumbs-wrap, .progress-wrap, .skip { display: none !important; }
  .step { break-inside: avoid; border-color: #999; }
  .page-head { background: none; border: 0; padding: 0 0 12px; }
}
