/* Bott & Co — page layout for the flight delay journey. Depends on tokens.css
   Mobile first. From 1024px the page becomes a centred container (max 1240px) holding the form column
   and a sticky brand card, so it stays balanced on 1440px, 1920px and wider screens. */
.bc-page { background: var(--bc-white); min-height: 100%; }
.bc-shell { min-height: 100vh; display: flex; flex-direction: column; }
.bc-wrap { width: 100%; margin-inline: auto; padding-inline: 16px; }
.bc-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); }

/* Header: logo, Trustpilot rating, data-source pill */
.bc-header { background: var(--bc-white); border-bottom: 1px solid var(--bc-line-soft); }
.bc-header__inner {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo status" "rating rating";
  align-items: center; column-gap: 12px; padding-top: 16px; padding-inline: 0;
}
.bc-header .bc-logo { grid-area: logo; justify-self: start; margin-left: 16px; }
.bc-header .bc-status-slot { grid-area: status; margin-right: 16px; }
.bc-rating--header { grid-area: rating; margin-top: 14px; }
.bc-rating--aside { display: none; }

.bc-content { padding: 16px 0 48px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.bc-content:focus { outline: none; }
.bc-step { display: grid; gap: 16px; }
.bc-step:focus { outline: none; }

/* Hero (landing) */
.bc-hero {
  background: var(--bc-teal); color: var(--bc-white);
  border-radius: var(--bc-radius);
  padding: 28px 16px 32px;
  display: grid; gap: 12px;
}
.bc-hero h1 { margin: 0 0 16px; font-size: var(--bc-fs-2xl); line-height: 1.18; font-weight: var(--bc-fw-bold); text-wrap: balance; }
.bc-hero .bc-control { border-color: var(--bc-white); }
.bc-hero .bc-btn { width: 100%; margin-top: 4px; }
.bc-hero__small { margin: 16px 0 0; font-size: var(--bc-fs-md); }
.bc-hero__fields { display: grid; gap: 12px; }
.bc-hero .bc-error { color: var(--bc-white); font-weight: var(--bc-fw-semibold); }
.bc-hero .bc-control--error { border-color: var(--bc-coral); box-shadow: 0 0 0 2px var(--bc-coral); }
.bc-hero__fields .bc-field + .bc-field { margin-top: 0; }
.bc-explainer { padding: 16px 0 0; display: grid; gap: 12px; max-width: 62ch; }
.bc-explainer h2 { margin: 0; font-size: var(--bc-fs-xl); line-height: 1.3; font-weight: var(--bc-fw-bold); text-wrap: balance; }
.bc-explainer p { margin: 0; color: var(--bc-navy); }
.bc-bands { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.bc-bands li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--bc-line-soft); padding: 10px 0; }
.bc-bands b { font-variant-numeric: tabular-nums; color: var(--bc-teal); }

/* Brand aside: desktop only */
.bc-aside { display: none; }

/* Footer, after the bottonline.co.uk footer */
.bc-footer { background: var(--bc-panel); color: var(--bc-navy); font-size: var(--bc-fs-sm); border-top: 1px solid var(--bc-line-soft); }
.bc-footer__inner { display: grid; gap: 28px; padding-top: 32px; padding-bottom: 40px; }
.bc-footer__logo { display: inline-flex; justify-self: start; line-height: 0; }
.bc-footer__logo .bc-logo__svg { width: 140px; }
.bc-footer__cols { display: grid; grid-template-columns: 1fr; gap: 24px; }
.bc-footer__title { margin: 0 0 8px; font-size: var(--bc-fs-md); font-weight: var(--bc-fw-bold); line-height: 1.3; }
.bc-footer address { font-style: normal; line-height: 1.5; }
.bc-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 1024px) { .bc-footer__list { gap: 6px; } }
.bc-footer a { color: var(--bc-navy); text-decoration: none; }
.bc-footer a:hover { color: var(--bc-teal); text-decoration: underline; }
.bc-footer__tag { display: inline-block; text-decoration: none; font-size: var(--bc-fs-xs); font-weight: var(--bc-fw-semibold); color: var(--bc-muted-ink); border: 1px solid var(--bc-line); border-radius: 3px; padding: 0 3px; margin-left: 6px; vertical-align: 1px; }
.bc-tp { display: inline-grid; gap: 6px; justify-items: start; }
.bc-tp__logo { display: block; width: 110px; height: auto; }
.bc-tp__stars { display: block; width: 140px; height: auto; }
.bc-tp__score b { font-weight: var(--bc-fw-bold); }
.bc-tp__more { color: var(--bc-teal); font-weight: var(--bc-fw-semibold); }
.bc-footer__bottom { display: grid; gap: 24px; border-top: 1px solid var(--bc-line-soft); padding-top: 20px; }
.bc-footer__legal { display: grid; gap: 10px; }
.bc-footer__legal p { margin: 0; max-width: 90ch; color: var(--bc-muted-ink); font-size: var(--bc-fs-xs); line-height: 1.55; }
.bc-footer__legal a { color: var(--bc-teal); text-decoration: underline; text-underline-offset: 2px; }
.bc-footer__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.bc-footer__iso { display: block; width: 120px; height: auto; background: var(--bc-white); border-radius: 4px; }
.bc-footer__sra { width: 180px; }

