/* Book a Demo — centered cream conversion page */

html:has(.demo-page) {
  background: #f7f6f3;
}

.demo-page {
  --demo-bg: #f7f6f3;
  --demo-bg-deep: #f1f0ec;
  --demo-panel: #ffffff;
  --demo-accent: var(--demo-cta, #ff5a24);
  --demo-accent-deep: var(--demo-cta-hover, #e84b18);
  --demo-accent-soft: rgba(255, 90, 36, 0.1);
  --demo-accent-mid: rgba(255, 90, 36, 0.16);
  --demo-text: #101820;
  --demo-muted: #5e6a78;
  --demo-muted-soft: #6b7785;
  --demo-border: rgba(16, 24, 32, 0.1);
  --demo-border-strong: rgba(16, 24, 32, 0.14);
  --demo-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --form-white: #ffffff;
  --form-ink: #101820;
  --form-muted: #5e6a78;
  --form-line: rgba(16, 24, 32, 0.12);
  --form-blue: var(--demo-cta, #ff5a24);
  --form-blue-soft: rgba(255, 90, 36, 0.12);
  --motion: 280ms ease;
  --color-section-eyebrow: var(--demo-cta, #ff5a24);
  --color-section-label: var(--demo-cta, #ff5a24);
  --color-section-heading: #0a4f78;
  --color-body-text: #101820;
  --color-muted-text: #5e6a78;
  /* Neutralize any cached midnight tokens */
  --midnight-bg: #f7f6f3;
  --midnight-text: #101820;
  --midnight-muted: #5e6a78;
  --midnight-panel: #ffffff;
  --demo-contact-column: 780px;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--demo-text);
  background:
    radial-gradient(ellipse 65% 48% at 50% 42%, rgba(255, 90, 36, 0.06), transparent 58%),
    radial-gradient(ellipse 48% 36% at 18% 12%, rgba(255, 90, 36, 0.04), transparent 52%),
    linear-gradient(180deg, #faf9f6 0%, #f5f4f0 45%, #f7f6f3 100%);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.demo-page h1,
.demo-page h2,
.demo-page h3 {
  font-family: "Plus Jakarta Sans", Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--demo-text);
}

.demo-page main {
  flex: 1 0 auto;
  box-sizing: border-box;
  width: min(var(--demo-contact-column, 720px), calc(100% - 2 * var(--page-gutter, 24px)));
  max-width: var(--demo-contact-column, 720px);
  margin-inline: auto;
  padding-inline: 0;
  background: transparent;
  color: var(--demo-text);
}

.demo-page .demo-hero,
.demo-page .demo-booking-stage,
.demo-page .demo-side,
.demo-page .demo-hero-copy,
.demo-page .demo-personalize {
  color: var(--demo-text);
  background: transparent;
}

/* Header — clear nav by default; white pill + dark labels on hover/focus */
.demo-page .site-header .nav-shell {
  background: #fff;
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-color: rgba(16, 24, 32, 0.08);
  border-radius: 999px;
  box-shadow:
    0 8px 28px rgba(16, 24, 32, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.demo-page .site-header .nav-shell:hover,
.demo-page .site-header .nav-shell:focus-within,
.demo-page .site-header .nav-shell:has(.menu-trigger.is-open) {
  background: #fff;
  border-color: rgba(15, 110, 169, 0.14);
  box-shadow:
    0 10px 32px rgba(16, 24, 32, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.demo-page .site-header .brand,
.demo-page .site-header .brand.brand--wordmark {
  background: #fff;
  border: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: 0 8px 28px rgba(16, 24, 32, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.demo-page .site-header .brand,
.demo-page .site-header .nav-link,
.demo-page .site-header .nav-link > a {
  color: var(--nav-label);
  text-shadow: none;
}

.demo-page .site-header .nav-shell:hover .nav-link,
.demo-page .site-header .nav-shell:hover .nav-link > a,
.demo-page .site-header .nav-shell:focus-within .nav-link,
.demo-page .site-header .nav-shell:focus-within .nav-link > a,
.demo-page .site-header .nav-shell:has(.menu-trigger.is-open) .nav-link,
.demo-page .site-header .nav-shell:has(.menu-trigger.is-open) .nav-link > a {
  color: #0b1f33;
  text-shadow: none;
}

.demo-page .site-header .nav-link:hover,
.demo-page .site-header .menu-trigger:hover {
  color: var(--nav-hover);
  background: var(--nav-hover-bg);
}

/* Keep mega-menu text on navy/muted palette — do not inherit orange nav hover */
.demo-page .site-header .menu-trigger:hover > a {
  color: var(--nav-hover);
}

.demo-page .site-header .menu-trigger .mega-menu,
.demo-page .site-header .menu-trigger:hover .mega-menu {
  color: var(--mega-ink, var(--navy, #071e33));
  background: #fff;
}

.demo-page .site-header .mega-menu a.mega-item,
.demo-page .site-header .mega-menu a.mega-item strong {
  color: var(--mega-ink, var(--navy, #071e33));
}

.demo-page .site-header .mega-menu a.mega-item small {
  color: var(--mega-muted, #5e6a78);
}

.demo-page .site-header .mega-menu a.mega-item:hover strong,
.demo-page .site-header .mega-menu a.mega-item:focus-visible strong {
  color: var(--mega-accent, #ff5a24);
}

.demo-page .site-header .mega-menu a.mega-menu-all {
  color: var(--blue-dark, var(--blue, #0f6ea9));
}

.demo-page .site-header .nav-link.active {
  color: var(--nav-active);
  background: var(--nav-active-bg);
}

/* Hide header/mobile Book a Demo CTA on the demo/contact page */
.demo-page .site-header .demo-button,
.demo-page .mobile-menu a[href="contact.html"] {
  display: none !important;
}

.demo-page .site-header .demo-button:not(.btn-liquid) {
  background: var(--demo-accent);
  color: #fff;
}

.demo-page .site-header .demo-button:not(.btn-liquid):hover {
  background: var(--demo-accent-deep);
  box-shadow: 0 12px 32px rgba(255, 90, 36, 0.28);
}

/* ── Compact Hero ── */
.demo-hero--compact {
  padding-inline: 0;
}

.demo-hero--compact .demo-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: clamp(96px, 10vh, 118px) 0 clamp(8px, 1.2vh, 12px);
  text-align: center;
}

.demo-hero--compact .demo-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 14px);
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.demo-hero--compact .demo-hero h1,
.demo-hero--compact h1 {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  text-align: center;
  white-space: normal;
}

.demo-page .demo-hero--compact .demo-hero-lead,
.demo-page .demo-hero--centered .demo-hero-lead {
  width: 100%;
  margin-inline: auto;
  text-align: center;
  max-width: none;
}

.demo-hero-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--demo-muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
  text-align: left;
}

.demo-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 20px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--demo-accent, #ff5a24), var(--demo-accent-deep, #e84b18));
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 90, 36, 0.28);
  transition: box-shadow var(--motion, 280ms ease), transform 0.15s ease, background var(--motion, 280ms ease);
}

.demo-cta-primary:hover {
  background: linear-gradient(135deg, var(--demo-accent-deep, #e84b18), #c94412);
  box-shadow: 0 12px 32px rgba(255, 90, 36, 0.36);
  color: #fff;
}

.demo-cta-primary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo-hero--compact .demo-hero-mini {
  justify-content: flex-end;
  max-width: 280px;
}

/* ── Centered Hero ── */
.demo-hero {
  padding: 0;
  background: transparent;
}

.demo-hero--centered .demo-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 14px);
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding: clamp(96px, 10vh, 118px) 0 clamp(8px, 1.2vh, 12px);
  text-align: center;
}

.demo-hero-copy {
  width: 100%;
}

.demo-hero-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 18px;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-hero .eyebrow {
  margin: 0;
  font-size: var(--type-eyebrow, 12px);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-section-eyebrow, #ff5a24);
  white-space: nowrap;
}

.demo-hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--demo-text);
  white-space: nowrap;
}

.demo-hero-lead {
  margin: 0;
  max-width: 42ch;
  color: var(--demo-muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
  text-align: left;
}

.demo-hero-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: none;
}

.demo-mini-pill {
  padding: 7px 13px;
  border: 1px solid var(--demo-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--demo-muted);
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(16, 24, 32, 0.04);
}

/* ── Booking Stage ── */
.demo-booking-stage {
  position: relative;
  padding: 0 0 clamp(56px, 8vh, 80px);
  overflow: hidden;
  background: transparent;
}

.demo-booking-glow {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 0;
  width: min(820px, 72vw);
  height: min(820px, 85vh);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 90, 36, 0.12) 0%, rgba(255, 90, 36, 0.04) 38%, transparent 68%);
  filter: blur(48px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: demoGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes demoGlowPulse {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.96); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

/* Personalize — centered above form card */
.demo-personalize {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 2 * var(--page-gutter, 24px)));
  margin: 0 auto 28px;
  text-align: center;
}

.demo-personalize .demo-section-label {
  margin-bottom: 8px;
}

.demo-personalize .demo-section-title--quiet {
  margin-bottom: 18px;
}

.demo-section-label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-section-eyebrow, #ff5a24);
}

.demo-section-title--quiet {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--demo-text);
}

/* Product selection */
.demo-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.demo-product-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  padding: 14px 12px;
  border: 1px solid var(--demo-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  text-align: center;
  color: inherit;
  box-shadow: 0 2px 8px rgba(16, 24, 32, 0.03);
  transition: transform var(--motion), border-color var(--motion), background var(--motion), box-shadow var(--motion);
}

.demo-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 90, 36, 0.28);
  background: #fff;
  box-shadow: 0 8px 20px rgba(255, 90, 36, 0.08);
}

.demo-product-card.is-selected {
  border-color: rgba(255, 90, 36, 0.45);
  background: var(--demo-accent-soft);
  box-shadow: 0 6px 18px rgba(255, 90, 36, 0.1);
}

.demo-product-card strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--demo-text);
}

.demo-product-card span {
  color: var(--demo-muted);
  font-size: 11.5px;
  line-height: 1.3;
}

/* Three-column stage: How it works | Form | What you'll get */
.demo-booking-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  justify-content: center;
  gap: 0;
  align-items: start;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* Form is the sole column after side panels were removed */
.demo-booking-inner .demo-form-anchor {
  width: 100%;
  grid-column: 1;
}

.demo-side {
  padding-top: 28px;
}

.demo-side--how {
  text-align: left;
}

.demo-side--get {
  text-align: left;
}

/* Checklist */
.demo-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.demo-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--demo-muted);
  font-size: 13.5px;
  line-height: 1.4;
}

.demo-checklist li::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--demo-accent-soft);
  color: var(--demo-accent);
  font-size: 10px;
  font-weight: 800;
}

