/* Stacked panel — zip, loading, and project occupy the same slot */

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.flow-panel {
  display: grid;
  width: 100%;
  min-height: 11.5rem;
  margin-bottom: 0;
}

.flow-panel__page {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: flow-fade-in 0.28s ease-out;
}

.flow-panel__page[hidden],
.flow-step[hidden],
#step-marketing[hidden],
#step-footer[hidden] {
  display: none !important;
}

@keyframes flow-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#step-marketing {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 0.25rem;
}

#step-footer {
  width: 100%;
  margin-top: 1.5rem;
}

/* Trust badges — spread across the row (all versions) */
#step-footer.trust,
ul#step-footer.trust,
p#step-footer.trust {
  justify-content: space-evenly !important;
  column-gap: 2rem;
  row-gap: 0.75rem;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

ul#step-footer .trust__divider {
  margin: 0 0.25rem;
}

/* Plain continue / submit for funnel steps */
.btn-continue {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.8125rem 1.25rem;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
  color: #1a2d4a;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-continue:hover {
  background: #f8fafc;
  border-color: #64748b;
}

.btn-continue:active {
  background: #f1f5f9;
}

.flow-form--v3 .btn-continue,
.flow-step--result-v3 .btn-confirm-booking {
  background: linear-gradient(135deg, #0e7490 0%, #38bdf8 100%);
  border-color: rgba(56, 189, 248, 0.55);
  color: #f8fafc;
  font-weight: 700;
}

.flow-form--v3 .btn-continue:hover,
.flow-step--result-v3 .btn-confirm-booking:hover:not(:disabled) {
  background: linear-gradient(135deg, #0c6b84 0%, #2dd4ff 100%);
  border-color: #38bdf8;
}

.flow-form--v4 .btn-continue {
  border-color: var(--border, #e2e8f0);
  color: var(--navy, #1a2d4a);
}

.hero-form-card .btn-continue {
  width: 100%;
}

.flow-panel {
  margin-top: 0.5rem;
}

.flow-panel--tall {
  min-height: 5.5rem;
}

.flow-step--loading {
  gap: 1rem;
  text-align: center;
  padding: 0.25rem 0;
  min-height: 11.5rem;
}

.flow-loading__spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(30, 107, 255, 0.15);
  border-top-color: var(--blue, #1e6bff);
  animation: flow-spin 0.85s linear infinite;
  flex-shrink: 0;
}

.flow-loading__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy, #0f1f3d);
  line-height: 1.4;
  max-width: 26ch;
  margin: 0;
}

.flow-loading__city {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--blue, #1e6bff);
  margin: 0;
}

.flow-loading__sub {
  font-size: 0.875rem;
  color: var(--text-light, #8b9bb8);
  min-height: 1.35em;
  margin: 0;
}

.flow-step--project {
  text-align: center;
}

.flow-project__title {
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy, #0f1f3d);
  margin: 0 0 0.35rem;
  line-height: 1.25;
  width: 100%;
  max-width: 24ch;
}

.flow-project__location {
  font-size: 0.875rem;
  color: var(--blue, #1e6bff);
  font-weight: 600;
  margin: 0 0 1.25rem;
  width: 100%;
}

.flow-step--project form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-project__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
  width: 100%;
  min-inline-size: 0;
}

.project-type-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--input-border, #c5d8f5);
  border-radius: 10px;
  background: var(--white, #fff);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-soft, #1a2d4a);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.project-type-card__icon {
  font-size: 1.05rem;
  line-height: 1;
}

.project-type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-type-card:hover {
  border-color: var(--blue, #1e6bff);
}

.project-type-card.selected {
  border-color: var(--blue, #1e6bff);
  background: rgba(30, 107, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.12);
}

#step-zip .cta-form,
#step-zip form {
  width: 100%;
  margin-bottom: 0;
}

/* Project step: tap a type to advance — no visible Continue button */
#project-form .flow-hint {
  margin-top: 0.75rem;
}

.flow-form .btn-continue {
  width: 100%;
}

@keyframes flow-spin {
  to {
    transform: rotate(360deg);
  }
}

/* V4 — swap inside the form card */
.hero-form-card .flow-panel {
  min-height: 14rem;
}

.hero-form-card .flow-panel__page {
  align-items: stretch;
  justify-content: flex-start;
}

.hero-form-card .flow-step--loading {
  align-items: center;
  justify-content: center;
  min-height: 14rem;
}

.hero-form-card .flow-step--project .flow-project__title {
  max-width: none;
  text-align: center;
}

.hero-form-card .flow-step--project form {
  align-items: stretch;
}

/* —— Marketing exit (per-version) —— */
#step-marketing,
#hero-marketing {
  transition: none;
  overflow: hidden;
}

#step-footer.is-exiting {
  animation: footer-out 0.35s ease forwards;
}

@keyframes footer-out {
  to {
    opacity: 0;
    transform: translateY(8px);
  }
}

.flow-panel__page--exit {
  animation: zip-out 0.4s ease forwards;
}

@keyframes zip-out {
  to {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

/* V1: soft fade up */
.marketing-exit--fade {
  animation: mkt-fade-v1 0.55s ease-in forwards;
}

@keyframes mkt-fade-v1 {
  to {
    opacity: 0;
    transform: translateY(-28px) scale(0.95);
    max-height: 0;
    margin: 0;
    padding: 0;
  }
}

/* V2: staggered lines (children use .mkt-line-exit) */
.marketing-exit--stagger .mkt-line-exit {
  animation: mkt-line-slide 0.45s ease-in forwards;
}

@keyframes mkt-line-slide {
  to {
    opacity: 0;
    transform: translateX(40px);
    filter: blur(4px);
  }
}

/* V3: cyber glitch */
.marketing-exit--glitch {
  animation: mkt-glitch 0.6s steps(4) forwards;
}

@keyframes mkt-glitch {
  0% {
    opacity: 1;
    transform: translate(0);
    filter: none;
  }
  25% {
    opacity: 0.85;
    transform: translate(-4px, 2px);
    filter: hue-rotate(90deg);
  }
  50% {
    opacity: 0.5;
    transform: translate(4px, -2px);
    clip-path: inset(10% 0 20% 0);
  }
  75% {
    opacity: 0.2;
    transform: translate(-2px, 0);
  }
  100% {
    opacity: 0;
    transform: translateY(-16px);
    max-height: 0;
    margin: 0;
  }
}

/* V4: collapse sidebar */
.marketing-exit--collapse {
  animation: mkt-collapse 0.5s ease-in forwards;
}

@keyframes mkt-collapse {
  to {
    opacity: 0;
    transform: translateX(-24px);
    max-height: 0;
    overflow: hidden;
  }
}

/* Page enter animations */
.enter-fade {
  animation: flow-fade-in 0.35s ease-out;
}

.enter-slide {
  animation: enter-slide 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes enter-slide {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.enter-rise {
  animation: enter-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes enter-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.enter-flip {
  animation: enter-flip 0.5s ease-out;
}

@keyframes enter-flip {
  from {
    opacity: 0;
    transform: perspective(600px) rotateX(-12deg);
  }
  to {
    opacity: 1;
    transform: perspective(600px) rotateX(0);
  }
}

/* Project auto-advance feedback */
.project-type-card.is-advancing,
.type-card.is-advancing {
  animation: card-pulse 0.35s ease;
}

@keyframes card-pulse {
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.25);
  }
}

.type-card.is-advancing {
  animation: card-pulse-v4 0.35s ease;
}

@keyframes card-pulse-v4 {
  50% {
    transform: scale(1.06);
    border-color: var(--cta, #ff8c69);
  }
}

/* Name & address steps */
.flow-step__title {
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  width: 100%;
  line-height: 1.25;
}

.flow-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  text-align: left;
}

.flow-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-soft, #1a2d4a);
}

.flow-form input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--input-border, #c5d8f5);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  color: var(--navy, #0f1f3d);
  background: var(--white, #fff);
}

.flow-form input:focus {
  outline: none;
  border-color: var(--blue, #1e6bff);
  box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.12);
}

.flow-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.flow-form__row--address {
  grid-template-columns: 1.4fr 0.6fr;
}

.flow-checkbox {
  flex-direction: row !important;
  align-items: center;
  gap: 0.625rem !important;
  cursor: pointer;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
}

.flow-checkbox input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--blue, #1e6bff);
  cursor: pointer;
}

/* V2 — underline inputs */
.flow-form--v2 label span {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.6875rem;
  color: var(--text-light, #8b9bb8);
}

.flow-form--v2 input {
  border: none;
  border-bottom: 2px solid var(--input-border, #d0dff5);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.flow-form--v2 input:focus {
  border-bottom-color: var(--blue, #1e6bff);
  box-shadow: none;
}

/* V3 — dark glass */
.flow-step--name-v3 .flow-step__title,
.flow-step--address-v3 .flow-step__title {
  color: #f1f5f9;
}

.flow-form--v3 label {
  color: #94a3b8;
}

.flow-form--v3 input {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #f1f5f9;
}

.flow-form--v3 input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.flow-form--v3 .flow-checkbox {
  color: #e2e8f0 !important;
}

/* V4 — card forms */
.flow-step--name-v4 .flow-step__title,
.flow-step--address-v4 .flow-step__title {
  text-align: left;
  font-size: 1.125rem;
  font-weight: 700;
  max-width: none;
}

.flow-form--v4 input {
  border-radius: 8px;
  border-color: var(--border, #e2e8f0);
}

.flow-form--v4 .flow-checkbox span {
  color: var(--text-muted, #64748b);
}

/* V4 stepper */
.stepper .step.done .step-num {
  background: #22c55e;
  color: #fff;
}

.stepper .step.done .step-label {
  color: var(--navy, #1a2d4a);
}

.flow-hint {
  font-size: 0.8125rem;
  color: var(--text-light, #8b9bb8);
  margin: 0.5rem 0 0;
  width: 100%;
  text-align: center;
}

.flow-hint--v2 {
  font-style: italic;
}

.flow-hint--v3 {
  color: #64748b;
  letter-spacing: 0.02em;
}

.flow-hint--v4 {
  color: var(--text-muted, #64748b);
  font-size: 0.75rem;
}

.flow-checkbox--pill {
  align-self: flex-start;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: rgba(30, 107, 255, 0.06);
  border: 1px solid var(--input-border, #c5d8f5);
}

.flow-step--project-v3 .project-type-card.is-advancing {
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.45);
  border-color: #38bdf8;
}

/* V1 project buttons with icons */
.flow-step--project-v1 .project-type-card {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  aspect-ratio: 1 / 1;
  padding: 0.5rem;
  border-radius: 12px;
  background: #fff;
  border-color: #bfd6fb;
  text-align: center;
}

.flow-step--project-v1 .project-type-card__icon {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eaf2ff;
}

.flow-step--project-v1 .project-type-card.selected {
  background: #f3f8ff;
  border-color: #1e6bff;
}

.flow-step--project-v1 .flow-project__grid {
  grid-template-columns: repeat(4, 1fr);
}

/* Phone step */
.flow-step--phone .flow-step__title {
  margin-bottom: 0.75rem;
}

.flow-consent {
  align-items: flex-start !important;
  font-size: 0.8125rem !important;
  line-height: 1.45;
}

.flow-consent-card {
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.45);
}

.flow-consent-legal {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.4;
  color: #64748b;
}

.flow-step--phone-v3 .flow-step__title {
  color: #f1f5f9;
}

.check-loop {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  margin: 0.25rem auto;
  border: 2px solid rgba(30, 107, 255, 0.25);
  display: grid;
  place-items: center;
  position: relative;
  animation: check-spin 2.1s linear infinite;
}

.check-loop span {
  width: 18px;
  height: 10px;
  border-left: 3px solid #16a34a;
  border-bottom: 3px solid #16a34a;
  transform: rotate(-45deg);
  animation: check-pop 1.25s ease-in-out infinite;
}

@keyframes check-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes check-pop {
  0%, 100% {
    transform: rotate(-45deg) scale(0.9);
    opacity: 0.55;
  }
  50% {
    transform: rotate(-45deg) scale(1.05);
    opacity: 1;
  }
}

/* V1: clean check animation, no spin */
.check-loop--v1 {
  animation: none;
  border-color: rgba(22, 163, 74, 0.35);
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12) 0%, rgba(22, 163, 74, 0) 70%);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35);
  animation: check-ring-v1 1.6s ease-out infinite;
}

.check-loop--v1 span {
  width: 20px;
  height: 11px;
  border-left-color: #16a34a;
  border-bottom-color: #16a34a;
  animation: check-draw-v1 1.6s ease-out infinite;
}

@keyframes check-ring-v1 {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.35);
  }
  100% {
    box-shadow: 0 0 0 12px rgba(22, 163, 74, 0);
  }
}

@keyframes check-draw-v1 {
  0%, 20% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.7);
  }
  40%, 100% {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
  }
}

/* Search step */
.flow-step--search {
  gap: 0.65rem;
  text-align: center;
}

.flow-search-progress {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

/* Cinematic AI matchmaking loader */
.cinematic-search {
  position: relative;
  width: 100%;
  min-height: 180px;
  border-radius: 16px;
  border: 1px solid #d7e3fb;
  background: radial-gradient(circle at 50% 30%, #f0f6ff 0%, #eef3fb 55%, #f8fbff 100%);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.cinematic-grid,
.cinematic-particles,
.cinematic-radar,
.cinematic-network {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cinematic-grid {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  animation: grid-drift 6s linear infinite;
}

.cinematic-particles::before,
.cinematic-particles::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 40%, rgba(59, 130, 246, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 60% 30%, rgba(59, 130, 246, 0.18) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 70%, rgba(22, 163, 74, 0.22) 0 2px, transparent 3px);
  animation: particles-float 8s linear infinite;
}

.cinematic-particles::after {
  animation-duration: 10s;
  opacity: 0.6;
}

.cinematic-radar::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.16);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.cinematic-radar::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 197, 94, 0.28), rgba(34, 197, 94, 0));
  animation: radar-spin 1.6s linear infinite;
}

.cinematic-network {
  background:
    linear-gradient(145deg, transparent 47%, rgba(34, 197, 94, 0.25) 50%, transparent 53%),
    linear-gradient(35deg, transparent 46%, rgba(34, 197, 94, 0.2) 50%, transparent 54%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cinematic-orb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 2;
  box-shadow: 0 0 0 0 rgba(30, 107, 255, 0.35);
  animation: orb-ring 1.2s ease-in-out infinite;
}

.orb-core {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #93c5fd, #1d4ed8 70%);
  box-shadow: 0 0 18px rgba(30, 107, 255, 0.45);
}

.cinematic-cards {
  position: absolute;
  inset: 14px;
  display: grid;
  gap: 8px;
  align-content: center;
}

.scan-card {
  justify-self: center;
  width: min(310px, 94%);
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.5rem 0.7rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.25;
  filter: blur(0.6px);
  transform: translateY(0);
}

.scan-card strong {
  font-weight: 700;
}

.cinematic-metrics {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.72rem;
  color: #475569;
  z-index: 2;
}

.cinematic-metrics b {
  color: #14532d;
}

.cinematic-search.stage-1 .scan-card {
  animation: cards-scan 0.45s linear infinite;
}

.cinematic-search.stage-2 .cinematic-network {
  opacity: 1;
}

.cinematic-search.stage-2 .scan-card {
  opacity: 0.45;
}

.cinematic-search.stage-3 .scan-card {
  opacity: 0.35;
  filter: blur(1.1px);
}

.cinematic-search.stage-3 .scan-card.winner {
  opacity: 1;
  filter: blur(0);
  border-color: rgba(22, 163, 74, 0.45);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.cinematic-search.stage-3 .cinematic-orb {
  transform: translateY(24px) scale(0.62);
  transition: transform 0.6s ease;
}

.cinematic-search.stage-4 {
  background: radial-gradient(circle at 50% 30%, #ecfdf3 0%, #f0fff4 55%, #ffffff 100%);
}

.cinematic-search.stage-4 .scan-card {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.45s ease;
}

.cinematic-search.stage-4 .scan-card.winner {
  opacity: 1;
  transform: translateY(0) scale(1.05);
}

.cinematic-search.stage-4 .cinematic-orb {
  opacity: 0;
}

/* Variant psychology for cinematic stage */
.flow-step--search-v2 .cinematic-search {
  background: radial-gradient(circle at 50% 30%, #f2f7ff 0%, #eef4ff 55%, #f9fbff 100%);
}

.flow-step--search-v2 .cinematic-orb .orb-core {
  background: radial-gradient(circle at 35% 35%, #bfdbfe, #2563eb 72%);
}

.flow-step--search-v2 .scan-card.winner {
  border-color: rgba(30, 107, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.12);
}

.flow-step--search-v3 .cinematic-search {
  background: radial-gradient(circle at 50% 28%, #0f172a 0%, #0b1325 65%, #060b18 100%);
  border-color: rgba(56, 189, 248, 0.35);
}

.flow-step--search-v3 .cinematic-grid {
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.14) 1px, transparent 1px);
}

.flow-step--search-v3 .scan-card {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(56, 189, 248, 0.3);
  color: #dbeafe;
}

.flow-step--search-v3 .cinematic-metrics {
  color: #93c5fd;
}

.flow-step--search-v3 .cinematic-metrics b {
  color: #22d3ee;
}

.flow-step--search-v4 .cinematic-search {
  background: radial-gradient(circle at 50% 30%, #f6fbf7 0%, #eef7f1 58%, #fcfffd 100%);
  border-color: rgba(22, 101, 52, 0.25);
}

.flow-step--search-v4 .cinematic-orb .orb-core {
  background: radial-gradient(circle at 35% 35%, #86efac, #15803d 70%);
}

.flow-step--search-v4 .scan-card.winner {
  border-color: rgba(21, 128, 61, 0.45);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.12);
}

@keyframes grid-drift {
  to {
    transform: translateY(26px);
  }
}

@keyframes particles-float {
  to {
    transform: translate(-8%, -6%);
  }
}

@keyframes radar-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orb-ring {
  50% {
    box-shadow: 0 0 0 14px rgba(30, 107, 255, 0);
  }
}

@keyframes cards-scan {
  50% {
    transform: translateY(-4px);
    filter: blur(0.2px);
  }
}

.search-orb {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #93c5fd 0%, #1d4ed8 70%);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.12), 0 0 24px rgba(37, 99, 235, 0.35);
  animation: orb-pulse 1.2s ease-in-out infinite;
}

.flow-search-sub {
  font-size: 0.875rem;
  color: var(--text-light, #8b9bb8);
  min-height: 1.2em;
}

@keyframes orb-pulse {
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.08), 0 0 28px rgba(37, 99, 235, 0.45);
  }
}

/* Result + booking */
.flow-step--result {
  gap: 0.85rem;
}

.result-card {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
  text-align: center;
}

.result-meta {
  padding: 1rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* V1 result redesign */
.flow-step--result-v1 .result-card {
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 0;
  border: 1px solid #d7dce1;
  background: #fff;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.flow-step--result-v1 .result-logo {
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #0d4730;
  padding: 0.75rem;
  border-radius: 0;
}

.flow-step--result-v1 .result-name {
  color: #0f5132;
  font-size: 1.95rem;
  margin-top: 0;
  letter-spacing: -0.02em;
}

.flow-step--result-v1 .flow-step__title {
  font-size: clamp(2.05rem, 5vw, 2.8rem);
  text-align: center;
  margin-bottom: 0.35rem;
}

.flow-step--result-v1 .flow-search-subtitle {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 1.2rem;
  text-align: center;
}

.flow-step--result-v1 .result-service {
  color: #475569;
  font-size: 1rem;
  line-height: 1.45;
}

.flow-step--result-v1 .result-rating {
  color: #047857;
  font-size: 1.05rem;
  margin-top: 0.55rem;
}

.flow-step--result-v1 .booking-title {
  color: #0f172a;
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.flow-step--result-v1 .booking-wrap {
  margin-top: 0.35rem;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid #dde3ea;
  background: #fff;
}

.flow-step--result-v1 .book-days {
  gap: 0.65rem;
}

.flow-step--result-v1 .book-day {
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.flow-step--result-v1 .book-day.selected {
  background: #166534;
  color: #fff;
  border-color: #166534;
}

.flow-step--result-v1 .book-slots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.flow-step--result-v1 .book-slot {
  padding: 0.75rem 0.45rem;
  font-size: 0.95rem;
  border-radius: 10px;
}

.flow-step--result-v1 .book-view-more {
  grid-column: 1 / -1;
  border: 1px solid #d0d7df;
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.72rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.flow-step--result-v1 .book-nav {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
}

.flow-step--result-v1 .book-days-track {
  gap: 0.65rem;
}

/* V2: reassurance / social-proof */
.flow-step--result-v2 .result-card {
  border: 1px solid #d7e3f8;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(30, 107, 255, 0.1);
}

.flow-step--result-v2 .result-meta {
  padding-top: 0.9rem;
}

.flow-step--result-v2 .result-name {
  color: #1e3a8a;
}

.flow-step--result-v2 .result-rating {
  color: #166534;
}

.flow-step--result-v2 .booking-wrap {
  border: 1px solid #dbe7fb;
  border-radius: 14px;
  background: #f8fbff;
  padding: 1rem;
}

.flow-step--result-v2 .book-day.selected {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

/* V3: high-tech certainty */
.flow-step--result-v3 .result-card {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96));
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.18);
}

.flow-step--result-v3 .flow-step__title,
.flow-step--result-v3 .flow-search-subtitle {
  display: none;
}

/* V5 — dark funnel + slide panel overrides */
.flow-step--loading-v5 .flow-loading__title,
.flow-step--project-v5 .flow-project__title,
.flow-step--name-v5 .flow-step__title,
.flow-step--address-v5 .flow-step__title,
.flow-step--phone-v5 .flow-step__title,
.flow-step--search-v5 .flow-step__title {
  color: #f1f5f9;
}

.flow-step--loading-v5 .flow-loading__sub,
.flow-hint--v5 {
  color: #94a3b8;
}

.flow-form--v5 label {
  color: #94a3b8;
}

.flow-form--v5 input {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #f1f5f9;
}

.flow-form--v5 input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.flow-form--v5 .flow-checkbox {
  color: #e2e8f0 !important;
}

.flow-form--v5 .btn-continue {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(56, 189, 248, 0.45);
  color: #f1f5f9;
}

.flow-step--project-v5 .project-type-card {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.6);
  color: #e2e8f0;
}

.flow-step--project-v5 .project-type-card.selected {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.flow-step--result-v5 .flow-step__title,
.flow-step--result-v5 .flow-search-subtitle {
  display: none;
}

.flow-step--result-v5 .result-card {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.96));
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.18);
}

.flow-step--result-v5 .result-name {
  color: #e0f2fe;
}

.flow-step--result-v5 .result-service {
  color: #94a3b8;
}

.flow-step--result-v5 .result-rating {
  color: #22d3ee;
}

.flow-step--result-v5 .booking-wrap {
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(2, 6, 23, 0.7);
}

.flow-step--result-v5 .booking-title {
  color: #bae6fd;
}

.flow-step--result-v5 .book-day,
.flow-step--result-v5 .book-slot,
.flow-step--result-v5 .book-nav {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
}

.flow-step--result-v5 .book-day.selected,
.flow-step--result-v5 .book-slot.selected {
  background: rgba(8, 145, 178, 0.22);
  border-color: #22d3ee;
  color: #cffafe;
}

.flow-step--search-v5 .flow-step__title,
.flow-step--search-v5 .flow-search-sub {
  color: #e2e8f0;
}

.flow-step--result-v3 .result-name {
  color: #e0f2fe;
}

.flow-step--result-v3 .result-service {
  color: #94a3b8;
}

.flow-step--result-v3 .result-rating {
  color: #22d3ee;
}

.flow-step--result-v3 .booking-wrap {
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.7);
  padding: 1rem;
}

.flow-step--result-v3 .booking-title {
  color: #bae6fd;
}

.flow-step--result-v3 .book-day,
.flow-step--result-v3 .book-slot,
.flow-step--result-v3 .book-nav,
.flow-step--result-v3 .book-view-more {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
}

.flow-step--result-v3 .book-day.selected,
.flow-step--result-v3 .book-slot.selected {
  background: rgba(8, 145, 178, 0.22);
  border-color: #22d3ee;
  color: #cffafe;
}

.btn-confirm-booking {
  margin-top: 0.85rem;
}

.btn-confirm-booking:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-success {
  width: 100%;
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
  animation: flow-fade-in 0.35s ease-out;
}

.booking-success__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #86efac;
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(134, 239, 172, 0.45);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.2);
}

.booking-success__icon svg {
  width: 28px;
  height: 28px;
}

.flow-step--result-v3 .booking-success__title {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #f0fdf4;
}

.flow-step--result-v3 .booking-success__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 34ch;
  margin-inline: auto;
}

.flow-step--result-v3 .booking-success__time {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7dd3fc;
}

/* V4: premium authority */
.flow-step--result-v4 .result-card {
  border: 1px solid #d9e2db;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.flow-step--result-v4 .result-name {
  color: #14532d;
  font-size: 1.2rem;
}

.flow-step--result-v4 .result-rating {
  color: #047857;
}

.flow-step--result-v4 .booking-wrap {
  border: 1px solid #dce6de;
  border-radius: 16px;
  background: #f9fcf9;
  padding: 1rem;
}

.flow-step--result-v4 .book-day.selected {
  background: #166534;
  border-color: #166534;
  color: #fff;
}

.result-logo {
  width: min(220px, 90%);
  height: auto;
  margin: 0 auto 0.4rem;
  display: block;
  border-radius: 8px;
}

.result-name {
  font-size: 1.0625rem;
  margin: 0;
}

.result-service,
.result-rating {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text, #475569);
}

.result-rating {
  color: #f59e0b;
  font-weight: 700;
}

.booking-wrap {
  width: 100%;
  text-align: left;
}

.booking-title {
  margin: 0 0 0.55rem;
  font-size: 0.9375rem;
}

.book-days {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

.book-days-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.book-day {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.book-day.selected {
  border-color: var(--blue, #1e6bff);
  background: rgba(30, 107, 255, 0.1);
  color: var(--blue, #1e6bff);
}

.book-nav {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.book-nav:disabled {
  opacity: 0.4;
  cursor: default;
}

.book-slots {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.book-slot {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.25rem;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.book-slot.selected {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
  font-weight: 600;
}

.book-none {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: #64748b;
}

@media (max-width: 768px) {
  #step-footer.trust,
  ul#step-footer.trust,
  p#step-footer.trust {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    justify-content: center !important;
    column-gap: 0.5rem;
    row-gap: 0.5rem;
  }

  ul#step-footer .trust__divider {
    display: none;
  }

  .flow-panel,
  .flow-panel--tall {
    min-height: auto;
    margin-top: 0.35rem;
  }

  .flow-panel__page {
    align-items: stretch;
    text-align: left;
  }

  #step-zip.flow-panel__page,
  .flow-step--loading,
  .flow-step--loading-v3,
  .flow-step--project,
  .flow-step--project-v3,
  .flow-step--search,
  .flow-step--search-v3 {
    align-items: center;
    text-align: center;
  }

  .flow-project__title,
  .flow-step__title {
    max-width: none;
    font-size: 1.15rem;
    line-height: 1.3;
    text-align: center;
  }

  .flow-step--name-v3 .flow-step__title,
  .flow-step--address-v3 .flow-step__title,
  .flow-step--phone-v3 .flow-step__title {
    margin-bottom: 0.75rem;
  }

  .flow-project__location {
    margin-bottom: 0.85rem;
  }

  .flow-project__grid {
    gap: 0.5rem;
    margin-bottom: 0.85rem;
  }

  .project-type-card {
    min-height: 44px;
    padding: 0.65rem 0.4rem;
    font-size: 0.8125rem;
  }

  .flow-form {
    gap: 0.75rem;
  }

  .flow-form__row,
  .flow-form__row--address {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .flow-form input[type="text"],
  .flow-form input[type="tel"] {
    font-size: 16px;
    padding: 0.7rem 0.85rem;
  }

  .btn-continue {
    min-height: 48px;
    padding: 0.85rem 1rem;
  }

  .flow-consent-card {
    width: 100%;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(15, 23, 42, 0.45);
  }

  .flow-consent {
    align-items: flex-start !important;
  }

  .flow-consent span {
    font-size: 0.72rem !important;
    line-height: 1.45;
  }

  .flow-consent-legal {
    margin: 0.45rem 0 0;
    font-size: 0.65rem;
    line-height: 1.4;
    color: #64748b;
  }

  .flow-step--loading {
    min-height: auto;
    padding: 0;
  }

  .flow-loading__title {
    font-size: 0.95rem;
    max-width: none;
  }

  .flow-loading__sub {
    font-size: 0.8rem;
  }

  .cinematic-search {
    min-height: 140px;
    border-radius: 12px;
  }

  .cinematic-radar::before {
    width: 150px;
    height: 150px;
  }

  .cinematic-radar::after {
    width: 130px;
    height: 130px;
  }

  .cinematic-orb {
    width: 60px;
    height: 60px;
  }

  .orb-core {
    width: 28px;
    height: 28px;
  }

  .scan-card {
    width: min(280px, 92%);
    font-size: 0.68rem;
    padding: 0.4rem 0.55rem;
  }

  .cinematic-metrics {
    gap: 0.5rem;
    font-size: 0.65rem;
    flex-wrap: wrap;
    padding: 0 0.5rem;
  }

  .flow-step--result-v3 .result-card,
  .flow-step--result-v3 .booking-wrap {
    width: 100%;
  }

  .flow-step--result-v3 .booking-wrap {
    padding: 0.75rem;
  }

  .btn-confirm-booking {
    min-height: 48px;
  }

  .booking-success {
    padding-top: 0.75rem;
  }

  .result-logo {
    width: min(180px, 78%);
  }

  .book-days {
    gap: 0.35rem;
  }

  .book-day,
  .book-slot,
  .book-nav {
    min-height: 40px;
    font-size: 0.75rem;
  }

  .book-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
  }

  #step-marketing {
    margin-bottom: 0;
  }

  #step-footer {
    margin-top: 1rem;
  }
}

@media (max-width: 420px) {
  .flow-step--project-v1 .flow-project__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step--loading-v3 .v3-area-scan {
    min-height: 132px;
  }
}
