/* ============================================================
   See Your Home in Lights — Stylesheet
   Design intent: not a marketing page. A service tool for people
   about to send photos of their actual house. Feels considered,
   calm, trustworthy. L4Y brand DNA (navy + cyan + Poppins) but
   leaning editorial rather than retail.
   ============================================================ */

:root {
  /* Palette */
  --navy:          #0F1E31;
  --navy-deeper:   #0A1626;
  --navy-overlay:  #142A44;
  --cyan:          #06A2F1;
  --cyan-soft:     #4EC2F6;
  --warm:          #F5B316;
  --surface:       #F4F6F9;  /* cool, neutral background for sections — subtle grey, no warmth */
  --cream:         #F4F6F9;  /* kept as alias for backwards compat, same cool grey */
  --paper:         #FFFFFF;
  --ink:           #1A1A1A;
  --ink-soft:      #4A5568;
  --ink-muted:     #7A8FA8;
  --rule:          #E6DED1;  /* warm rule to pair with cream */
  --rule-dark:     rgba(255,255,255,0.08);
  --error:         #D14343;
  --success:       #2E8540;

  /* Type */
  --font-ui: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Space scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Container */
  --container: 720px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(6,162,241,0.3);
  transition: border-color 160ms ease;
}
a:hover { border-bottom-color: var(--cyan); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ============================================================
   Top trust bar — cyan band matching L4Y main site
   ============================================================ */
.trust-bar {
  background: var(--cyan);
  padding: 8px 0;
  text-align: center;
}
.trust-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.trust-bar-item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}
.trust-bar-sep {
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* ============================================================
   Nav ribbon
   ============================================================ */
.ribbon {
  background: var(--navy-deeper);
  border-bottom: 1px solid var(--rule-dark);
  padding: 10px 0;
}
.ribbon-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-muted);
}
.ribbon-link {
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
}
.ribbon-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.ribbon-divider { opacity: 0.4; }

/* ============================================================
   Hero — the brand moment. Big editorial headline on navy.
   ============================================================ */
.hero {
  background: var(--navy);
  padding: var(--sp-8) 0 var(--sp-7);
  color: #fff;
  text-align: left;
}
.hero-logo {
  display: block;
  width: 220px;
  height: auto;
  margin: 0 0 var(--sp-7) 0;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  padding: 4px 10px;
  border: 1px solid var(--warm);
  border-radius: 2px;
  margin-bottom: var(--sp-5);
}
.hero-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 var(--sp-6) 0;
  color: #fff;
}
.hero-title-accent {
  font-style: italic;
  font-weight: 600;
  color: var(--cyan);
}
.hero-lead {
  font-size: 17px;
  line-height: 1.55;
  color: #D4DDE8;
  max-width: 580px;
  margin: 0 0 var(--sp-7) 0;
}

/* Price block — hero's hardest-working element */
.price-block {
  display: flex;
  align-items: stretch;
  background: var(--navy-overlay);
  border: 1px solid rgba(6,162,241,0.25);
  border-radius: 4px;
  margin: 0 0 var(--sp-5) 0;
  overflow: hidden;
}
.price-cell {
  flex: 1;
  padding: var(--sp-5) var(--sp-5);
  text-align: left;
}
.price-cell-credit { background: rgba(6,162,241,0.08); }
.price-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--sp-2);
}
.price-cell-credit .price-label { color: var(--warm); }
.price-value {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.price-note {
  font-size: 12px;
  line-height: 1.5;
  color: #B8C7D8;
}
.price-divider {
  width: 1px;
  background: rgba(255,255,255,0.1);
  flex: 0 0 1px;
}

/* ============================================================
   Before/After slider — the hero's hardest-working element.
   Drag the handle to reveal the design underneath.
   ============================================================ */
.ba-slider {
  margin: 0 0 var(--sp-6) 0;
  padding: 0;
}
.ba-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  user-select: none;
  touch-action: none; /* prevent page scroll while dragging on touch */
  background: #0A1626;
  cursor: ew-resize;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
.ba-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%; /* initial reveal position */
  overflow: hidden;
  will-change: width;
}
.ba-before-wrap .ba-before {
  /* The "before" image stays at the full wrap size inside its clipping wrapper.
     Width is set relative to the wrap (not the before-wrap) so cropping the wrap
     reveals pixels of the full image, not a squashed version. */
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  min-width: 100%;
  object-fit: cover;
}

/* Labels in the top corners */
.ba-label {
  position: absolute;
  top: var(--sp-3);
  padding: 4px 10px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 22, 38, 0.75);
  backdrop-filter: blur(4px);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.ba-label-before { left: var(--sp-3); }
.ba-label-after  { right: var(--sp-3); }

