/*
 * Styles used only by the Car buying service and Fees pages.
 * Fonts, colours, buttons, cards, shadows, header and footer all come from styles.css;
 * this file only adds the few layouts those pages need, built from the same tokens.
 */

/* Shared helpers */
.section--paper { background: var(--color-paper); }
.section--flush-top { padding-top: 0; }
.included-grid { --card-min: 340px; }
.page-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 28px; background: var(--color-paper); border: 1px solid var(--color-border); border-radius: 16px; }
.page-note p { margin: 0; color: var(--color-muted); }
.page-note strong { color: var(--color-navy); }
.page-note .text-link { white-space: nowrap; }
.cta-intro a { color: var(--color-white); font-weight: 600; }

/* Breadcrumb above the hero eyebrow */
.breadcrumb { padding-bottom: 14px; border-bottom: 1px solid #ddd7ca; }
.breadcrumb ol { margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; list-style: none; font-size: 13px; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; color: var(--color-navy); font-weight: 600; }
.breadcrumb li + li::before { content: ''; width: 6px; height: 6px; border-top: 1.5px solid var(--color-subtle); border-right: 1.5px solid var(--color-subtle); transform: rotate(45deg); }
.breadcrumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--color-subtle); font-weight: 500; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-navy-light); opacity: 1; }

/* Fees: hero price card */
.fee-price-card { flex: 0 1 380px; padding: 36px; gap: 10px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.fee-checklist { margin: 14px 0 0; padding: 18px 0 0; display: flex; flex-direction: column; gap: 10px; list-style: none; border-top: 1px solid #23406b; color: var(--color-white); font-size: 15px; }
.fee-checklist li { display: flex; align-items: flex-start; gap: 10px; }
.fee-checklist svg { flex: 0 0 18px; margin-top: 3px; }

/* Fees: worked example */
.fee-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.fee-example { flex: 1 1 460px; min-width: 0; overflow: hidden; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 20px; box-shadow: 0 1px 2px rgba(11,37,69,.05), 0 12px 32px rgba(11,37,69,.08); }
.fee-example__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 22px 28px; }
.fee-example__label { color: var(--color-subtle); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fee-example__amount { color: var(--color-navy); font: 700 32px/1.1 var(--font-heading); }
.fee-example__includes { padding: 20px 28px; background: var(--color-paper); border-block: 1px solid var(--color-border); }
.fee-example__list { margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.fee-example__list li { padding: 6px 14px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-navy); font-size: 14px; font-weight: 600; }
.fee-example__list .is-fee { background: #FFF8E6; border-color: var(--color-gold); }
.fee-example__note { margin: 12px 0 0; color: var(--color-subtle); font-size: 13px; }
.fee-example__total { background: var(--color-navy); }
.fee-example__total .fee-example__label { color: #c9d3e2; }
.fee-example__total .fee-example__amount { color: var(--color-gold); }

/* Fees: on-road costs callout */
.fee-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 48px; padding: 32px 36px; background: #FFF8E6; border: 1.5px solid var(--color-gold); border-radius: 20px; }
.fee-callout__heading { flex: 0 1 280px; display: flex; flex-direction: column; gap: 8px; }
.fee-callout__title { font-size: 32px; }
.fee-callout p { flex: 1 1 420px; }

/* Fees: four-column comparison */
.fee-comparison { flex: none; }
.fee-comparison .comparison-table { min-width: 680px; }
.fee-comparison .comparison-value { background: rgba(242,169,0,.07); }

@media (max-width: 767px) {
  .page-note { padding: 18px 20px; }
  .fee-price-card { padding: 28px 24px; }
  .fee-example__row, .fee-example__includes { padding-inline: 20px; }
  .fee-example__amount { font-size: 28px; }
  .fee-callout { padding: 24px 20px; }
  .fee-callout__title { font-size: 28px; }
}