/* Compact workflow */
.demo-workflow-compact {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.demo-workflow-compact li:not(.demo-workflow-arrow) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--demo-muted);
  font-size: 13px;
  line-height: 1.35;
}

.demo-workflow-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--demo-accent-soft);
  color: var(--demo-accent);
  font-size: 11px;
  font-weight: 800;
}

.demo-workflow-arrow {
  padding: 0 0 0 6px;
  color: rgba(255, 90, 36, 0.45);
  font-size: 14px;
  line-height: 1;
  list-style: none;
}

/* ── Premium Form Card (visual hero) ── */
.demo-form-anchor {
  position: relative;
  opacity: 1;
  transform: none;
}

.demo-form-card {
  position: sticky;
  top: 96px;
  width: 100%;
  padding: clamp(36px, 4vw, 48px) clamp(32px, 4vw, 56px) clamp(40px, 4.5vw, 52px);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 28px;
  color: var(--form-ink);
  background: var(--form-white);
  box-shadow:
    0 4px 6px rgba(16, 24, 32, 0.04),
    0 20px 56px rgba(16, 24, 32, 0.1),
    0 40px 96px rgba(255, 90, 36, 0.1);
  transition: transform var(--motion), box-shadow var(--motion);
  animation: demoFormFloat 7s ease-in-out infinite;
}