/* Vertical handle line + draggable grip */
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* matches initial reveal */
  width: 44px;
  margin-left: -22px;
  cursor: ew-resize;
  z-index: 3;
  touch-action: none;
  will-change: left;
}
.ba-handle:focus { outline: none; }
.ba-handle:focus-visible .ba-handle-grip {
  box-shadow: 0 0 0 3px var(--cyan), 0 2px 8px rgba(0,0,0,0.4);
}
.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: box-shadow 160ms ease;
}
.ba-handle-grip svg {
  width: 24px;
  height: 24px;
}
.ba-wrap:hover .ba-handle-grip,
.ba-handle:active .ba-handle-grip {
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.ba-caption {
  margin: var(--sp-3) 0 0 0;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============================================================
   Hero Trustpilot block — prominent social proof sitting right
   under the price block. Trustpilot green stars against navy.
   ============================================================ */
.hero-tp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin: var(--sp-4) 0 var(--sp-5);
  padding: 14px var(--sp-5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease, border-color 160ms ease;
}
.hero-tp:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.hero-tp-stars {
  display: inline-flex;
  gap: 2px;
}
.hero-tp-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #00B67A; /* Trustpilot green square */
  border-radius: 2px;
  color: #fff;
}
.hero-tp-star svg {
  width: 18px;
  height: 18px;
  display: block;
}
.hero-tp-text {
  font-size: 14px;
  color: #fff;
  display: inline-flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-tp-text strong { font-weight: 700; }
.hero-tp-sep { opacity: 0.4; }
.hero-tp-brand {
  font-weight: 700;
  color: #00B67A;
}

.hero-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--rule-dark);
}

/* ============================================================
   Form area — switches to warm cream background. The deliberate
   switch signals: "the form is where you do the work; the dark
   above was the invitation".
   ============================================================ */
.form-wrap {
  background: var(--cream);
  padding: var(--sp-8) 0 var(--sp-8);
  min-height: 60vh;
}

.form {
  display: block;
}

/* Progress bar */
.progress {
  list-style: none;
  margin: 0 0 var(--sp-7) 0;
  padding: 0;
  display: flex;
  gap: var(--sp-2);
  counter-reset: step;
}
.progress-step {
  flex: 1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding: var(--sp-3) 0;
  border-top: 2px solid var(--rule);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: border-color 300ms ease, color 300ms ease;
}
.progress-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--rule);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  transition: background 300ms ease, color 300ms ease;
}
.progress-step.is-current {
  color: var(--navy);
  border-top-color: var(--navy);
}
.progress-step.is-current span {
  background: var(--navy);
  color: #fff;
}
.progress-step.is-done {
  color: var(--navy);
  border-top-color: var(--navy);
}
.progress-step.is-done span {
  background: var(--cyan);
  color: #fff;
}

/* Steps */
.step {
  display: block;
}
.step[hidden] { display: none; }

.step-head {
  margin-bottom: var(--sp-7);
}
.step-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin: 0 0 var(--sp-3) 0;
}
.step-sub {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 540px;
}

/* Fields */
.field {
  margin-bottom: var(--sp-7);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.field-row .field { margin-bottom: 0; }

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--sp-3);
}
.field-optional {
  font-weight: 400;
  color: var(--ink-muted);
  font-size: 13px;
}
.field-required {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 13px;
}
.field-help {
  font-size: 13px;
  color: var(--ink-soft);
  margin: var(--sp-2) 0 0 0;
  line-height: 1.5;
}
.field-error {
  font-size: 13px;
  color: var(--error);
  margin: var(--sp-2) 0 0 0;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  appearance: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,30,49,0.08);
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* ============================================================
   Upload zone — three-slot layout for up to 3 photos.
   First slot = required (solid border); optional slots = dashed, lighter.
   ============================================================ */
