/* Free GCSE English mock landing page (/freemock, Views/FreeMock/Index.cshtml).
   Loaded after lcm-fonts.css, lc-tokens.css and homepage-v2.css, which supply the
   fonts, the --lc-* neutrals and CTA, and the marketing --blue / --blue-deep pair.
   Everything here is under the fm- prefix so it never collides with the homepage
   classes (.hero, .block, .btn-primary...). Values with no variable are the
   BRAND_GUIDE values, each marked brand: <role>. */

/* The dialog sits outside .fm-page in the DOM, so it gets the same tokens */
.fm-page, .fm-dialog {
  --fm-tint: var(--mk-blue-tint);
  --fm-error: var(--mk-bad);
  --fm-band: var(--mk-hero);
  --fm-raised: var(--mk-shadow-raised);
}
.fm-page {
  background: var(--lc-page);
  color: var(--lc-ink);
  font-family: var(--mk-font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
.fm-page h1, .fm-page h2, .fm-page h3, .fm-dialog h2 { font-family: var(--lc-font-chrome); color: var(--lc-ink); }
.fm-page :focus-visible, .fm-dialog :focus-visible { outline: var(--mk-focus); outline-offset: 2px; border-radius: 4px; }
.fm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Buttons: the Living Colour main button (BRAND_GUIDE section 8) */
.fm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 700 15px/1 var(--lc-font-chrome);
  color: #fff; text-decoration: none;
  background: var(--lc-cta); border: 0; border-radius: 10px;
  box-shadow: var(--lc-cta-shadow);
  cursor: pointer;
}
.fm-btn:hover { background: var(--lc-cta-hover); }
.fm-btn:disabled { cursor: progress; }
.fm-btn-block { width: 100%; }
.fm-textlink { color: var(--blue); font-weight: 600; text-decoration: none; text-underline-offset: 4px; }
.fm-textlink:hover { text-decoration: underline; color: var(--blue-deep); }
.fm-inline-link { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.fm-inline-link:hover { color: var(--blue-deep); }

/* The landing page's footer: one legal line and two links. homepage-v2.css paints
   every footer dark and centred, so this undoes that. */
.fm-foot { background: var(--lc-card); color: var(--lc-muted); border-top: 1px solid var(--lc-line); padding: 28px 0 44px; text-align: left; font-size: 14px; line-height: 1.5; }
.fm-foot .fm-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.fm-foot p { margin: 0; max-width: 46em; }
.fm-foot nav { display: flex; gap: 20px; }
.fm-foot a { color: var(--lc-body); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fm-foot a:hover { color: var(--blue-deep); }

/* Hero */
.fm-eyebrow { font: 800 12px/1.3 var(--lc-font-chrome); letter-spacing: .13em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
.fm-free { color: var(--blue); }
.fm-hero { padding: 64px 0 72px; }
.fm-hero .fm-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.fm-hero h1 {
  font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 0 0 22px;
}
.fm-lede { font-size: 20px; color: var(--lc-body); max-width: 34em; margin: 0 0 16px; }
.fm-papers { margin: 0 0 28px; font-size: 15px; font-weight: 500; color: var(--lc-muted); }
.fm-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.fm-note { margin: 22px 0 0; font-size: 15px; font-weight: 500; color: var(--lc-muted); }

/* The hero: the real mock papers, the same two images the homepage shows.
   The front cover sits in normal flow so the block takes its height; the
   inside page peeks out behind it, up and to the right. */
.fm-stack { position: relative; width: min(100%, 440px); margin: 0 auto; padding: 28px 0 0; }
.fm-paper { display: block; }
.fm-paper img { display: block; width: 100%; height: auto; border-radius: 6px; }
.fm-paper-front { position: relative; z-index: 2; width: 76%; filter: drop-shadow(0 16px 32px rgba(15, 23, 42, .16)); }
.fm-paper-back { position: absolute; z-index: 1; top: 0; right: 0; width: 76%; transform: rotate(2deg); filter: drop-shadow(0 8px 20px rgba(15, 23, 42, .10)); }

/* Sections */
.fm-block { padding: 80px 0; border-top: 1px solid var(--lc-line); }
.fm-block.fm-white { background: var(--lc-card); }
.fm-page h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; margin: 0 0 16px; }
.fm-intro { color: var(--lc-body); font-size: 19px; max-width: 38em; margin: 0 0 40px; }

.fm-video-heading { margin-bottom: 28px; }

/* The Kendal mock film. Desktop: the landscape cut, full width. Phone: the
   portrait cut in a phone-shaped frame when wwwroot/videos/freemock-phone.mp4
   exists (the view adds fm-video-portrait), else the landscape cut. The
   767px breakpoint matches the matchMedia query in freemock.js. */
.fm-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--lc-ink); box-shadow: var(--fm-raised); }
.fm-video:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 4px; }
@media (max-width: 767px) {
  .fm-not-phone { display: none; } /* words and lines that only earn their place on wider screens */
  /* phones read: hero, What you get, the film, the terms, then how to apply and why.
     The markup stays in desktop order; flex order moves the terms up. */
  .fm-page { display: flex; flex-direction: column; }
  #terms { order: 4; }
  .fm-steps-section { order: 5; background: var(--lc-page); }
  .fm-why-section { order: 6; background: var(--lc-card); }
  .fm-faq { order: 7; }
  .fm-closer { order: 8; }
  /* phones: Apply now in the top bar. The homepage only
     styles this button from 768px up, so the look is restated here. */
  .top-nav .btn-cta-nav {
    display: inline-block; white-space: nowrap;
    font-size: 12.5px; font-weight: 700; color: #fff; text-decoration: none;
    background: var(--lc-cta); border: 1px solid transparent;
    padding: 7px 12px; border-radius: 100px;
  }
  /* the phone cut's own shape (900 by 972). Change this if the file is replaced. */
  .fm-video-portrait .fm-video { aspect-ratio: 900 / 972; object-fit: cover; width: min(100%, 360px); max-height: 78vh; margin: 0 auto; }
}

