/* ==========================================================================
   Delta Dental Care — Dental Check-up landing page (/check-up)
   Loaded AFTER style.css and only on check-up.html / check-up-thank-you.html.
   Everything shared (header, buttons, tick lists, form fields, reviews,
   steps, team cards, FAQ, location, footer, sticky bar) comes from style.css,
   so this file only holds the check-up-specific layout. Nothing here affects
   the Invisalign page.
   ========================================================================== */

/* Prices/labels are filled in by JS from the config at the top of
   check-up.html; empty until then (the fill runs before first paint). */
[data-offer]:empty { display: inline-block; min-width: 1ch; }

/* Section rhythm for this page (mobile-first, tighter than the default) */
.cu-why, .cu-happens, .cu-how, .cu-team, .cu-visit, .cu-faq { padding: 40px 0; }
.cu-why, .cu-how, .cu-visit { background: var(--white); }
.cu-happens, .cu-team, .cu-faq { background: var(--gold-tint); }

/* ==========================================================================
   Hero
   ========================================================================== */
.cu-hero {
  padding: 14px 0 28px;
  background: linear-gradient(180deg, var(--gold-tint) 0%, var(--white) 95%);
}
.cu-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.cu-hero-grid > * { min-width: 0; }

/* Photo — a short, wide band on phones (mouth + gloves), a square on desktop */
.cu-media {
  order: -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #12303d;
  aspect-ratio: 800 / 270;
}
.cu-media picture, .cu-media img { display: block; width: 100%; height: 100%; }
.cu-media img { object-fit: cover; }

.cu-copy .eyebrow { margin-bottom: 6px; }

.cu-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.06;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 7vw, 2.6rem);
  letter-spacing: 0.005em;
  color: var(--ink);
  margin-bottom: 12px;
}
.nw { white-space: nowrap; }
.cu-h1-price { color: var(--gold-deep); font-size: 1.22em; }

/* price with the code: £57 with your code, usual fee £67 */
.cu-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  margin: 0 0 12px;
}
.cu-code-with { display: inline-flex; align-items: baseline; gap: 8px; }
.cu-code-with strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1;
  color: var(--gold-deep);
}
.cu-code-with span { font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); }
.cu-code-usual { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.cu-code-usual s { text-decoration-color: var(--danger); text-decoration-thickness: 2px; }

.cu-sub {
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}
.cu-deadline { margin: 0 0 14px; }

/* the end-date tag in the hero */
.cu-price-end {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 800; color: var(--gold-darker);
  background: var(--gold-tint-2); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}
.cu-price-end svg { flex-shrink: 0; }


/* Form card — directly under the offer */
.cu-form-card { margin-top: 4px; }
.cu-form-card .form-sub { margin-bottom: 14px; }
.cu-form-card .form-row { margin-bottom: 12px; }
.cu-form-card .consent-block { margin: 12px 0 12px; }
.cu-form-card .consent-row { margin: 0 0 8px; }
.cu-form-card .consent-block .form-error { margin: -2px 0 8px 32px; }
.cu-form-card .consent-optional { margin-bottom: 0; }
.cu-form-card .consent-optional label { font-size: 0.8rem; }
.optional-tag { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
/* avoid a one-word last line in the tick-box text */
.cu-form-card .consent-row label { text-wrap: pretty; }
/* keep the long button label on one line inside the narrow phone form card */
.cu-form-card .btn-block { font-size: 1rem; padding-left: 14px; padding-right: 14px; }

@media (min-width: 900px) {
  .cu-hero { padding: 40px 0 56px; }
  .cu-hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    grid-template-areas:
      "copy media"
      "form form";
    column-gap: 56px;
    row-gap: 36px;
    align-items: center;
  }
  .cu-copy { grid-area: copy; }
  .cu-media {
    grid-area: media;
    order: 0;
    aspect-ratio: 1 / 1;
    max-height: 520px;
    justify-self: end;
    width: 100%;
  }
  .cu-form-card { grid-area: form; max-width: 1000px; width: 100%; justify-self: center; margin-top: 0; padding: 28px 32px 24px; }

  .cu-hero h1 { font-size: 2.35rem; }
  .cu-sub { font-size: 1.05rem; }
  .cu-cta { max-width: 460px; }
  .cu-cta .cta-support { margin-left: 0; margin-right: 0; }

  /* Form becomes a horizontal bar: three fields in a row, then consent + button */
  .cu-form-card h2 { text-align: center; }
  .cu-form-card .form-sub { text-align: center; }
  .cu-form-card form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 16px;
    align-items: start;
  }
  .cu-form-card input[type="hidden"] { display: none; }
  .cu-form-card .consent-block { grid-column: 1 / 3; align-self: center; }
  .cu-form-card .consent-block { margin: 6px 0 0; }
  .cu-form-card .form-submit { grid-column: 3; align-self: center; margin-top: 6px; }
  .cu-form-card .form-submit-note,
  .cu-form-card .form-status { grid-column: 1 / -1; }
}

/* ==========================================================================
   Offer summary — how the £10-off code works (£67 / £10 off / £57 with the code)
   ========================================================================== */