.photo-grid {
  display: flex;
  gap: var(--sp-3);
}
.photo-grid .upload-slot {
  flex: 1 1 0;
  min-width: 0;
}
.upload {
  position: relative;
  border: 2px dashed var(--navy);
  border-radius: 6px;
  background: var(--paper);
  transition: border-color 160ms ease, background 160ms ease;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.upload-slot[data-slot="2"],
.upload-slot[data-slot="3"] {
  border-color: rgba(15,30,49,0.3);
}
.upload:hover,
.upload.is-dragover {
  border-color: var(--cyan);
  background: #FBFDFF;
}
.upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.upload-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--sp-3);
  text-align: center;
  pointer-events: none;
}
.upload-icon {
  width: 28px;
  height: 28px;
  color: var(--navy);
  margin: 0 auto var(--sp-2);
  opacity: 0.75;
}
.upload-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 var(--sp-1) 0;
}
.upload-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
}
.upload-preview {
  position: absolute;
  inset: 0;
  padding: 0;
}
.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.upload-change {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  background: rgba(15,30,49,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.upload-change:hover { background: var(--navy); }

/* ============================================================
   Pill group (multi-select checkboxes rendered as pills)
   ============================================================ */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.pill-group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
}
.pill:hover { border-color: var(--navy); }
.pill-group input[type="checkbox"]:checked + .pill {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.pill-group input[type="checkbox"]:focus-visible + .pill {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ============================================================
   Choice grid (radio buttons rendered as larger cards)
   ============================================================ */
.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.choice-grid > label {
  flex: 1 1 160px;
  min-width: 0;
}
.choice-grid-compact > label {
  flex: 1 1 140px;
}
.choice-grid input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice {
  display: block;
  padding: var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  transition: all 160ms ease;
}
.choice:hover { border-color: var(--navy); transform: translateY(-1px); }
.choice-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.choice-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.choice-unsure {
  background: rgba(245,179,22,0.08);
  border-color: rgba(245,179,22,0.4);
}
.choice-grid input[type="radio"]:checked + .choice {
  background: var(--navy);
  border-color: var(--navy);
}
.choice-grid input[type="radio"]:checked + .choice .choice-name {
  color: #fff;
}
.choice-grid input[type="radio"]:checked + .choice .choice-desc {
  color: #B8C7D8;
}
.choice-grid input[type="radio"]:focus-visible + .choice {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ============================================================
   Swatch group (colour radio with visual sample)
   ============================================================ */
.swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.swatch-group input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 16px 10px 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: all 160ms ease;
}
.swatch:hover { border-color: var(--navy); }
.swatch-dot {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(0,0,0,0.5);
}
.swatch-warm { background: radial-gradient(circle at 30% 30%, #FFE4A0, #F5B316); }
.swatch-ice  { background: radial-gradient(circle at 30% 30%, #FFFFFF, #C8E4F5); }
.swatch-multi { background: conic-gradient(from 0deg, #E63238, #F5B316, #2E8540, #06A2F1, #8B5CF6, #E63238); }
.swatch-mix  { background: linear-gradient(135deg, #F5B316 0 50%, #C8E4F5 50% 100%); }
.swatch-unsure { background: rgba(245,179,22,0.15); color: var(--warm); }

.swatch-group input[type="radio"]:checked + .swatch {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.swatch-group input[type="radio"]:focus-visible + .swatch {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ============================================================
   Honeypot — hidden from real users, visible to bots
   ============================================================ */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   Disclosure block — set expectations before submit
   ============================================================ */
.disclosure {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--navy);
  padding: var(--sp-5);
  border-radius: 3px;
  margin-bottom: var(--sp-5);
}
.disclosure-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 var(--sp-3) 0;
  letter-spacing: 0.02em;
}
.disclosure-list {
  margin: 0;
  padding-left: var(--sp-4);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.disclosure-list li { margin-bottom: var(--sp-2); }
.disclosure-list li:last-child { margin-bottom: 0; }
.disclosure-list strong { color: var(--navy); }

/* Consent */
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0 0;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--navy);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 160ms ease;
  text-decoration: none;
  min-height: 48px;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--navy-deeper); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

.btn-submit { min-width: 260px; }
.btn-loader {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.btn-loader-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: dot-pulse 1.2s infinite ease-in-out;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Step actions row */
.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule);
}
.step-actions-submit { justify-content: space-between; }
.step-actions .btn-ghost { padding-left: 20px; padding-right: 20px; }

.form-error {
  background: rgba(209,67,67,0.08);
  border: 1px solid rgba(209,67,67,0.3);
  color: var(--error);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 3px;
  margin-top: var(--sp-4);
  font-size: 14px;
  font-weight: 500;
}

/* ============================================================
   Success state
   ============================================================ */
/* Full-page overlay: covers the entire viewport, hiding
   everything behind it. Visitor sees only the success message.
   The [hidden] rule MUST come before the main .success-overlay
   rule, OR be more specific, otherwise display:flex overrides
   the browser's default `hidden` behaviour and the overlay
   shows on page load. */
.success-overlay[hidden] { display: none !important; }
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-5) var(--sp-4);
  overflow-y: auto;
}
.success-overlay-inner {
  text-align: center;
  max-width: 560px;
  width: 100%;
  margin: auto;
}
.success-mark {
  color: var(--success);
  width: 88px;
  height: 88px;
  margin: 0 auto var(--sp-5);
}
.success-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 var(--sp-4) 0;
}
.success-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 var(--sp-4) 0;
}
.success-lead strong { color: var(--navy); }
.success-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 var(--sp-6) 0;
}

/* When success is showing, lock body scroll so nothing can be
   revealed behind the overlay */
body.success-active {
  overflow: hidden;
}

/* ============================================================
   Trust / FAQ section
   ============================================================ */
.trust {
  background: var(--navy);
  color: #D4DDE8;
  padding: var(--sp-8) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}
.trust h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 var(--sp-2) 0;
}
.trust p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: #B8C7D8;
}

/* ============================================================
   L4Y trust icons row — matches main site pattern
   ============================================================ */
.l4y-trust-icons {
  background: var(--paper);
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--rule-light);
}
.trust-icons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5);
  justify-content: center;
  text-align: center;
}
.trust-icon-cell {
  flex: 1 1 240px;
  max-width: 320px;
  padding: 0 var(--sp-3);
}
.trust-icon-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sp-3);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-icon-mark svg {
  width: 100%;
  height: 100%;
}
.trust-icon-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.trust-icon-sub {
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============================================================
   Trustpilot band — green mark + text
   ============================================================ */
.l4y-trustpilot {
  background: #fff;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}
.tp-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  text-align: center;
}
.tp-stars {
  display: inline-flex;
  gap: 3px;
  color: #00B67A; /* Trustpilot green */
}
.tp-stars svg {
  width: 22px;
  height: 22px;
}
.tp-text {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.tp-text a {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px solid var(--navy);
}
.tp-text a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ============================================================
   Full footer — multi-column
   ============================================================ */
.footer {
  background: var(--navy-deeper);
  color: var(--ink-muted);
  padding: var(--sp-7) 0 var(--sp-5);
  border-top: 1px solid var(--rule-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.footer-brand .footer-logo {
  width: 160px;
  height: auto;
  margin-bottom: var(--sp-3);
  border-radius: 3px;
}
.footer-blurb {
  margin: 0 0 var(--sp-4) 0;
  font-size: 13px;
  line-height: 1.6;
  color: #B8C7D8;
  max-width: 320px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  transition: background 160ms ease;
}
.footer-social a svg {
  width: 18px;
  height: 18px;
}
.footer-social a:hover {
  background: var(--cyan);
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-3) 0;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a,
.footer a {
  color: #B8C7D8;
  border-bottom: 1px solid transparent;
  font-size: 13px;
}
.footer-col a:hover,
.footer a:hover {
  color: var(--cyan);
}
.footer-legal {
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule-dark);
  text-align: center;
}
.footer-legal p {
  margin: 4px 0;
  font-size: 11px;
  color: var(--ink-muted);
  opacity: 0.75;
}

/* ============================================================
   Mobile adjustments
   ============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 var(--sp-4); }
  .hero { padding: var(--sp-7) 0 var(--sp-6); }
  .hero-logo { margin-bottom: var(--sp-6); }
  .form-wrap { padding: var(--sp-6) 0; }
  .ba-label { font-size: 9px; padding: 3px 8px; }
  .ba-handle-grip { width: 40px; height: 40px; }
  .ba-handle-grip svg { width: 20px; height: 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: var(--sp-5); }
  .step-actions-submit { flex-direction: column-reverse; }
  .step-actions-submit .btn { width: 100%; }
  .progress-step { font-size: 9px; }
  .progress-step span { width: 18px; height: 18px; font-size: 10px; }

  /* Price block stacks on narrow */
  .price-block { flex-direction: column; }
  .price-cell { padding: var(--sp-4) var(--sp-5); }
  .price-divider { width: 100%; height: 1px; }
  .price-value { font-size: 28px; }

  /* Photo grid stays 3-column on mobile but tighter */
  .photo-grid { gap: var(--sp-2); }
  .upload-icon { width: 22px; height: 22px; margin-bottom: 4px; }

  /* Trust bar: tighter on mobile, allow wrap */
  .trust-bar-inner { gap: var(--sp-2); }
  .trust-bar-item { font-size: 10px; letter-spacing: 0.08em; }
  .trust-bar-sep { display: none; }

  /* Trust icons stack */
  .trust-icons-grid { gap: var(--sp-6); }
  .trust-icon-cell { flex: 1 1 100%; }

  /* Hero Trustpilot: tighter spacing, slightly smaller stars */
  .hero-tp { padding: 12px var(--sp-4); gap: var(--sp-2); }
  .hero-tp-star { width: 20px; height: 20px; }
  .hero-tp-star svg { width: 15px; height: 15px; }
  .hero-tp-text { font-size: 12px; }

  /* Footer stacks single-column */
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }

  /* Success overlay: smaller type on narrow */
  .success-title { font-size: 28px; }
  .success-lead { font-size: 16px; }
  .success-mark { width: 72px; height: 72px; }
  .upload-main { font-size: 12px; }
  .upload-sub { font-size: 10px; }
}

/* ============================================================
   Accessibility: respect reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