/* How it works: a real sequence, so a numbered list */
.fm-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: fm-step; }
.fm-steps li { counter-increment: fm-step; position: relative; padding-top: 58px; }
.fm-steps li::before {
  content: counter(fm-step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--blue);
  display: grid; place-items: center;
  font-family: var(--lc-font-chrome); font-weight: 800; font-size: 18px;
  background: var(--lc-page); color: var(--blue);
}
.fm-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 21px; left: 50px; right: -12px; height: 2px;
  background: repeating-linear-gradient(to right, var(--blue) 0 6px, transparent 6px 12px);
}
.fm-steps h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
.fm-steps p { margin: 0; font-size: 16px; color: var(--lc-body); }

/* Why: the heading spans the section; beneath it the founders photo and the
   text sit side by side, centred on each other */
.fm-why h2 { margin: 0 0 32px; }
.fm-why-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.fm-founders img { display: block; width: 100%; height: auto; border-radius: 16px; }
.fm-why p { margin: 0 0 16px; color: var(--lc-body); }
.fm-why p:last-child { margin-bottom: 0; }
.fm-why .fm-sign { font-weight: 600; color: var(--lc-ink); }

/* Ticked lists: the terms (two columns) and What you get (one column, below) */
.fm-terms .fm-intro { margin-bottom: 8px; }
.fm-ticks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 56px; color: var(--lc-body); }
.fm-ticks li { padding: 13px 0 13px 30px; border-bottom: 1px solid var(--lc-line); position: relative; }
.fm-ticks li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 6px; height: 11px; border: solid var(--blue); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* What you get: five short lines, one column */
.fm-points { grid-template-columns: minmax(0, 1fr); max-width: 46em; font-size: 18px; }
.fm-points li { padding: 14px 0 14px 34px; }
.fm-points li::before { top: 21px; }
.fm-points strong { color: var(--lc-ink); font-weight: 700; }

/* Questions */
.fm-faq details { border-bottom: 1px solid var(--lc-line); }
.fm-faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.fm-faq summary::-webkit-details-marker { display: none; }
.fm-faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; }
.fm-faq details[open] summary::after { content: "\2212"; }
.fm-faq details p { margin: 0 0 20px; color: var(--lc-body); max-width: 44em; }

