:root {
  --cream: #f5efe6;
  --cream-light: #faf6ef;
  --forest: #2e4a3b;
  --forest-dark: #21372b;
  --brass: #b8893a;
  --oak: #9a6e3f;
  --ink: #1f2421;
  --soft-ink: #3a413d;
  --line: #d9cfbf;
}

html { font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }
body { min-height: 100vh; color: var(--ink); }
h1, h2, h3, .font-serif { font-family: "Fraunces", ui-serif, Georgia, serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.funnel-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(245,239,230,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-lockup img { width: 3.25rem; height: 3.25rem; border-radius: .75rem; flex: 0 0 auto; }
.brand-lockup strong { display: block; font-family: "Fraunces", ui-serif, Georgia, serif; font-size: 1.02rem; line-height: 1.1; }
.brand-lockup small { display: block; color: var(--soft-ink); font-size: .78rem; margin-top: .15rem; }
.exit-link { color: var(--forest); font-weight: 700; font-size: .9rem; text-decoration: none; }
.exit-link:hover { color: var(--brass); }

.funnel-shell { min-height: 100vh; padding-top: 4.95rem; background: var(--cream); overflow: hidden; }
.intro-screen, .journey-screen, .success-screen { min-height: calc(100vh - 4.95rem); }
.intro-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, .86fr);
  background: var(--forest-dark);
}

.intro-image { position: relative; min-height: calc(100vh - 4.95rem); overflow: hidden; }
.intro-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(33,55,43,.08), rgba(33,55,43,.72));
}
.intro-image img, .journey-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

.intro-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  padding: clamp(2rem, 6vw, 5rem);
  color: var(--cream);
}

.eyebrow {
  color: var(--brass);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.intro-content h1, .success-inner h1 {
  max-width: 11ch;
  font-size: clamp(2.45rem, 5vw, 5rem);
  line-height: 1.02;
  font-weight: 700;
}

.intro-copy { max-width: 42rem; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.7; color: rgba(245,239,230,.84); }
.trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: .4rem 0 0; padding: 0; list-style: none; }
.trust-row li {
  border: 1px solid rgba(217,207,191,.22);
  background: rgba(250,246,239,.08);
  border-radius: .75rem;
  padding: .85rem .95rem;
  color: rgba(250,246,239,.9);
  font-size: .92rem;
}

.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  border-radius: .55rem;
  padding: .9rem 1.35rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.primary-btn { align-self: flex-start; background: var(--brass); color: var(--ink); box-shadow: 0 16px 34px rgba(0,0,0,.22); }
.primary-btn:hover { background: #c79647; transform: translateY(-1px); }
.primary-btn.compact { min-height: 2.9rem; padding: .78rem 1.2rem; }
.secondary-btn { background: transparent; color: var(--forest); border-color: var(--forest); }
.secondary-btn:hover { background: var(--forest); color: var(--cream); }
.as-link { text-decoration: none; }
.microcopy { color: rgba(245,239,230,.72); font-size: .9rem; }

.resume-panel {
  max-width: 32rem;
  padding: .95rem;
  border: 1px solid rgba(217,207,191,.24);
  border-radius: .85rem;
  background: rgba(250,246,239,.08);
}
.resume-panel p { margin-bottom: .75rem; color: rgba(250,246,239,.9); font-weight: 700; }
.resume-panel div { display: flex; gap: .7rem; flex-wrap: wrap; }
.resume-panel .secondary-btn { color: var(--cream); border-color: rgba(245,239,230,.55); }

.journey-screen { display: grid; grid-template-columns: minmax(20rem, .74fr) minmax(0, 1fr); background: var(--cream-light); }
.journey-visual { position: relative; min-height: calc(100vh - 4.95rem); background: var(--forest-dark); overflow: hidden; }
.journey-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33,55,43,.08), rgba(33,55,43,.7));
}
.visual-note {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  color: var(--cream);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.visual-note span { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brass); font-weight: 700; }
.visual-note strong { font-family: "Fraunces", ui-serif, Georgia, serif; font-size: clamp(1.35rem, 2vw, 2rem); }

