/* Deal landing pages (/deals/<slug>/), the only stylesheet they load. Same tokens as the site
   (navy #073B5C, orange #FF672F, Jost when it is already cached, a system font otherwise). Mobile first:
   at 390px the headline, price, ticks and the Name field sit above the fold. */
:root {
  --navy: #073B5C;
  --navy-2: #0b4a72;
  --accent: #FF672F;
  --accent-dk: #e2541f;
  --ink: #18303f;
  --muted: #5b6b78;
  --line: rgba(7, 59, 92, 0.14);
  --field: #F7FBFD;
  --ok: #1a7f37;
  --bad: #b42318;
  --wa: #1DA851;
  --page: #F3F7FA;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Jost, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
h1, h2 { margin: 0; color: var(--navy); line-height: 1.15; letter-spacing: -0.01em; }
.d-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* Header: logo, call and WhatsApp. No menu, nothing to leave through. */
.d-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px; padding: 0 12px 0 16px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.d-logo { width: 148px; height: auto; }
.d-head-act { display: flex; gap: 8px; }
.d-head-act a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.d-head-act svg { width: 18px; height: 18px; }
.d-btn-call { color: var(--navy); background: #EEF5FA; }
.d-btn-wa { color: #fff; background: var(--wa); }

/* Hero: the ad headline on the photo. */
.d-hero {
  position: relative;
  padding: 18px 0 64px;
  color: #fff;
  background: var(--navy) var(--hero) center 35% / cover no-repeat;
}
.d-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 59, 92, 0.66) 0%, rgba(7, 59, 92, 0.84) 100%);
}
.d-hero .d-wrap { position: relative; }
.d-hero h1 { color: #fff; font-size: 27px; font-weight: 700; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.d-badge, .d-kicker {
  display: inline-block; margin: 0 8px 8px 0; padding: 3px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.d-badge { background: #005EB8; color: #fff; } /* NHS blue */
.d-kicker { background: var(--accent); color: #fff; }
.d-sub { margin: 6px 0 0; font-size: 17px; font-style: italic; opacity: 0.92; }
.d-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 0; }
.d-price span { font-size: 15px; opacity: 0.9; }
.d-price strong { font-size: 40px; line-height: 1; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.d-window { margin: 2px 0 0; font-size: 14px; opacity: 0.9; }
.d-also { margin: 6px 0 0; font-size: 14px; }
.d-also b { font-weight: 700; }
.d-ticks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.d-ticks li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.d-ticks svg { flex: none; width: 20px; height: 20px; color: #7CE0A0; }

/* Form card: pulled up over the hero so the first field shows without scrolling. */
.d-card {
  position: relative; z-index: 2;
  width: calc(100% - 24px); max-width: 536px;
  margin: -48px auto 0;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 16px 40px -24px rgba(7, 59, 92, 0.55);
  scroll-margin-top: 72px;
}
.owl-deal-form { padding: 16px 16px 18px; }
.owl-deal-form h2 { font-size: 20px; margin: 0 0 10px; }
.owl-f { display: block; margin: 0 0 10px; }
.owl-f > span { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--navy); }
.owl-f > span em { font-style: normal; font-weight: 400; color: var(--muted); }
.owl-f input, .owl-f select {
  display: block; width: 100%; height: 48px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--navy);
  background: var(--field); border: 1px solid var(--line); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}
.owl-f select {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23073B5C' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.owl-f input:focus, .owl-f select:focus, .d-step button:focus-visible, .d-submit:focus-visible {
  outline: none; background-color: #fff; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(255, 103, 47, 0.25);
}
.owl-f.is-bad input { border-color: #c62828; background-color: #FFF7F7; }
.owl-f-err { display: block; margin-top: 4px; font-size: 13px; color: var(--bad); }
.owl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }

.d-steps { margin: 2px 0 10px; }
.d-step { display: grid; grid-template-columns: 1fr 40px 36px 40px; align-items: center; gap: 4px; }
.d-step > span { grid-column: 1 / -1; font-size: 14px; font-weight: 600; color: var(--navy); }
.d-step button {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--field);
  font: inherit; font-size: 20px; line-height: 1; color: var(--navy); cursor: pointer;
}
.d-step button:first-of-type { grid-column: 2; }
.d-step input { width: 100%; height: 40px; border: 0; background: none; text-align: center; font: inherit; font-size: 17px; font-weight: 600; color: var(--navy); }

.d-check { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; font-size: 15px; cursor: pointer; }
.d-check input { width: 22px; height: 22px; accent-color: var(--wa); }

.d-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 10px 16px;
  border: 0; border-radius: 12px;
  font: inherit; font-size: 17px; font-weight: 700; color: #fff; text-align: center; text-decoration: none;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(226, 84, 31, 0.9);
  transition: background-color 150ms ease, transform 150ms ease;
}
.d-submit:hover { background: var(--accent-dk); }
.d-submit:active { transform: translateY(1px); }
.d-submit[disabled] { opacity: 0.7; cursor: progress; }
.d-small { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
.owl-enq-formerr { margin: 10px 0 0; font-size: 14px; color: var(--bad); }

.owl-enq-done { padding: 28px 20px; text-align: center; outline: none; }
.owl-enq-done svg { width: 56px; height: 56px; margin: 0 auto; color: var(--ok); }
.owl-enq-done h1, .owl-enq-done h3 { margin: 12px 0 8px; font-size: 26px; color: var(--navy); }
.owl-enq-done p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.owl-ref { font-size: 13px; }
.d-wa-big { background: var(--wa); box-shadow: none; }
.d-wa-big:hover { background: #178a43; }
.d-wa-big svg { width: 22px; height: 22px; }
.d-thanks main { padding: 24px 16px 8px; }
.d-thanks .owl-enq-done { background: #fff; border: 1px solid var(--line); border-radius: 16px; }

/* Below the form. */
.d-trust { max-width: 560px; margin: 20px auto 0; padding: 0 16px; font-size: 14px; color: var(--muted); }
.d-trust p { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.d-trust svg { flex: none; width: 22px; height: 22px; color: var(--navy); }
.d-trust b { color: var(--navy); }
.d-more { max-width: 560px; margin: 8px auto 0; padding: 0 16px; font-weight: 600; }
.d-faq { max-width: 560px; margin: 20px auto 0; padding: 0 16px; }
.d-faq h2 { font-size: 20px; margin: 0 0 8px; }
.d-faq details { margin: 0 0 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.d-faq summary { padding: 14px 16px; font-weight: 600; color: var(--navy); cursor: pointer; list-style-position: inside; }
.d-faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }
.d-foot { max-width: 560px; margin: 28px auto 0; padding: 16px 16px 96px; font-size: 12px; line-height: 1.55; color: var(--muted); border-top: 1px solid var(--line); }
.d-foot p { margin: 0 0 6px; }

/* Sticky bar on phones once the form is off screen (owl-forms.js toggles .is-on). */
.d-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(7, 59, 92, 0.5);
  transform: translateY(110%); transition: transform 250ms ease;
}
.d-sticky.is-on { transform: translateY(0); }
.d-sticky a { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.d-sticky .owl-sticky-cta { flex: 1; background: var(--accent); color: #fff; font-size: 16px; }
.d-sticky .owl-sticky-wa { width: 56px; background: var(--wa); color: #fff; }
.d-sticky .owl-sticky-wa svg { width: 24px; height: 24px; }

/* Cookie banner (same markup as the main site's). */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  max-width: 560px; margin: 0 auto; padding: 14px 16px;
  background: var(--navy); color: #fff; border-radius: 14px;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5); font-size: 14px;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0 0 10px; }
.cookie-bar a { color: #fff; }
.cookie-bar-actions { display: flex; gap: 8px; }
.cookie-bar .vs-btn, .cookie-bar .cookie-decline { height: 40px; padding: 0 18px; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.cookie-bar .vs-btn { border: 0; background: var(--accent); color: #fff; }
.cookie-bar .cookie-decline { border: 1px solid rgba(255, 255, 255, 0.5); background: none; color: #fff; }

@media (min-width: 900px) {
  .d-hero { padding: 48px 0 96px; }
  .d-hero h1 { font-size: 40px; }
  .d-sticky { display: none; }
  .d-foot { padding-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d-sticky, .d-submit, .owl-f input, .owl-f select { transition: none; }
}