/* Closing band: blue, so its button turns white and its focus ring turns white */
.fm-closer { background: var(--fm-band); color: #fff; padding: 84px 0; }
.fm-closer .fm-wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.fm-closer h2 { margin: 0 0 8px; color: #fff; }
.fm-closer p { margin: 0; color: var(--fm-tint); }
.fm-closer .fm-btn { background: #fff; color: var(--blue-deep); box-shadow: 0 10px 24px rgba(15, 23, 42, .2); }
.fm-closer .fm-btn:hover { background: var(--fm-tint); }
.fm-closer :focus-visible { outline-color: #fff; }

/* Register interest dialog */
.fm-dialog {
  width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  margin: auto; /* homepage-v2.css zeroes every margin, which drops the browser's dialog centring */
  border: 0; border-radius: 16px; padding: 0;
  color: var(--lc-ink); background: var(--lc-card);
  font-family: var(--mk-font-body); font-size: 16px; line-height: 1.5;
  box-shadow: var(--fm-raised);
}
.fm-dialog::backdrop { background: rgba(10, 15, 30, .58); } /* same scrim as lc-confirm.css */
.fm-dialog[open] { animation: fm-rise .25s ease-out; }
@keyframes fm-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .fm-dialog[open] { animation: none; } }
.fm-dlg-head { padding: 26px 28px 6px; position: relative; }
.fm-dlg-head h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 6px; padding-right: 48px; }
.fm-dlg-head p { margin: 0; color: var(--lc-body); font-size: 16px; }
.fm-dlg-head .mk-student-note { margin-top: 8px; font-size: 13.5px; color: var(--mk-muted); }
.fm-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--lc-chip); color: var(--lc-ink); cursor: pointer;
  display: grid; place-items: center;
}
.fm-close:hover { background: var(--lc-line); }
.fm-form { padding: 18px 28px 28px; }
.fm-field { margin-bottom: 16px; }
/* The email gate notice (email-gate.css) sits under the role box. */
.fm-field + .mk-email-gate { margin: -6px 0 16px; }
.fm-form input.mk-email-gate-stopped { border-color: var(--mk-warn-fill); }
.fm-field > label, .fm-fieldset legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.fm-opt { font-weight: 400; color: var(--lc-body); }
.fm-form input[type=text], .fm-form input[type=email], .fm-form select {
  width: 100%; min-height: 48px; font: 16px "Inter", system-ui, sans-serif; color: var(--lc-ink);
  padding: 12px 14px; border: 1.5px solid var(--lc-line); border-radius: 10px; background: var(--lc-card);
}
.fm-form input[type=text]:focus, .fm-form input[type=email]:focus, .fm-form select:focus {
  outline: 3px solid var(--blue-deep); outline-offset: 0; border-color: var(--blue-deep);
}
.fm-form [aria-invalid="true"] { border-color: var(--fm-error); }
.fm-fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.fm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-chips label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer;
  border: 1.5px solid var(--lc-line); border-radius: 999px; padding: 9px 14px; font-size: 15px;
}
.fm-chips input { accent-color: var(--blue); margin: 0; }
.fm-chips label:has(input:checked) { border-color: var(--blue); background: var(--fm-tint); }
.fm-chips label:has(input:focus-visible) { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.fm-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0 16px; cursor: pointer; }
.fm-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.fm-privacy { font-size: 13px; color: var(--lc-body); margin: 14px 0 0; }
.fm-error { color: var(--fm-error); font-size: 14px; font-weight: 500; margin: 0 0 12px; }
.fm-error:empty { display: none; }
/* Honeypot: off screen for people, still in the form for bots */
.fm-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Application sent: a tick badge, a heading and the next step in a tinted panel.
   The green is paired with the tick, so colour never carries the meaning alone. */
.fm-done { padding: 36px 28px 30px; position: relative; }
.fm-done:focus { outline: none; }
.fm-done-badge {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 0 18px;
  background: var(--lc-ok-sheet); border: 1.5px solid var(--lc-ok-border); color: var(--lc-ok-text);
  display: grid; place-items: center;
}
.fm-done-title { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 8px; padding-right: 48px; }
.fm-done p { color: var(--lc-body); margin: 0 0 14px; }
.fm-done-next { background: var(--fm-tint); border-radius: 12px; padding: 16px 18px; margin: 18px 0 22px; }
.fm-done-next .fm-eyebrow { margin: 0 0 6px; color: var(--blue-deep); }
.fm-done-next p:last-child { margin: 0; color: var(--lc-ink); }
[hidden] { display: none !important; }

/* Tablet and phone */
@media (max-width: 900px) {
  .fm-hero .fm-wrap, .fm-why-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .fm-ticks { grid-template-columns: minmax(0, 1fr); }
  .fm-steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .fm-steps li { padding: 0 0 26px 62px; }
  .fm-steps li:not(:last-child)::after {
    top: 48px; bottom: 6px; left: 20px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(to bottom, var(--blue) 0 6px, transparent 6px 12px);
  }
}
@media (max-width: 640px) {
  .fm-hero { padding: 40px 0 56px; }
  .fm-eyebrow { font-size: 11px; letter-spacing: .08em; } /* phones: the label fits on one line at 390px */
  .fm-hero h1 { font-size: 46px; }  /* phones: the headline leads, the lede steps back */
  .fm-lede { font-size: 16px; line-height: 1.5; }
  .fm-block { padding: 56px 0; }
  .fm-intro { font-size: 17px; margin-bottom: 28px; }
  .fm-stack { display: none; } /* phones: heading, lede and buttons only */
  .fm-closer { padding: 56px 0; }
  .fm-form, .fm-dlg-head, .fm-done { padding-left: 20px; padding-right: 20px; }
  .fm-dlg-head h2, .fm-done-title { font-size: 24px; }
}

/* ---- Booking page (/freemock/book/{token}, Views/FreeMock/Book.cshtml) ----
   The applicant books the 15 minute call: where, then a day, then a time. Reuses
   the hero, the tinted panel, the tick list and the main button above; only the
   pickers are new. "Full" on a day chip is amber, never red (a missed step). */
