/* Jack Newman booking page. Colours from Jack's brand book; Maven Pro is served from this site, not Google. */

@font-face { font-family: "Maven Pro"; font-weight: 400 900; font-display: swap; src: url("/fonts/maven-pro-latin-var.woff2") format("woff2"); }

:root {
  --olive: #1f221a;
  --olive-2: #2a2e24;
  /* the logo's own background, so no box shows around it in the top bar */
  --olive-logo: #21221c;
  --olive-foot: #181a14;
  --green: #54b03e;
  --green-ink: #2f7a22;
  --green-tint: #eef7ea;
  --marble: #e8e8e8;
  --muted: #b9b4aa;
  --card-muted: #5f6a62;
  --line: #dfe5e0;
  --grey: #eef1ef;
  --red: #c62828;
  --font: "Maven Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
/* Olive behind the page, so pulling past the top or bottom shows the header's and footer's colour.
   No sideways movement, no double-tap zoom, no grey flash on tap. */
html { margin: 0; background: var(--olive); overscroll-behavior-x: none; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--olive); color: var(--marble); font: 400 16px/1.45 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; background: var(--olive-logo); border-bottom: 1px solid #2e3329; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.top img { display: block; height: 44px; width: auto; }
.call {
  display: inline-flex; align-items: center; gap: 7px; flex: none; background: var(--green); color: var(--olive);
  text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 13px; border-radius: 999px;
}
.call svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 370px) {
  .top img { height: 38px; }
  .call { padding: 8px 11px; font-size: 14px; }
}

.wrap > h1 { margin: 24px 0 16px; font: 800 40px/1.02 var(--font); text-transform: uppercase; }