.journey-panel {
  min-height: calc(100vh - 4.95rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.2rem, 4vw, 4rem);
}
.progress-wrap { height: .42rem; background: rgba(46,74,59,.16); border-radius: 99px; overflow: hidden; margin-bottom: 2rem; }
.progress-wrap span { display: block; height: 100%; width: 10%; background: var(--brass); border-radius: inherit; transition: width .25s ease; }
.step-root { outline: none; animation: rise .24s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.step-kicker { color: var(--brass); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
.step-title { margin-top: .75rem; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; font-weight: 650; color: var(--ink); }
.step-helper { margin-top: 1rem; max-width: 48rem; color: var(--soft-ink); font-size: 1rem; line-height: 1.65; }
.options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.75rem; }
.options-grid.visual-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-card {
  min-height: 4.5rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: rgba(245,239,230,.76);
  color: var(--ink);
  padding: 1rem;
  text-align: left;
  box-shadow: 0 12px 32px rgba(31,36,33,.06);
}
.option-card:hover, .option-card:focus-visible { border-color: var(--brass); outline: 3px solid rgba(184,137,58,.18); }
.option-card.is-selected { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.option-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .55rem; margin-bottom: .85rem; background: var(--line); }
.option-title { display: block; font-weight: 700; line-height: 1.25; }
.option-note { display: block; margin-top: .25rem; font-size: .84rem; color: inherit; opacity: .76; }

.input-wrap { margin-top: 1.75rem; display: grid; gap: 1rem; }
.field-label { display: grid; gap: .45rem; color: var(--ink); font-weight: 700; }
.field-label span { font-size: .9rem; }
.field, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--cream);
  color: var(--ink);
  padding: .95rem 1rem;
  outline: none;
}
.textarea { min-height: 12rem; resize: vertical; line-height: 1.6; }
.field:focus, .textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(184,137,58,.18); }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  padding: .55rem .85rem;
  font-weight: 700;
  color: var(--forest);
  font-size: .88rem;
}
.chip:hover { border-color: var(--brass); color: var(--oak); }
.chip.is-selected { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 1.75rem; }
.contact-grid .wide { grid-column: 1 / -1; }
.choice-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .55rem; }
.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; color: var(--soft-ink); line-height: 1.5; }
.consent input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: var(--forest); }

.form-error { margin-top: 1.25rem; padding: .85rem 1rem; border-radius: .7rem; background: #fff4ed; color: #7c2d12; border: 1px solid #fed7aa; font-weight: 700; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.controls .secondary-btn[disabled] { opacity: .45; pointer-events: none; }

.success-screen {
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
  background:
    linear-gradient(180deg, rgba(33,55,43,.92), rgba(33,55,43,.96)),
    url("/images/gallery/berkshire-bespoke-builders-shaker-kitchen-extension-bifold-doors-berkshire.webp") center/cover;
}
.success-inner { width: min(72rem, 100%); color: var(--cream); }
.success-inner h1 { max-width: 13ch; }
.summary-card {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  padding: 1rem;
  border: 1px solid rgba(217,207,191,.25);
  border-radius: 1rem;
  background: rgba(250,246,239,.1);
}
.summary-item { border: 1px solid rgba(217,207,191,.2); border-radius: .75rem; padding: .9rem; }
.summary-item span { display: block; color: var(--brass); font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.summary-item strong { display: block; margin-top: .35rem; color: var(--cream); }
.roadmap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; margin-top: 1.5rem; }
.roadmap span { border-top: 2px solid var(--brass); padding-top: .7rem; font-size: .82rem; color: rgba(245,239,230,.82); font-weight: 700; }
.trust-reminder { margin-top: 1.5rem; color: rgba(245,239,230,.76); line-height: 1.65; }
.success-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.success-actions .secondary-btn { color: var(--cream); border-color: rgba(245,239,230,.42); }
.success-actions .secondary-btn:hover { background: rgba(250,246,239,.12); }

@media (max-width: 900px) {
  .funnel-header { position: sticky; }
  .brand-lockup small { display: none; }
  .funnel-shell { padding-top: 0; }
  .intro-screen, .journey-screen { grid-template-columns: 1fr; }
  .intro-screen { background: var(--forest-dark); }
  .intro-image, .journey-visual { min-height: 32vh; max-height: 38vh; }
  .intro-image::after { background: linear-gradient(180deg, rgba(33,55,43,.05), rgba(33,55,43,.86)); }
  .intro-content { padding: 1.5rem; }
  .intro-content h1, .success-inner h1 { font-size: clamp(2.25rem, 11vw, 3.8rem); }
  .journey-panel { min-height: auto; padding: 1.3rem; justify-content: flex-start; }
  .options-grid, .options-grid.visual-options, .contact-grid, .summary-card, .roadmap { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr; }
  .controls { position: sticky; bottom: 0; padding: .85rem 0 0; background: linear-gradient(180deg, rgba(250,246,239,0), var(--cream-light) 24%); }
}

@media (max-width: 560px) {
  .brand-lockup strong { font-size: .95rem; }
  .brand-lockup img { width: 2.7rem; height: 2.7rem; }
  .exit-link { font-size: .82rem; }
  .visual-note { align-items: flex-start; flex-direction: column; }
  .primary-btn, .secondary-btn { width: 100%; }
  .resume-panel div, .success-actions { flex-direction: column; }
  .choice-row .chip { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