.fm-book-hero { padding-bottom: 40px; }
.fm-book-hero .fm-wrap { grid-template-columns: minmax(0, 1fr); }
.fm-book-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.fm-book-hero .fm-lede { margin-bottom: 0; }
.fm-book-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; align-items: start; }
.fm-book-card { background: var(--lc-page); border-radius: 16px; padding: 22px 24px; }
.fm-book-card-title { font-size: 19px; margin: 0 0 14px; }
.fm-book-dl { margin: 0; display: grid; gap: 12px; }
.fm-book-dl div { display: grid; gap: 2px; }
.fm-book-dl dt { font-size: 13px; font-weight: 600; color: var(--lc-muted); }
.fm-book-dl dd { margin: 0; font-weight: 600; color: var(--lc-ink); overflow-wrap: anywhere; }
.fm-book-note { margin: 16px 0 0; font-size: 15px; color: var(--lc-body); }
.fm-book-note:empty { display: none; }

.fmb-step { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.fmb-step legend { display: flex; align-items: center; gap: 12px; font: 800 20px/1.2 var(--lc-font-chrome); color: var(--lc-ink); margin: 0 0 16px; padding: 0; }
.fmb-step legend .fm-opt { font-size: 15px; }
.fmb-num { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center; font-size: 15px; flex: none; }

.fmb-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fmb-choice {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start;
  padding: 16px 18px; border: 1.5px solid var(--lc-line); border-radius: 12px; background: var(--lc-card); cursor: pointer;
}
.fmb-choice input { grid-row: 1 / span 2; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.fmb-choice-title { font: 700 17px/1.3 var(--lc-font-chrome); color: var(--lc-ink); }
.fmb-choice-text { font-size: 15px; line-height: 1.5; color: var(--lc-body); }
.fmb-choice:hover { border-color: var(--blue); }
.fmb-choice:has(input:checked) { border-color: var(--blue); background: var(--fm-tint); }
.fmb-choice:has(input:focus-visible) { outline: var(--mk-focus); outline-offset: 2px; }

.fmb-days { display: flex; flex-wrap: wrap; gap: 8px; }
.fmb-days button {
  min-width: 74px; min-height: 76px; padding: 10px 8px; cursor: pointer;
  border: 1.5px solid var(--lc-line); border-radius: 12px; background: var(--lc-card);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: var(--lc-font-chrome); color: var(--lc-ink);
}
.fmb-day-dow, .fmb-day-mon, .fmb-day-note { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lc-muted); }
.fmb-day-num { font-size: 22px; font-weight: 800; line-height: 1; }
.fmb-day-note { color: var(--lc-part-text); } /* "Full" */
.fmb-day-note:empty { display: none; }
.fmb-days button:hover:not(:disabled) { border-color: var(--blue); }
.fmb-days button.fmb-day-on { border-color: var(--blue); background: var(--fm-tint); }
.fmb-days button.fmb-day-on .fmb-day-num { color: var(--blue-deep); }
.fmb-days button:disabled { cursor: not-allowed; background: var(--lc-chip); color: var(--lc-muted); }

.fmb-status { margin: 0 0 12px; font-size: 15px; color: var(--lc-body); }
.fmb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.fmb-slot {
  min-height: 48px; cursor: pointer; font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--lc-line); border-radius: 10px; background: var(--lc-card);
  font: 600 15px/1 "Inter", system-ui, sans-serif; color: var(--lc-ink);
}
.fmb-slot:hover { border-color: var(--blue); }
.fmb-slot.fmb-slot-on { border-color: var(--blue); background: var(--fm-tint); color: var(--blue-deep); }

.fmb-summary { background: var(--fm-tint); border-radius: 12px; padding: 16px 18px; margin: 0 0 18px; }
.fmb-summary .fm-eyebrow { margin: 0 0 4px; color: var(--blue-deep); }
.fmb-summary-text { margin: 0; font-size: 17px; font-weight: 700; color: var(--lc-ink); }
.fm-book-steps .fm-error { margin-bottom: 14px; }
.fm-book-steps .fm-privacy { margin-top: 16px; }

.fmb-done:focus { outline: none; }
.fmb-done .fm-done-title { padding-right: 0; margin-bottom: 18px; }
.fmb-done h3 { font-size: 20px; margin: 28px 0 8px; }
.fmb-done .fm-book-note { margin-top: 12px; }
.fmb-points { font-size: 16px; margin-top: 8px; }
.fmb-points li { padding: 10px 0 10px 30px; }
.fmb-points li::before { top: 16px; }

@media (max-width: 900px) {
  .fm-book-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .fmb-choices { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .fm-book-hero h1 { font-size: 36px; }
  .fm-book-card { padding: 18px 20px; }
  .fmb-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fmb-days button { min-width: 64px; }
  .fm-book-steps .fm-btn { width: 100%; }
}