.demo-form-card:hover {
  box-shadow:
    0 8px 12px rgba(16, 24, 32, 0.05),
    0 28px 72px rgba(16, 24, 32, 0.12),
    0 48px 110px rgba(255, 90, 36, 0.12);
}

@keyframes demoFormFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.demo-form-card-header {
  margin-bottom: clamp(24px, 3vw, 32px);
  text-align: center;
}

.demo-form-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-section-eyebrow, #ff5a24);
}

.demo-form-card h2 {
  margin: 0 0 10px;
  font-size: var(--type-section);
  font-weight: 800;
  line-height: var(--leading-section);
  color: var(--color-section-heading);
}

.demo-form-card-header > p:not(.demo-form-eyebrow) {
  margin: 0 auto;
  color: var(--form-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: none;
}

.demo-form {
  display: grid;
  gap: 22px;
}

.demo-field {
  position: relative;
}

.demo-field input,
.demo-field textarea {
  width: 100%;
  padding: 24px 16px 10px;
  border: 1px solid var(--form-line);
  border-radius: 12px;
  color: var(--form-ink);
  background: #fafbfc;
  font-size: 15px;
  outline: 0;
  transition: border-color var(--motion), box-shadow var(--motion), background var(--motion);
}

.demo-field textarea {
  min-height: 108px;
  padding-top: 28px;
  resize: vertical;
}

.demo-field label {
  position: absolute;
  top: 17px;
  left: 16px;
  color: var(--form-muted);
  font-size: 15px;
  font-weight: 500;
  pointer-events: none;
  transition: top var(--motion), font-size var(--motion), color var(--motion);
}

.demo-field input:focus,
.demo-field textarea:focus {
  border-color: var(--form-blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--form-blue-soft), 0 8px 24px rgba(255, 90, 36, 0.08);
}

.demo-field input:focus + label,
.demo-field input:not(:placeholder-shown) + label,
.demo-field textarea:focus + label,
.demo-field textarea:not(:placeholder-shown) + label {
  top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--form-blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-field-readonly input {
  color: var(--form-muted);
  background: #f3f5f7;
  cursor: default;
}

.demo-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff5a24);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow var(--motion), transform 0.15s ease;
  box-shadow: 0 10px 32px rgba(255, 90, 36, 0.32);
}