/* the form card */
.card {
  display: flex; flex-direction: column; margin: 0; background: #fff; color: var(--olive); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35); --pad-x: 22px; --pad-b: 20px; padding: 24px var(--pad-x) var(--pad-b);
  scroll-margin-top: 72px;
}
.progress { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--card-muted); }
.progress progress { flex: 1; height: 6px; border: 0; border-radius: 99px; background: #edf1ee; overflow: hidden; appearance: none; }
.progress progress::-webkit-progress-bar { background: #edf1ee; }
.progress progress::-webkit-progress-value { background: var(--green); border-radius: 99px; }
.progress progress::-moz-progress-bar { background: var(--green); border-radius: 99px; }
.card h2 { margin: 0 0 14px; font: 800 26px/1.05 var(--font); text-transform: uppercase; }

/* choices: tiles (makes, what it needs) and a row of chips (best time) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  position: relative; display: grid; place-items: center; min-height: 58px; padding: 10px 32px; text-align: center;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
}
.tile b { font-weight: 700; font-size: 17px; line-height: 1.15; }
.tile .check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--green);
  display: none; place-items: center;
}
.check svg, .big-tick svg { fill: none; stroke: var(--olive); stroke-width: 3; }
.tile .check svg { width: 14px; height: 14px; }
.tile[aria-pressed="true"], .chip[aria-pressed="true"] { border-color: var(--green); background: var(--green-tint); }
.tile[aria-pressed="true"] .check { display: grid; }
.tiles.one { grid-template-columns: 1fr; }
/* the best-time choices: one row of three */
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chip {
  padding: 13px 4px; background: #fff; border: 2px solid var(--line); border-radius: 12px;
  font-weight: 600; font-size: 15.5px; text-align: center;
}

.plate { display: flex; align-items: stretch; border: 2px solid #1d2420; border-radius: 10px; overflow: hidden; background: #fff; }
.plate .eu { width: 44px; flex: none; background: #1446a0; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 6px 0 5px; gap: 4px; }
.plate .eu svg { width: 22px; height: 22px; }
.plate .eu span { font-weight: 700; font-size: 12px; line-height: 1; }
.plate input {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px; background: transparent; color: #111;
  font: 800 30px/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
}
.plate input::placeholder { color: #c5cad3; }
.plate:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(84, 176, 62, .25); }
.field.bad .plate { border-color: var(--red); }

.field { margin-bottom: 12px; }
.field label, .label { display: block; margin: 0 0 5px; font-weight: 600; font-size: 15px; }
.label { margin: 4px 0 8px; }
.field > input { width: 100%; padding: 13px 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; font-size: 17px; }
.field > input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(84, 176, 62, .2); }
.tiles + .field { margin-top: 14px; }
.err { display: none; color: var(--red); font-size: 14px; margin-top: 4px; }
.bad .err { display: block; }
.field.bad input { border-color: var(--red); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tick-field { margin: 14px 0 4px; }
.consent-tick { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #333d36; }
.consent-tick input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--green); }
.tick-field .err { margin-left: 32px; }
.tick-field.bad .consent-tick input { outline: 2px solid var(--red); outline-offset: 2px; }
.bot-check { min-height: 65px; margin: 12px 0 2px; }
.bot-check.quiet { min-height: 0; margin: 0; } /* out of sight unless Cloudflare asks for a tap */
.form-error { color: var(--red); font-size: 14px; margin: 8px 0 0; }

.actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.btn { border: 0; border-radius: 12px; padding: 16px 18px; font-weight: 700; font-size: 17.5px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-primary { flex: 1; background: var(--green); color: var(--olive); }
.btn-primary:disabled { background: #cfd8d1; color: #6c776f; cursor: not-allowed; }
.btn-back { background: transparent; color: var(--card-muted); padding: 16px 8px; font-weight: 600; }
.btn-ghost { background: var(--grey); color: var(--olive); }

.done .big-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin-bottom: 12px; }
.done .big-tick svg { width: 30px; height: 30px; }
.done p { margin: 0 0 12px; font-size: 16.5px; color: #2b352e; }
.done .ref { display: inline-block; padding: 4px 10px; border-radius: 6px; background: #f1f4f2; font-weight: 700; font-size: 15px; }
.done a { font-weight: 700; }

/* below the form */
.block { padding: 30px 0 4px; }
.block h2, .find h2 { margin: 0 0 14px; font: 800 24px/1 var(--font); text-transform: uppercase; }
.how ol, .values { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; align-items: flex-start; background: var(--olive-2); border-radius: 12px; padding: 14px; }
.how li b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--olive); display: grid; place-items: center; font-weight: 800; }
.how li span, .values li { color: var(--muted); font-size: 15px; }
.how strong, .values strong { display: block; font-weight: 700; color: var(--marble); }
.philo { margin: 0 0 14px; font-size: 17px; }
.values { gap: 8px; margin-bottom: 12px; }
.values li { background: var(--olive-2); border-left: 3px solid var(--green); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { background: var(--olive-2); border-radius: 12px; padding: 14px; }
.fact b { display: block; margin-bottom: 4px; font: 800 25px/1 var(--font); color: var(--green); }
.fact span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.3; }
.brands { margin: 12px 0 0; font-weight: 700; font-size: 15px; }
.find { margin-top: 30px; padding: 26px 0 40px; background: var(--olive-foot); border-top: 1px solid #2e3329; }
.find p { margin: 0 0 10px; color: var(--muted); }
.find a, .link { color: var(--marble); font-weight: 700; }
.find .small { font-size: 13px; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; font-size: inherit; }

/* cookie choice */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; max-width: 560px; margin: 0 auto;
  background: #fff; color: var(--olive); border-radius: 14px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); padding: 14px 16px;
}
.consent p { margin: 0 0 10px; font-size: 14.5px; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; padding: 12px; font-size: 16px; }

/* Next ("Another make") and Send stay pinned to the bottom of the screen, so they're never out of sight. Inside the
   Facebook and Instagram apps the page is much shorter than the phone, and a hidden button looked like a form that
   didn't work. They sit above the cookie question while that shows (--consent-h, set by form.js). On phones Send
   unpins while typing (then the keyboard is up and the box being typed in comes first). */
main > .card[data-step="1"] > .actions,
html:not(.typing) main > .card[data-step="4"] > .actions {
  position: sticky; bottom: var(--consent-h, 0px); z-index: 3; background: #fff;
  margin: 8px calc(-1 * var(--pad-x)) calc(-1 * var(--pad-b));
  padding: 12px var(--pad-x) calc(var(--pad-b) + env(safe-area-inset-bottom, 0px));
  border-radius: 0 0 14px 14px; box-shadow: var(--pin-shadow, none);
}
/* room to scroll the last of the page above the cookie question while it shows */
body { padding-bottom: var(--consent-h, 0px); }

/* Phones: the form is the first thing on screen and fills it, with the rest of the page below it out of the way and
   the buttons down where a thumb is. --top-h (the header), --consent-h (the cookie question, while it shows) and
   --app-h (the part of the screen left above the keyboard, while someone types) are set by form.js. */
@media (max-width: 760px) {
  .wrap > h1 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  main > .card {
    --pad-x: 16px; --pad-b: 18px; margin-top: 10px; padding-top: 16px;
    min-height: calc(100vh - var(--top-h, 61px) - 22px - var(--consent-h, 0px));
    min-height: calc(var(--app-h, 100svh) - var(--top-h, 61px) - 22px - var(--consent-h, 0px));
  }
  main > .card > .actions { margin-top: auto; padding-top: 16px; }
  /* steps 1 and 3: the choices grow to use the whole screen */
  main > .card > .tiles { flex: 1 1 auto; grid-auto-rows: minmax(64px, 1fr); }
  /* the reg step, the details and the thank-you are only as tall as what's in them: no blank band above the buttons
     (the keyboard takes the rest of the screen when it's up) */
  main > .card[data-step="2"], main > .card[data-step="4"], main > .card[data-step="5"] { min-height: 0; }
  main > .card[data-step="2"] > .actions { margin-top: 8px; }
  /* the pinned buttons' top edge, only where they float over the form; the tick box keeps clear of it */
  :root { --pin-shadow: 0 -10px 14px -12px rgba(0, 0, 0, .3); }
  .tick-field { margin-bottom: 12px; }
  /* typing: the cookie question waits, so it never sits over the box or the button */
  html.typing .consent { display: none; }
}
/* short screens (in-app browsers, small phones): a little tighter, so more of the step fits */
@media (max-width: 760px) and (max-height: 700px) {
  main > .card { padding-top: 12px; }
  .progress { margin-bottom: 10px; }
  .card h2 { font-size: 23px; margin-bottom: 10px; }
  .tiles, .chips { gap: 8px; }
  .btn { padding: 14px 18px; }
  .consent { left: 8px; right: 8px; bottom: 8px; padding: 10px 12px; }
  .consent p { font-size: 13px; margin-bottom: 8px; }
  .consent-actions .btn { padding: 9px; }
}

/* inside another website: just the form */
body.embed, html:has(body.embed) { background: transparent; }
body.embed .top, body.embed .wrap > h1, body.embed .block, body.embed .find { display: none; }
body.embed .wrap { padding: 0; max-width: none; }
body.embed main > .card { margin: 0; min-height: 0; box-shadow: none; border: 1px solid var(--line); }

/* 404 */
body.plain { display: grid; place-items: center; min-height: 100vh; }
.plain-box { background: #fff; color: var(--olive); border-radius: 14px; padding: 24px; max-width: 420px; margin: 16px; }
.plain-box h1 { margin: 0 0 8px; font: 800 26px/1.1 var(--font); text-transform: uppercase; }
.plain-box a { color: var(--green-ink); font-weight: 700; }