@media (min-width: 640px) {
  .bc-wrap { padding-inline: 24px; }
  .bc-header__inner { padding-inline: 0; }
  .bc-header .bc-logo { margin-left: 24px; }
  .bc-header .bc-status-slot { margin-right: 24px; }
  .bc-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .bc-wrap { max-width: var(--bc-wrap); padding-inline: 40px; }

  /* Header: one row, logo left; rating and data-source pill right */
  .bc-header__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "logo rating status"; min-height: 84px; padding: 0 40px; column-gap: 24px; }
  .bc-header .bc-logo { margin: 0; }
  .bc-header .bc-logo__svg { width: 190px; }
  .bc-header .bc-status-slot { margin: 0; }
  .bc-rating--header { margin: 0; justify-self: end; background: none; padding: 0; min-height: 0; font-size: var(--bc-fs-sm); }

  /* Body: form column + sticky brand card, centred as one unit */
  .bc-body { grid-template-columns: minmax(0, var(--bc-card-max)) minmax(320px, var(--bc-aside-w)); justify-content: space-between; column-gap: clamp(40px, 5vw, 96px); }
  .bc-content { padding: 40px 0 72px; gap: 20px; }
  .bc-step, .bc-hero, .bc-explainer { max-width: var(--bc-card-max); }
  .bc-card { padding: 28px 32px 32px; gap: 14px; }
  .bc-card .bc-field, .bc-card .bc-choices, .bc-card .bc-combo { max-width: var(--bc-field-max); }
  .bc-actions { display: flex; justify-content: flex-end; align-items: center; gap: 40px; margin-top: 12px; }
  .bc-actions .bc-btn { width: auto; min-width: 170px; font-size: var(--bc-fs-md); }
  .bc-actions .bc-back { order: -1; font-size: var(--bc-fs-md); }
  .bc-hero { padding: 40px; }
  .bc-hero .bc-field, .bc-hero .bc-combo { max-width: none; }
  .bc-hero__fields { grid-template-columns: 1fr 1fr; gap: 12px; }

  .bc-aside { display: block; padding: 40px 0 72px; }
  .bc-aside__card {
    position: sticky; top: 24px;
    min-height: min(720px, calc(100vh - 48px));
    background: var(--bc-panel); border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
  }
  .bc-aside__shape { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; }
  .bc-aside__shape--top { top: 0; height: 132px; }
  .bc-aside__shape--bottom { bottom: 0; height: 150px; }
  .bc-aside__shape--top path { fill: var(--bc-coral); }
  .bc-aside__shape--bottom path { fill: var(--bc-teal); }
  .bc-aside__copy { position: relative; padding: 156px 36px 172px; display: grid; gap: 20px; align-content: start; }
  .bc-aside h2 { margin: 0; font-size: var(--bc-fs-xl); line-height: 1.35; font-weight: var(--bc-fw-bold); color: var(--bc-navy); text-wrap: balance; }
  .bc-aside ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: var(--bc-fs-md); }
  .bc-aside li::marker { color: var(--bc-teal); }
  .bc-rating--aside { display: flex; justify-content: flex-start; background: var(--bc-white); border-radius: var(--bc-radius); padding: 10px 14px; margin-top: 4px; }
  .bc-rating--aside .bc-rating__of { display: none; }
  
  /* Footer: four columns, legal text and badges below */
  .bc-footer__inner { grid-template-columns: 200px 1fr; column-gap: 48px; row-gap: 28px; padding-top: 48px; padding-bottom: 56px; }
  .bc-footer__cols { grid-template-columns: 1.1fr 1fr 1.1fr 1.1fr; gap: 32px; }
  .bc-footer__logo { align-self: start; }
  .bc-footer__bottom { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; column-gap: 56px; align-items: start; padding-top: 28px; }
  .bc-footer__legal p:first-child { color: var(--bc-navy); font-size: var(--bc-fs-sm); }
  .bc-footer__badges { flex-wrap: nowrap; }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .bc-aside__card { position: static; height: auto; }
}