.demo-submit:hover:not(:disabled) {
  box-shadow: 0 16px 44px rgba(255, 90, 36, 0.44);
}

.demo-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.demo-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.demo-submit .demo-spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: demoSpin 0.7s linear infinite;
}

.demo-submit.is-loading .demo-spinner { display: block; }
.demo-submit.is-loading .demo-submit-text { opacity: 0.85; }

.demo-form-note {
  margin: 14px 0 0;
  color: var(--form-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.demo-form-note a {
  color: var(--form-blue);
  font-weight: 600;
  text-decoration: none;
}

.demo-form-note a:hover {
  text-decoration: underline;
}

/* ── Orange accents — match the Get a Catalogue pill ──
   styles.css paints .demo-form button blue and tints the panel cyan;
   these higher-specificity rules restore the brand orange. */
.demo-form.demo-form--premium {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 36, 0.12), transparent 36%),
    #fff;
}

.demo-form.demo-form--premium button.demo-submit {
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    var(--orange-hot, #ff8a3d),
    var(--orange, #ff5a24) 55%,
    var(--orange-deep, #e84b18)
  );
  box-shadow: 0 12px 28px rgba(255, 90, 36, 0.32);
}

.demo-form.demo-form--premium button.demo-submit:hover,
.demo-form.demo-form--premium button.demo-submit:focus-visible {
  background: linear-gradient(
    135deg,
    var(--orange-hot, #ff8a3d),
    var(--orange, #ff5a24) 55%,
    var(--orange-deep, #e84b18)
  );
  box-shadow: 0 16px 34px rgba(255, 90, 36, 0.4);
  transform: translateY(-1px);
}

.demo-form.demo-form--premium button.demo-submit:focus-visible {
  outline: 2px solid var(--orange-deep, #e84b18);
  outline-offset: 3px;
}

/* Orange keyline along the card top, like the catalogue accent */
.demo-form-card {
  border-top: 3px solid var(--orange, #ff5a24);
}

.demo-form-error {
  margin: 0 0 12px;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.demo-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.demo-product-grid.is-required {
  outline: 2px solid #ff5a24;
  outline-offset: 4px;
  border-radius: 12px;
}

@keyframes demoSpin {
  to { transform: rotate(360deg); }
}

/* Success */
.demo-form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.demo-form-card.is-success .demo-form,
.demo-form-card.is-success .demo-form-card-header {
  display: none;
}

.demo-form-card.is-success .demo-form-success {
  display: flex;
}

.demo-success-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--form-blue-soft);
  display: grid;
  place-items: center;
  animation: demoSuccessPop 0.5s var(--demo-ease);
}

.demo-success-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--form-blue);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: demoCheckDraw 0.6s var(--demo-ease) 0.2s forwards;
}

@keyframes demoSuccessPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes demoCheckDraw {
  to { stroke-dashoffset: 0; }
}

.demo-form-success h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--form-ink);
}

.demo-form-success p {
  margin: 0;
  color: var(--form-muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 360px;
}

.demo-form-success a {
  color: var(--form-blue);
  font-weight: 600;
  text-decoration: none;
}

.demo-form-success a:hover {
  text-decoration: underline;
}

/* Scroll reveal — visible by default; JS fades in when ready */
.demo-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--demo-ease), transform 0.6s var(--demo-ease);
}

html.js-ready .demo-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}