.cu-offer { background: var(--gold-tint); padding: 36px 0 40px; }
.cu-offer .section-header { margin-bottom: 18px; }
.cu-offer-cards { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 14px; }
.cu-offer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.cu-offer-big {
  flex: 0 0 80px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold-deep);
}
.cu-offer-what { font-weight: 800; font-size: 0.9rem; letter-spacing: 0.03em; line-height: 1.3; color: var(--ink); }
.cu-offer-what small { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
/* the usual £67 fee is struck through so it can't be read as the price you pay */
.cu-offer-big-was { text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 3px; color: var(--ink-soft); }
.cu-note-clarify { text-align: center; border-left-width: 1px; }

@media (min-width: 760px) {
  .cu-offer { padding: 56px 0 60px; }
  .cu-offer-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
  .cu-offer-card { flex-direction: column; text-align: center; padding: 24px 16px; gap: 10px; }
  .cu-offer-big { flex: none; font-size: 2.9rem; }
  .cu-offer-what { font-size: 0.95rem; }
}

/* ==========================================================================
   Benefits ("Why have a dental check-up?")
   ========================================================================== */
.cu-benefits { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cu-benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.cu-benefit-icon {
  flex: 0 0 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--gold-tint);
  color: var(--gold-deep);
  display: flex; align-items: center; justify-content: center;
}
.cu-benefit h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; margin-bottom: 2px; }
.cu-benefit p { color: var(--ink-soft); font-size: 0.95rem; }

@media (min-width: 900px) {
  .cu-benefits { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .cu-benefit { flex-direction: column; gap: 12px; padding: 22px 20px; }
}

/* ==========================================================================
   What happens at your check-up
   ========================================================================== */
.cu-lede { color: var(--ink-soft); font-size: 1rem; margin-top: 8px; }
.cu-happens-list { max-width: 640px; margin: 0 auto 18px; gap: 14px; }
.cu-happens-list li { font-weight: 400; }
.cu-happens-list li strong { font-weight: 700; }
.cu-note h3 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cu-note p { margin: 0; }
.cu-note {
  max-width: 640px;
  margin: 0 auto 12px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-deep);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

/* ==========================================================================
   How it works / repeat CTAs
   ========================================================================== */
.cu-cta-price { font-weight: 700; color: var(--ink); margin-top: 12px; }
.cu-how .section-cta .cta-support + .cta-support { margin-top: 2px; }

/* ==========================================================================
   Practice information
   ========================================================================== */
.cu-visit .location-detail address { font-style: normal; line-height: 1.5; }
.cu-private {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ==========================================================================
   Final CTA — price line
   ========================================================================== */
.final-cta .final-cta-end { margin-bottom: 6px; }
.cu-final-price { color: #e9e1c7; margin: 0 auto 18px; font-size: 1.02rem; max-width: 40ch; }
.cu-final-price s { text-decoration-color: var(--gold); text-decoration-thickness: 2px; opacity: 0.85; }
.cu-final-price strong { font-family: var(--font-heading); font-size: 1.5rem; color: var(--white); }

/* ==========================================================================
   Sticky mobile bar: offer label + value (from the config) + "Claim Offer"
   ========================================================================== */
.cu-sticky { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
.cu-sticky-text { flex: 1 1 auto; min-width: 0; line-height: 1.25; color: var(--ink); }
.cu-sticky-text strong { display: block; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; color: var(--ink); }
.cu-sticky-price { font-family: var(--font-heading); font-size: 1.05rem; color: var(--gold-deep); }
.cu-sticky .btn { width: auto; flex: 0 0 auto; min-height: 46px; padding: 11px 22px; }
/* the sticky bar is for phones/tablets only (style.css hides it from 900px, but .cu-sticky's display:flex would override that) */
@media (min-width: 900px) { .cu-sticky { display: none; } }

@media (min-width: 900px) {
  .cu-why, .cu-happens, .cu-how, .cu-team, .cu-visit, .cu-faq { padding: 68px 0; }
}

/* ==========================================================================
   Team — five dentists. Phones: 1 per row (compact cards from style.css).
   Tablets: 2 per row, the last one centred. Desktop: 3 on the first row and
   2 centred beneath. Scoped to .cu-team so the Invisalign page is untouched.
   ========================================================================== */
/* phones: keep the longer bios compact so no card is much taller than the others */
.cu-team .team-card-body p.bio { font-size: 0.8rem; line-height: 1.35; }
.cu-team .team-card-body p.credentials-secondary { font-size: 0.74rem; line-height: 1.35; }
@media (min-width: 600px) {
  .cu-team .team-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cu-team .team-card { display: block; box-shadow: var(--shadow-md); }
  .cu-team .team-card img { width: 100%; }
  .cu-team .team-card-body { padding: 18px 20px 20px; }
  .cu-team .team-card-body h3 { font-size: 1.15rem; }
  .cu-team .team-card-body .eyebrow-small { font-size: 0.72rem; }
  .cu-team .team-card:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 10px); justify-self: center; }
}
@media (min-width: 900px) {
  .cu-team .team-grid { grid-template-columns: repeat(6, 1fr); gap: 22px; }
  .cu-team .team-card { grid-column: span 2; }
  .cu-team .team-card:nth-child(4) { grid-column: 2 / span 2; }
  .cu-team .team-card:last-child:nth-child(5) { grid-column: 4 / span 2; width: auto; justify-self: stretch; }
}

/* ==========================================================================
   Check-up thank-you page: the shared .thankyou-* styles in style.css apply.
   ========================================================================== */