.demo-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*
  Footer: force full-bleed dark premium footer.
  Fixes white inset box + invisible white-on-white text + navy void below.
*/
.demo-page .site-footer {
  --footer-bg: #071e33;
  --footer-bg-accent: #0a2d4a;
  --footer-text: rgba(255, 255, 255, 0.92);
  --footer-muted: rgba(255, 255, 255, 0.68);
  --footer-faint: rgba(255, 255, 255, 0.42);
  --footer-divider: rgba(255, 255, 255, 0.14);
  --footer-link-hover: #7ec8f0;
  flex-shrink: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  position: relative;
  z-index: 2;
  color: var(--footer-text);
  background:
    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(15, 110, 169, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 40% at 96% 12%, rgba(58, 95, 191, 0.14), transparent 52%),
    linear-gradient(180deg, var(--footer-bg-accent) 0%, var(--footer-bg) 38%, #051525 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-page .site-footer::before {
  display: none;
}

.demo-page .site-footer .footer-shell,
.demo-page .site-footer .footer-shell.section-inner {
  width: min(var(--max), calc(100% - 2 * var(--page-gutter, 24px)));
  max-width: none;
  margin-inline: auto;
  background: transparent;
  color: inherit;
}

.demo-page .site-footer .footer-col-heading,
.demo-page .site-footer .footer-cta-heading,
.demo-page .site-footer .footer-brand,
.demo-page .site-footer .footer-links-grid strong {
  color: #fff;
}

.demo-page .site-footer .footer-links-grid a,
.demo-page .site-footer .footer-legal-links a,
.demo-page .site-footer .footer-copyright {
  color: var(--footer-muted);
}

.demo-page .site-footer .footer-links-grid a:hover,
.demo-page .site-footer .footer-legal-links a:hover {
  color: var(--footer-link-hover);
}

.demo-page .site-footer .footer-copyright {
  color: var(--footer-faint);
}

.demo-page .site-footer .footer-pill--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .demo-hero--compact .demo-hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .demo-hero--compact .demo-hero-mini {
    justify-content: flex-start;
    max-width: none;
  }

  .demo-hero h1 {
    white-space: normal;
  }

  .demo-hero-line {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .demo-hero-lead {
    text-align: center;
    max-width: 48ch;
  }

  .demo-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-booking-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    width: 100%;
  }

  .demo-booking-glow {
    top: 38%;
    width: min(600px, 90vw);
  }

  .demo-form-card {
    position: static;
  }

  .demo-form-anchor {
    order: -1;
  }

  .demo-side--get {
    order: 0;
  }

  .demo-side--how {
    order: 1;
  }

  .demo-side {
    padding-top: 0;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .demo-hero--centered .demo-hero-inner {
    padding: calc(max(56px, calc(48px + env(safe-area-inset-top, 0px))) + 8px) 0 10px;
    gap: 10px;
  }

  .demo-hero h1 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .demo-booking-stage {
    padding: 0 0 48px;
  }

  .demo-personalize {
    margin-bottom: 22px;
    width: 100%;
  }

  .demo-form-card {
    padding: 32px 24px 36px;
    border-radius: 22px;
  }

  .demo-form-card-header {
    text-align: left;
  }

  .demo-form-card-header > p:not(.demo-form-eyebrow) {
    margin: 0;
  }

  .demo-product-card {
    text-align: left;
    padding: 12px 14px;
  }

  .demo-submit {
    min-height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .demo-product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-booking-glow,
  .demo-form-card {
    animation: none;
  }

  .demo-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  .demo-success-icon,
  .demo-success-icon svg {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ============================================================
   Premium form — stacked labels, ITI phone, Tom Select
   ============================================================ */
.demo-form--premium {
  gap: 18px;
}

.demo-form--premium .demo-field--stacked {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-form--premium .demo-field--stacked > label {
  position: static;
  top: auto;
  left: auto;
  pointer-events: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--form-ink);
}

.demo-form--premium .demo-field--stacked input,
.demo-form--premium .demo-field--stacked textarea {
  padding: 14px 16px;
  min-height: 52px;
  border: 1px solid var(--form-line);
  border-radius: 12px;
  color: var(--form-ink);
  background: #fafbfc;
  font-size: 15px;
  line-height: 1.4;
  transition: border-color var(--motion), box-shadow var(--motion), background var(--motion);
}

.demo-form--premium .demo-field--stacked textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}

.demo-form--premium .demo-field--stacked input::placeholder,
.demo-form--premium .demo-field--stacked textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.demo-form--premium .demo-field--stacked input:focus,
.demo-form--premium .demo-field--stacked textarea:focus {
  border-color: var(--form-blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--form-blue-soft), 0 8px 24px rgba(255, 90, 36, 0.08);
}

.demo-form--premium .demo-field.has-error input,
.demo-form--premium .demo-field.has-error textarea,
.demo-form--premium .demo-field.has-error .iti__tel-input,
.demo-form--premium .demo-field.has-error .ts-control {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.demo-form--premium .demo-field.is-valid:not(.has-error) input,
.demo-form--premium .demo-field.is-valid:not(.has-error) .iti__tel-input {
  border-color: #16a34a;
}

.demo-field-error {
  margin: 0;
  color: #b91c1c;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.demo-field-error[hidden] {
  display: none !important;
}

.demo-message-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 1.2em;
}

.demo-message-meta .demo-field-error {
  flex: 1;
}

.demo-char-count {
  flex-shrink: 0;
  margin-left: auto;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.demo-char-count.is-near-limit {
  color: #d97706;
}

.demo-char-count.is-over {
  color: #b91c1c;
}

/* Phone + intl-tel-input v25
   Note: .demo-form button in styles.css styles ALL form buttons as blue pills —
   that hits .iti__selected-country. Reset + contain the country control here. */
.demo-phone-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

.demo-form--premium .demo-field--phone .iti,
.demo-form--premium .demo-field--phone .iti.demo-iti {
  width: 100%;
  display: block;
  overflow: visible;
}

/* Do not use padding shorthand — ITI sets padding-left inline for separateDialCode */
.demo-form--premium .demo-field--phone .iti__tel-input,
.demo-form--premium .demo-field--stacked .iti__tel-input {
  width: 100%;
  box-sizing: border-box;
  padding-top: 14px;
  padding-right: 44px;
  padding-bottom: 14px;
  /* Fallback until ITI measures the country control; JS overwrites padding-left */
  padding-left: 96px;
  min-height: 52px;
  border: 1px solid var(--form-line);
  border-radius: 12px;
  color: var(--form-ink);
  background: #fafbfc;
  font-size: 15px;
  line-height: 1.4;
}

.demo-form--premium .demo-field--phone .iti__tel-input:focus {
  border-color: var(--form-blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--form-blue-soft), 0 8px 24px rgba(255, 90, 36, 0.08);
  outline: 0;
}

.demo-form--premium .demo-field--phone .iti__country-container {
  left: 0;
  right: auto;
  z-index: 5;
  padding: 4px;
  overflow: visible;
}

/* Undo global .demo-form button (blue pill / min-height 52 / white text) */
.demo-form--premium .demo-field--phone .iti__selected-country,
.demo-form.demo-form--premium .demo-field--phone button.iti__selected-country {
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--form-ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.demo-form--premium .demo-field--phone .iti__selected-country:hover,
.demo-form.demo-form--premium .demo-field--phone button.iti__selected-country:hover {
  background: rgba(16, 24, 32, 0.05);
  transform: none;
  color: var(--form-ink);
}

.demo-form--premium .demo-field--phone .iti__selected-country:focus-visible {
  outline: 2px solid var(--form-blue);
  outline-offset: 1px;
}

.demo-form--premium .demo-field--phone .iti__selected-country-primary {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  padding: 0 8px 0 10px;
  border-radius: 8px;
  background: transparent;
}

.demo-form--premium .demo-field--phone .iti__selected-dial-code {
  margin-left: 6px;
  color: var(--form-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.85;
}

.demo-form--premium .demo-field--phone .iti__arrow {
  margin-left: 6px;
  border-top-color: #64748b;
  opacity: 0.9;
}

/* Soft divider between dial code and number */
.demo-form--premium .demo-field--phone .iti__selected-country::after {
  content: "";
  display: block;
  width: 1px;
  height: 22px;
  margin-left: 2px;
  margin-right: 2px;
  background: rgba(16, 24, 32, 0.12);
  flex-shrink: 0;
}

.demo-form--premium .demo-field--phone .iti__dropdown-content {
  border-radius: 12px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  box-shadow: 0 16px 40px rgba(16, 24, 32, 0.14);
  z-index: 40;
}

.demo-form--premium .demo-field--phone .iti__search-input {
  border-radius: 8px;
  border: 1px solid var(--form-line);
  padding: 10px 12px;
}

.demo-phone-valid {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  pointer-events: none;
  line-height: 1;
}

.demo-phone-valid[hidden] {
  display: none !important;
}

/* Tom Select product dropdown */
.demo-form--premium .demo-field--product .ts-wrapper {
  width: 100%;
}

.demo-form--premium .demo-field--product .ts-control {
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--form-line);
  border-radius: 12px;
  background: #fafbfc;
  box-shadow: none;
  color: var(--form-ink);
  font-size: 15px;
  align-items: center;
  transition: border-color var(--motion), box-shadow var(--motion), background var(--motion);
}

.demo-form--premium .demo-field--product .ts-wrapper.focus .ts-control,
.demo-form--premium .demo-field--product .ts-control:focus {
  border-color: var(--form-blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--form-blue-soft);
}

.demo-form--premium .demo-field--product .ts-control input {
  font-size: 15px;
  color: var(--form-ink);
}

.demo-form--premium .demo-field--product .ts-control .item {
  color: var(--form-ink);
  font-weight: 600;
}

.demo-form--premium .demo-field--product .ts-dropdown {
  margin-top: 6px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16, 24, 32, 0.14);
  z-index: 50;
  overflow: hidden;
}

.demo-form--premium .demo-field--product .ts-dropdown .option {
  padding: 11px 14px;
  font-size: 14.5px;
}

.demo-form--premium .demo-field--product .ts-dropdown .option.active,
.demo-form--premium .demo-field--product .ts-dropdown .option:hover {
  background: var(--form-blue-soft);
  color: var(--form-ink);
}

.demo-form--premium .demo-field--product .ts-dropdown .option.selected {
  background: rgba(255, 90, 36, 0.12);
  font-weight: 700;
}

/* Multi-select: checkbox + label + brand logo per option */
.demo-form--premium .demo-field--product .ts-dropdown .option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-form--premium .demo-field--product .ts-dropdown .option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--orange, #ff5a24);
  cursor: pointer;
}

.demo-form--premium .demo-field--product .demo-ts-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.demo-form--premium .demo-field--product .demo-ts-logo {
  height: 18px;
  width: auto;
  max-width: 72px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.12);
  transform-origin: center center;
}

/* Selected chips in the control */
.demo-form--premium .demo-field--product .ts-control .item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 10px;
  border-radius: 999px;
  background: rgba(255, 90, 36, 0.1);
  border: 1px solid rgba(255, 90, 36, 0.25);
}

.demo-form--premium .demo-field--product .ts-control .item .remove {
  border-left: none;
  padding: 0 4px;
  border-radius: 999px;
  color: var(--orange, #ff5a24);
}

.demo-form--premium .demo-field--product .ts-control .item .remove:hover {
  background: rgba(255, 90, 36, 0.18);
}

.demo-form-card:has(.demo-form--premium) {
  overflow: visible;
}

@media (max-width: 720px) {
  .demo-form--premium .demo-field--phone .iti__tel-input {
    font-size: 16px; /* avoid iOS zoom */
  }

  .demo-message-meta {
    flex-wrap: wrap;
  }
}

/* Contact hero + form share one centered column; override mobile-hero left alignment */
@media (max-width: 768px) {
  .demo-page .demo-booking-stage {
    padding-inline: 0 !important;
  }

  .demo-page .demo-hero.demo-hero--compact.demo-hero--centered {
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
  }

  .demo-page .demo-hero.demo-hero--compact.demo-hero--centered .demo-hero-inner {
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    padding-inline: 0 !important;
    padding-top: calc(max(56px, calc(48px + env(safe-area-inset-top, 0px))) + 8px) !important;
    padding-bottom: 10px !important;
    max-width: none !important;
    min-height: 0 !important;
  }

  .demo-page .demo-hero.demo-hero--compact.demo-hero--centered .demo-hero-copy {
    justify-items: center !important;
    text-align: center !important;
    max-width: none !important;
    gap: 10px !important;
  }

  .demo-page .demo-hero.demo-hero--compact.demo-hero--centered .demo-hero h1,
  .demo-page .demo-hero.demo-hero--compact.demo-hero--centered .demo-hero-lead {
    text-align: center !important;
    width: 100%;
    max-width: none !important;
  }
}
