/* Clearwater Business Capital — brand + modern landing */

:root {
  --cw-blue: #0456c2;
  --cw-blue-dark: #033d8a;
  --cw-bg: #f8fbfe;
  --cw-white: #ffffff;
  --cw-orange: #ed7705;
  --cw-orange-hover: #d56a04;
  --cw-text: #0f172a;
  --cw-text-muted: #64748b;
  --cw-border: #e2e8f0;
  --cw-step-inactive: #cbd5e1;
  --cw-step-line: #e2e8f0;
  --cw-card-shadow: 0 12px 40px rgba(4, 86, 194, 0.08), 0 4px 16px rgba(15, 23, 42, 0.06);
  --cw-radius-lg: 18px;
  --cw-radius-md: 12px;
  --cw-radius-pill: 999px;
  --cw-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cw-lower-bg-top: #051d4b;
  --cw-lower-bg-bottom: #030f22;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cw-font);
  background: var(--cw-bg);
  color: var(--cw-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ——— Page shell ——— */
.cw-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  /* Matches lower band so rounded top corners do not flash page background */
  background: var(--cw-lower-bg-bottom);
}

/* ——— Landing: subtle load-in (opacity + slide up) ——— */
@keyframes cw-reveal-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cw-landing .cw-hero-gradient > header.cw-landing-header {
  opacity: 0;
  animation: cw-reveal-up 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.cw-landing .cw-hero-gradient > .cw-hero {
  opacity: 0;
  animation: cw-reveal-up 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
}

.cw-landing .cw-hero-gradient > .cw-quote-panel {
  opacity: 0;
  animation: cw-reveal-up 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.cw-landing .cw-hero-gradient > .cw-funding-cards-wrap {
  opacity: 0;
  animation: cw-reveal-up 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.cw-landing > section.cw-lower-band .cw-lower-band__inner {
  opacity: 0;
  animation: cw-reveal-up 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

.cw-landing > footer.cw-footer {
  opacity: 0;
  animation: cw-reveal-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.56s forwards;
}

@media (prefers-reduced-motion: reduce) {
  .cw-landing .cw-hero-gradient > header.cw-landing-header,
  .cw-landing .cw-hero-gradient > .cw-hero,
  .cw-landing .cw-hero-gradient > .cw-quote-panel,
  .cw-landing .cw-hero-gradient > .cw-funding-cards-wrap,
  .cw-landing > section.cw-lower-band .cw-lower-band__inner,
  .cw-landing > footer.cw-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Full-bleed hero — neutral floor; color comes from blurred blobs below */
.cw-hero-gradient {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Tighter bottom — cards extend into overlap; lower band paints on top */
  padding: clamp(2.5rem, 8vh, 5rem) max(1rem, 4vw) clamp(0.75rem, 2vw, 1.5rem);
  background-color: #eef2f7;
  color: var(--cw-text);
}

/* Many soft blurred shapes — reads as diffuse light + watercolour blues, not one spotlight */
.cw-hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Skyline photo — low-contrast layer under blobs (scrim keeps type readable) */
.cw-hero-blobs__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(248, 250, 252, 0.55) 22%, rgba(240, 246, 252, 0.28) 42%, rgba(232, 241, 250, 0.4) 68%, rgba(226, 236, 248, 0.75) 100%),
    url('/images/miamSkyline.jpg');
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  opacity: 0.2;
}

.cw-hero-blob {
  position: absolute;
  z-index: 1;
  transform-origin: center center;
  pointer-events: none;
}

.cw-hero-blob--a {
  width: min(58vw, 520px);
  height: min(48vw, 420px);
  top: -8%;
  left: -18%;
  border-radius: 58% 42% 48% 52% / 52% 48% 55% 45%;
  transform: rotate(-14deg);
  background: radial-gradient(ellipse at 40% 38%, #ffffff 0%, #eef4fc 55%, #dceaf8 100%);
  opacity: 0.52;
  filter: blur(clamp(40px, 9vw, 88px));
}

.cw-hero-blob--b {
  width: min(52vw, 460px);
  height: min(44vw, 380px);
  top: 2%;
  right: -22%;
  border-radius: 45% 55% 52% 48% / 48% 42% 58% 52%;
  transform: rotate(19deg);
  background: radial-gradient(ellipse at 55% 42%, #fbfdff 0%, #e4f0fc 50%, #c5dff5 100%);
  opacity: 0.48;
  filter: blur(clamp(36px, 8vw, 76px));
}

.cw-hero-blob--c {
  width: min(28vw, 240px);
  height: min(22vw, 190px);
  top: 6%;
  left: 38%;
  border-radius: 55% 45% 50% 50%;
  transform: rotate(-22deg);
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(220, 235, 250, 0.5) 100%);
  opacity: 0.35;
  filter: blur(clamp(22px, 5vw, 44px));
}

.cw-hero-blob--d {
  width: min(24vw, 200px);
  height: min(20vw, 170px);
  top: 18%;
  right: 12%;
  border-radius: 48% 52% 45% 55%;
  transform: rotate(31deg);
  background: radial-gradient(circle at 40% 45%, rgba(200, 225, 255, 0.75) 0%, rgba(150, 195, 235, 0.25) 100%);
  opacity: 0.32;
  filter: blur(clamp(20px, 4.5vw, 40px));
}

.cw-hero-blob--e {
  width: min(46vw, 400px);
  height: min(38vw, 320px);
  top: 30%;
  left: -6%;
  border-radius: 52% 48% 44% 56% / 55% 45% 50% 50%;
  transform: rotate(8deg);
  background: radial-gradient(ellipse at 45% 50%, #f4f8fd 0%, #c9e2f8 70%, rgba(120, 180, 230, 0.35) 100%);
  opacity: 0.4;
  filter: blur(clamp(34px, 7vw, 68px));
}

.cw-hero-blob--f {
  width: min(40vw, 360px);
  height: min(34vw, 300px);
  top: 34%;
  right: -4%;
  border-radius: 42% 58% 52% 48%;
  transform: rotate(-18deg);
  background: radial-gradient(ellipse at 60% 40%, #eef6ff 0%, #b8daf5 65%, rgba(90, 155, 220, 0.3) 100%);
  opacity: 0.38;
  filter: blur(clamp(32px, 7vw, 64px));
}

.cw-hero-blob--g {
  width: min(36vw, 320px);
  height: min(30vw, 260px);
  top: 42%;
  left: 22%;
  border-radius: 50% 50% 45% 55%;
  transform: rotate(24deg);
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.7) 0%, rgba(190, 218, 245, 0.45) 100%);
  opacity: 0.3;
  filter: blur(clamp(28px, 6vw, 52px));
}

.cw-hero-blob--h {
  width: min(48vw, 440px);
  height: min(36vw, 300px);
  bottom: 8%;
  left: -12%;
  border-radius: 48% 52% 55% 45% / 52% 48% 48% 52%;
  transform: rotate(-11deg);
  background: radial-gradient(ellipse at 55% 40%, rgba(130, 185, 240, 0.55) 0%, var(--cw-blue) 55%, rgba(5, 29, 75, 0.45) 100%);
  opacity: 0.38;
  filter: blur(clamp(38px, 8vw, 80px));
}

.cw-hero-blob--i {
  width: min(42vw, 400px);
  height: min(40vw, 340px);
  bottom: -4%;
  left: 28%;
  border-radius: 55% 45% 50% 50%;
  transform: rotate(16deg);
  background: radial-gradient(ellipse at 45% 35%, rgba(100, 170, 235, 0.5) 0%, var(--cw-blue) 50%, #052a5c 100%);
  opacity: 0.36;
  filter: blur(clamp(42px, 9vw, 86px));
}

.cw-hero-blob--j {
  width: min(44vw, 420px);
  height: min(34vw, 280px);
  bottom: 2%;
  right: -16%;
  border-radius: 45% 55% 48% 52%;
  transform: rotate(-26deg);
  background: radial-gradient(ellipse at 40% 45%, rgba(80, 150, 230, 0.45) 0%, #0456c2 58%, var(--cw-lower-bg-top) 100%);
  opacity: 0.34;
  filter: blur(clamp(40px, 8.5vw, 82px));
}

.cw-hero-blob--k {
  width: min(70vw, 620px);
  height: min(28vw, 220px);
  bottom: -14%;
  left: 50%;
  transform: translate3d(-50%, 0, 0) rotate(-4deg);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(5, 29, 75, 0.5) 0%, var(--cw-lower-bg-bottom) 70%, rgba(1, 6, 15, 0.85) 100%);
  opacity: 0.28;
  filter: blur(clamp(48px, 11vw, 100px));
}

/* Light halftone over blobs — FinFlow-style geometric breakup */
.cw-hero-blobs__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.26;
  background-image: radial-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1.12px);
  background-size: 12px 12px;
  mask-image: radial-gradient(ellipse 82% 72% at 50% 46%, #000 0%, transparent 86%);
  -webkit-mask-image: radial-gradient(ellipse 82% 72% at 50% 46%, #000 0%, transparent 86%);
}

.cw-hero-gradient > *:not(.cw-hero-blobs) {
  position: relative;
  z-index: 1;
}

.cw-landing-header {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0 0 clamp(1rem, 2.5vw, 1.5rem);
}

.cw-landing-logo {
  height: 64px;
  width: auto;
  max-width: 340px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(15, 23, 42, 0.1));
}

@media (min-width: 768px) {
  .cw-landing-logo {
    height: 72px;
    max-width: 380px;
  }
}

.cw-hero-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 auto 0.75rem;
  max-width: 640px;
}

.cw-hero-gradient .cw-hero-eyebrow {
  color: #64748b;
}

.cw-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(1.25rem, 3vw, 2rem);
  padding-top: 0.15rem;
}

.cw-hero-gradient .cw-hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  color: var(--cw-text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.cw-hero-gradient .cw-hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 500;
  color: var(--cw-text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 575.98px) {
  .cw-hero-gradient {
    padding-top: clamp(0.65rem, 2.5vh, 1.15rem);
    padding-bottom: clamp(0.6rem, 1.8vw, 1.1rem);
  }

  .cw-landing-header {
    padding-top: 0;
    padding-bottom: clamp(0.75rem, 2.8vw, 1.1rem);
  }

  .cw-landing-logo {
    height: 46px;
    max-width: 240px;
  }

  .cw-hero {
    margin-bottom: clamp(0.85rem, 3vw, 1.35rem);
    padding-top: 0;
  }

  .cw-hero-gradient .cw-hero__title {
    font-size: clamp(1.22rem, 4.5vw + 0.2rem, 1.48rem);
    line-height: 1.18;
    letter-spacing: -0.028em;
    margin: 0 0 0.45rem;
  }

  .cw-hero-gradient .cw-hero__subtitle {
    font-size: clamp(0.9rem, 2.8vw + 0.2rem, 1.02rem);
    line-height: 1.45;
  }

}

/* Stepper: default light UI (reads on white / grey; orange current/complete unchanged) */
.cw-hero-gradient .cw-stepper__circle:not(.cw-stepper__circle--complete):not(.cw-stepper__circle--current) {
  background: var(--cw-white);
  border-color: var(--cw-step-inactive);
  color: var(--cw-text-muted);
}

/* Track always visible on hero (photo / sky / blue); orange only when segment is complete */
.cw-hero-gradient .cw-stepper__connector:not(.cw-stepper__connector--active) {
  background: rgba(51, 65, 85, 0.42);
  opacity: 1;
}

/* White panel: stepper + form read as one focal card on the hero */
.cw-hero-gradient .cw-quote-panel {
  width: 100%;
  max-width: 680px;
  margin: clamp(1rem, 3vw, 1.75rem) auto 0;
  padding: clamp(1.25rem, 3.5vw, 1.85rem) clamp(1.25rem, 3vw, 1.85rem) clamp(1.35rem, 3.5vw, 1.95rem);
  background: var(--cw-white);
  border-radius: var(--cw-radius-lg);
  border: 1px solid rgba(4, 86, 194, 0.1);
  box-shadow:
    0 2px 4px rgba(4, 86, 194, 0.04),
    0 12px 36px rgba(15, 23, 42, 0.08),
    0 28px 72px rgba(4, 86, 194, 0.07);
}

.cw-hero-gradient .cw-quote-panel .cw-stepper {
  margin-top: 0;
  margin-bottom: clamp(0.85rem, 2.2vw, 1.2rem);
  margin-left: auto;
  margin-right: auto;
  max-width: 520px;
  padding-left: 0;
  padding-right: 0;
}

.cw-hero-gradient .cw-quote-panel #mainContainer {
  padding: 0;
  max-width: none;
}

.cw-hero-gradient .cw-quote-panel .cw-stepper__connector:not(.cw-stepper__connector--active) {
  background: rgba(100, 116, 139, 0.32);
}

.cw-hero-gradient .cw-quote-panel .cw-trust-row--on-hero {
  margin-top: clamp(0.85rem, 2.2vw, 1.25rem);
  margin-bottom: 0;
  padding-top: clamp(0.85rem, 2.2vw, 1.15rem);
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

/* Trust row on hero — dark type (photo + light sky behind) */
.cw-trust-row--on-hero .cw-trust-badge {
  color: var(--cw-text);
}

.cw-trust-row--on-hero .cw-trust-stars {
  color: var(--cw-orange);
}

.cw-form-footnote {
  color: var(--cw-text-muted);
}

.cw-form-footnote a {
  color: var(--cw-blue);
}

/* ——— Numbered stepper ——— */
.cw-stepper {
  width: 100%;
  max-width: 520px;
  margin: 0.5rem auto clamp(1.5rem, 3vw, 2rem);
  padding: 0 0.25rem;
}

.cw-stepper__inner {
  display: flex;
  align-items: center;
  width: 100%;
}

.cw-stepper__circle-wrap {
  flex: 0 0 auto;
}

/* Rounded-square markers (not circles) — Clearwater-specific stepper */
.cw-stepper__circle {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cw-text-muted);
  background: var(--cw-white);
  border: 2px solid var(--cw-step-inactive);
  transition:
    transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.65s cubic-bezier(0.33, 1, 0.68, 1),
    color 0.65s cubic-bezier(0.33, 1, 0.68, 1),
    border-color 0.65s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.65s cubic-bezier(0.33, 1, 0.68, 1);
}

.cw-stepper__circle--complete {
  background: linear-gradient(145deg, #f08a1a 0%, var(--cw-orange) 45%, #d96d04 100%);
  border-color: #c65f04;
  color: var(--cw-white);
  box-shadow: 0 2px 8px rgba(237, 119, 5, 0.28);
}

/* Current step: soft “breathing” ring — distinct from typical static pills */
.cw-stepper__circle--current {
  background: linear-gradient(145deg, #ff9f2e 0%, var(--cw-orange) 40%, #e56c00 100%);
  border-color: #c65f04;
  color: var(--cw-white);
  box-shadow: 0 3px 14px rgba(237, 119, 5, 0.45);
  animation: cw-step-breathe 3.4s ease-in-out infinite;
}

@keyframes cw-step-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 3px 14px rgba(237, 119, 5, 0.4),
      0 0 0 0 rgba(237, 119, 5, 0.35);
  }
  50% {
    transform: scale(1.06);
    box-shadow:
      0 4px 18px rgba(237, 119, 5, 0.5),
      0 0 0 10px rgba(237, 119, 5, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-stepper__circle--current {
    animation: none;
  }

  .cw-stepper__connector--active::after {
    animation: none !important;
    transform: scaleX(1) !important;
  }

  .cw-stepper__connector:not(.cw-stepper__connector--active)::after {
    transition: none;
  }
}

.cw-stepper__connector {
  position: relative;
  flex: 1 1 auto;
  height: 5px;
  min-width: clamp(10px, 2.5vw, 28px);
  margin: 0 3px;
  align-self: center;
  border-radius: 5px;
  overflow: hidden;
  /* Neutral track — orange is painted by ::after so it can grow in slowly */
  background: linear-gradient(90deg, #94a3b8 0%, #cbd5e1 50%, #94a3b8 100%);
  opacity: 1;
}

/* Orange segment: scales in left → right, then shimmer (only background-position) */
.cw-stepper__connector::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(
    90deg,
    #d96d04 0%,
    var(--cw-orange) 25%,
    #ffb45c 50%,
    var(--cw-orange) 75%,
    #d96d04 100%
  );
  background-size: 220% 100%;
  background-position: 100% 0;
  pointer-events: none;
}

.cw-stepper__connector--active::after {
  animation:
    cw-connector-fill 1.05s cubic-bezier(0.33, 1, 0.68, 1) forwards,
    cw-connector-shimmer 5s ease-in-out 1.05s infinite;
}

.cw-stepper__connector:not(.cw-stepper__connector--active)::after {
  animation: none;
  transform: scaleX(0);
  transition: transform 0.55s cubic-bezier(0.55, 0.06, 0.35, 0.96);
}

.cw-stepper__connector.cw-stepper__connector--pending::after {
  animation: cw-connector-pending 1.4s ease-in-out infinite alternate;
  transform: scaleX(0.2);
  transition: none;
}

@keyframes cw-connector-pending {
  from {
    transform: scaleX(0.12);
  }
  to {
    transform: scaleX(0.92);
  }
}

@keyframes cw-connector-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes cw-connector-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Stepper: checkmark in third marker (same box size as 1 / 2) */
.cw-stepper__check {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-0.5px);
}

/* Post-submit success panel (tab 3) */
.cw-form-success {
  text-align: center;
  padding: 1.1rem 0.5rem 1.35rem;
  max-width: 22rem;
  margin: 0 auto;
}

.cw-form-success__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.05rem;
}

.cw-form-success__burst {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ff9f2e 0%, var(--cw-orange) 42%, #e56c00 100%);
  box-shadow: 0 4px 18px rgba(237, 119, 5, 0.38);
  transform: scale(0.35);
  opacity: 0;
}

.cw-form-success--animate .cw-form-success__burst {
  animation: cw-form-success-pop 0.65s cubic-bezier(0.34, 1.45, 0.64, 1) forwards;
}

.cw-form-success__check {
  font-size: clamp(1.75rem, 5vw, 2.1rem);
  color: var(--cw-white);
  font-weight: 700;
  line-height: 1;
  transform: translateY(1px);
}

@keyframes cw-form-success-pop {
  0% {
    transform: scale(0.35);
    opacity: 0;
  }
  60% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.cw-form-success__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--cw-text);
  margin-bottom: 0.4rem;
}

.cw-form-success__subtitle {
  font-size: 0.9rem;
  color: var(--cw-text-muted);
  margin: 0;
  line-height: 1.45;
}

.cw-form-success__countdown-block {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.cw-form-success__countdown-intro,
.cw-form-success__countdown-unit {
  font-size: 0.85rem;
  color: var(--cw-text-muted);
  margin: 0;
}

.cw-form-success__countdown-num {
  font-size: clamp(2.75rem, 10vw, 3.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  margin: 0.15rem 0 0.05rem;
  color: var(--cw-orange);
  letter-spacing: -0.03em;
}

/* Shown after countdown reaches zero while the real POST runs */
.cw-form-success__countdown-num.cw-form-success__countdown-num--message {
  font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  font-weight: 600;
  font-variant-numeric: normal;
  line-height: 1.35;
  margin: 0.35rem 0 0.2rem;
  color: var(--cw-text-muted);
  letter-spacing: normal;
}

.cw-form-success__title,
.cw-form-success__subtitle {
  opacity: 0;
  transform: translateY(8px);
}

.cw-form-success--animate .cw-form-success__title {
  animation: cw-form-success-fade-up 0.5s 0.2s ease forwards;
}

.cw-form-success--animate .cw-form-success__subtitle {
  animation: cw-form-success-fade-up 0.5s 0.38s ease forwards;
}

@keyframes cw-form-success-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-form-success--animate .cw-form-success__burst,
  .cw-form-success--animate .cw-form-success__title,
  .cw-form-success--animate .cw-form-success__subtitle {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .cw-form-success__burst {
    transform: scale(1);
    opacity: 1;
  }
}

/* ——— Funding cards (glass stack — straight, center raised) ——— */
.cw-funding-cards-wrap {
  width: 100%;
  max-width: min(1040px, 100%);
  margin: 0 auto;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  /* Less dead space before the lower band tucks under */
  padding: 0 clamp(0.25rem, 2vw, 1rem) clamp(2rem, 5.5vw, 4rem);
}

.cw-funding-cards-scene {
  /* Wider shift = less overlap; clamp keeps layout inside typical widths */
  --cw-card-shift: clamp(104px, 21vw, 188px);
  /* Slight lift so middle reads “forward”; small value keeps bottom edge tucked under lower band */
  --cw-center-lift: clamp(0.2rem, 1vw, 0.55rem);
  --cw-side-settle: clamp(0.4rem, 1.5vw, 0.9rem);
  position: relative;
  min-height: clamp(220px, 28vw, 270px);
  padding-top: clamp(0.5rem, 2vw, 1.25rem);
  margin-top: 0;
  margin-bottom: 0;
}

.cw-funding-card {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(232px, 32vw);
  padding: 1.35rem 1.35rem 2.05rem;
  border-radius: 22px;
  transform-origin: center bottom;
  background: linear-gradient(155deg, rgba(5, 29, 75, 0.88) 0%, rgba(4, 86, 194, 0.72) 48%, rgba(3, 45, 95, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f8fafc;
  text-align: center;
}

.cw-funding-card__badge {
  display: inline-block;
  margin: 0 auto 0.75rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: #fff;
  background: linear-gradient(135deg, #ff9a2e 0%, var(--cw-orange) 48%, #c65f04 100%);
  border-radius: var(--cw-radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 10px rgba(237, 119, 5, 0.38);
}

.cw-funding-card__label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.78);
  margin: 0 0 0.15rem;
}

.cw-funding-card__value {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.cw-funding-card__value:last-child {
  margin-bottom: 0;
}

.cw-funding-card--center {
  /* Taller than side cards: extra lower padding pulls glass toward the dark band */
  padding-top: 1.45rem;
  padding-bottom: clamp(3.35rem, 8.5vw, 4.35rem);
  /* Nudge down so the bottom border sits under the lower-band overlap */
  transform: translateX(-50%) translateY(calc(0.9rem - var(--cw-center-lift)));
  z-index: 3;
}

.cw-funding-card--left {
  transform: translateX(calc(-50% - var(--cw-card-shift))) translateY(var(--cw-side-settle));
  z-index: 1;
}

.cw-funding-card--right {
  transform: translateX(calc(-50% + var(--cw-card-shift))) translateY(var(--cw-side-settle));
  z-index: 4;
}

@media (max-width: 767.98px) {
  .cw-lower-band {
    margin-top: 0;
  }

  .cw-funding-cards-wrap {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }

  .cw-funding-cards-scene {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-height: 0;
    margin-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .cw-funding-card {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(320px, 100%);
    min-width: 0;
    transform: none !important;
  }
}

/* ——— Lower band (dark contrast section) ——— */
.cw-lower-band {
  position: relative;
  z-index: 5;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Pull up over hero so card bottoms sit “under” this solid layer (tighter to cards) */
  margin-top: clamp(-6.5rem, -14vw, -4rem);
  padding: clamp(2.75rem, 6vw, 4.25rem) max(1rem, 4vw) clamp(3rem, 7vw, 5rem);
  background: linear-gradient(180deg, var(--cw-lower-bg-top) 0%, var(--cw-lower-bg-bottom) 100%);
  border-radius: 40px 40px 0 0;
  color: #e8f0fc;
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.22);
}

.cw-lower-band__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.cw-lower-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(130, 190, 255, 0.85);
  margin: 0 0 0.75rem;
}

.cw-lower-band .cw-lower-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.cw-lower-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(232, 240, 252, 0.82);
  max-width: 640px;
  margin: 0 auto;
}

.cw-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.75rem;
  text-align: left;
}

.cw-feature {
  padding: 1.35rem 1.15rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.cw-feature:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.cw-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cw-orange);
  line-height: 1;
  background: rgba(237, 119, 5, 0.22);
  border: 1px solid rgba(237, 119, 5, 0.35);
}

.cw-feature__icon--sba {
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.cw-feature__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.45rem;
  letter-spacing: -0.01em;
}

.cw-feature__text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(232, 240, 252, 0.72);
  margin: 0;
}

@media (max-width: 991.98px) {
  .cw-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .cw-lower-band {
    border-radius: 28px 28px 0 0;
  }

  .cw-feature-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cw-feature__icon {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ——— Form card ——— */
#mainContainer {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 max(0.75rem, 2vw);
}

/* Step 1 → 2: overlay while POST /submit/step1 (Salesforce) runs */
.cw-step1-loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  border-radius: var(--cw-radius-lg, 12px);
}

.cw-step1-loading--visible {
  display: flex;
}

.cw-step1-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(4px);
  border-radius: inherit;
}

.cw-step1-loading__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1.25rem;
  max-width: 16rem;
}

.cw-step1-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(4, 86, 194, 0.15);
  border-top-color: var(--cw-orange, #f59e0b);
  border-radius: 50%;
  animation: cw-step1-spin 0.75s linear infinite;
}

.cw-step1-loading__text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--cw-blue, #0456c2);
  line-height: 1.4;
}

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

#submitForm.cw-form-card {
  width: 100%;
  max-width: 640px;
  background: var(--cw-white);
  border-radius: var(--cw-radius-lg);
  box-shadow: var(--cw-card-shadow);
  border: 1px solid rgba(4, 86, 194, 0.06);
  padding: 2.25rem 2rem 2rem;
  margin: 0 auto;
}

@media (min-width: 576px) {
  #submitForm.cw-form-card {
    padding: 2.5rem 2.75rem;
  }
}

/* Hero: form sits inside .cw-quote-panel — no second card chrome */
.cw-hero-gradient .cw-quote-panel #submitForm.cw-form-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  max-width: none;
}

/* Match field labels (Full name, Email): same type color, weight, size */
.cw-hero-gradient .cw-quote-panel #submitForm .cw-question {
  font-family: var(--cw-font);
  color: var(--cw-blue);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
  margin-bottom: 0.35rem;
  letter-spacing: normal;
}

.cw-hero-gradient .cw-quote-panel #submitForm label:not(.form-check-label) {
  color: var(--cw-blue);
}

.cw-hero-gradient .cw-quote-panel #submitForm .form-check {
  text-align: left;
}

.cw-hero-gradient .cw-quote-panel #submitForm .form-check-label {
  color: var(--cw-text);
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
}

.cw-hero-gradient .cw-quote-panel .cw-form-footnote {
  color: var(--cw-text-muted);
}

.cw-hero-gradient .cw-quote-panel .cw-form-footnote a {
  color: var(--cw-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cw-hero-gradient .cw-quote-panel .cw-form-footnote a:hover {
  color: var(--cw-blue-dark);
}

.cw-hero-gradient .cw-quote-panel #submitForm label.error {
  color: #b91c1c;
}

.cw-tab {
  width: 100%;
}

/* Half-width city/state row: avoid clipping Selectize chips at column edges */
#submitForm .tab-2 .row > .col-md-6 {
  overflow: visible;
}

.cw-question {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cw-blue);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

#submitForm .form-select,
#submitForm .form-control {
  font-family: var(--cw-font);
  border-radius: var(--cw-radius-md);
  border: 1px solid #c5ced9;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  color: var(--cw-text);
  background-color: var(--cw-white);
  transition: border-color 0.15s, box-shadow 0.15s;
}

#submitForm .form-select:focus,
#submitForm .form-control:focus {
  border-color: var(--cw-blue);
  box-shadow: 0 0 0 3px rgba(4, 86, 194, 0.15);
  outline: 0;
}

#submitForm label:not(.form-check-label) {
  font-family: var(--cw-font);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cw-blue);
  margin-bottom: 0.35rem;
}

.formStepContainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.formStepContainer .cw-btn {
  min-width: 120px;
}

.formStepContainer .cw-btn--back {
  order: 1;
}

.formStepContainer .cw-btn--next,
.formStepContainer .cw-btn--submit {
  order: 2;
  margin-left: auto;
}

/* First step: only Next — full width optional */
.tab-1 .formStepContainer {
  justify-content: flex-end;
}

.tab-1 .formStepContainer .cw-btn--next {
  margin-left: 0;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 575.98px) {
  #submitForm .formStepContainer {
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem;
  }

  #submitForm .formStepContainer .cw-btn--next,
  #submitForm .formStepContainer .cw-btn--submit {
    width: 100%;
    max-width: none;
    margin-left: 0;
    order: 0;
  }

  #submitForm .formStepContainer .cw-btn--back {
    order: 0;
    align-self: flex-start;
    width: auto;
    min-width: 0;
    min-height: 2.1rem;
    margin: 0;
    padding: 0.35rem 0.35rem 0.35rem 0;
    background: transparent !important;
    color: var(--cw-blue);
    box-shadow: none !important;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 0;
  }

  #submitForm .formStepContainer .cw-btn--back::before {
    content: '\2190';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    min-width: 1.75rem;
    font-size: 0.8125rem;
    line-height: 1;
    font-weight: 700;
    color: var(--cw-blue);
    border-radius: 50%;
    background: rgba(4, 86, 194, 0.08);
    border: 1px solid rgba(4, 86, 194, 0.2);
    box-sizing: border-box;
  }

  #submitForm .formStepContainer .cw-btn--back:hover::before,
  #submitForm .formStepContainer .cw-btn--back:focus-visible::before {
    background: rgba(4, 86, 194, 0.14);
    border-color: rgba(4, 86, 194, 0.32);
    color: var(--cw-blue-dark);
  }

  #submitForm .formStepContainer .cw-btn--back:hover,
  #submitForm .formStepContainer .cw-btn--back:focus-visible {
    background: transparent !important;
    color: var(--cw-blue-dark);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  #submitForm .formStepContainer .cw-btn--back:active {
    transform: none;
  }
}

/* ——— Buttons ——— */
.cw-btn {
  font-family: var(--cw-font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--cw-radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.1s;
}

.cw-btn:active {
  transform: scale(0.98);
}

/* Primary actions: brand blue (steps stay orange) */
.cw-btn--next,
.cw-btn--submit {
  background: var(--cw-blue);
  color: var(--cw-white);
  box-shadow: 0 2px 10px rgba(4, 86, 194, 0.25);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.1s ease,
    box-shadow 0.18s ease;
}

.cw-btn--next:hover,
.cw-btn--submit:hover {
  background: var(--cw-blue-dark);
  color: var(--cw-white);
  box-shadow: 0 4px 16px rgba(4, 86, 194, 0.32);
}

.cw-btn--back {
  background: #d4dbe4;
  color: #1e293b;
}

.cw-btn--back:hover {
  background: #c6ced9;
  color: #0f172a;
}

/* ——— Selectize (all wizard selects) ——— */
/* Selectize copies classes from <select> onto .selectize-control — strip Bootstrap
   .form-select chrome here so only .selectize-input reads as one field (no double box). */
#submitForm .selectize-control {
  font-family: var(--cw-font);
  width: 100%;
  border: none !important;
  padding: 0 !important;
  margin: 0;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  min-height: 0;
}

#submitForm .selectize-control.single .selectize-input {
  min-height: calc(1rem + 1.3rem + 2px);
  /* Extra right padding so the caret never overlaps short labels (e.g. "CA") in half-width columns */
  padding: 0.65rem 3rem 0.65rem 1rem;
  border-radius: var(--cw-radius-md);
  border: 1px solid #c5ced9;
  font-family: var(--cw-font);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--cw-text);
  background-color: var(--cw-white) !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transition: border-color 0.15s, box-shadow 0.15s;
  overflow: visible;
}

#submitForm .selectize-control.single .selectize-input:hover:not(.disabled) {
  border-color: #a8b6c8;
}

#submitForm .selectize-control.single .selectize-input.focus {
  border-color: var(--cw-blue);
  box-shadow: 0 0 0 3px rgba(4, 86, 194, 0.12);
}

#submitForm .selectize-control.single .selectize-input.dropdown-active {
  border-radius: var(--cw-radius-md);
  border-color: var(--cw-blue);
  box-shadow: 0 0 0 3px rgba(4, 86, 194, 0.12);
}

#submitForm .selectize-control.single .selectize-input.dropdown-active::before {
  display: none;
}

#submitForm .selectize-control.single .selectize-input > input {
  font-family: var(--cw-font) !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  color: var(--cw-text) !important;
}

#submitForm .selectize-control.single .selectize-input > input::placeholder {
  color: var(--cw-text-muted);
  opacity: 1;
}

#submitForm .selectize-control.single .selectize-input .item {
  font-family: var(--cw-font);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--cw-text);
  overflow: visible;
  white-space: nowrap;
  text-overflow: clip;
  margin-right: 0.25rem;
}

#submitForm .selectize-control.single .selectize-input:after {
  right: 0.85rem;
  margin-top: -2px;
  border-width: 6px 5px 0 5px;
  border-color: #64748b transparent transparent transparent;
}

#submitForm .selectize-control.single .selectize-input.dropdown-active:after {
  margin-top: -3px;
  border-width: 0 5px 6px 5px;
  border-color: transparent transparent var(--cw-blue) transparent;
}

/* Detached dropdown (dropdownParent: body) */
.cw-selectize-dropdown {
  z-index: 2000;
  margin-top: 6px !important;
  margin-left: 0 !important;
  border-radius: var(--cw-radius-md) !important;
  border: 1px solid #c5ced9 !important;
  background: var(--cw-white);
  box-shadow:
    0 16px 48px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(4, 86, 194, 0.08);
  overflow: hidden;
  font-family: var(--cw-font);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--cw-text);
}

.cw-selectize-dropdown .selectize-dropdown-content {
  max-height: min(320px, 50vh);
}

.cw-selectize-dropdown .option {
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.cw-selectize-dropdown .option:hover,
.cw-selectize-dropdown .option.active {
  background: rgba(4, 86, 194, 0.08);
  color: var(--cw-blue-dark);
}

.cw-selectize-dropdown .option.active {
  font-weight: 600;
}

/* ——— Trust row ——— */
.cw-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding: 0.5rem 0;
}

.cw-trust-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cw-text-muted);
  letter-spacing: 0.02em;
}

.cw-trust-stars {
  color: var(--cw-orange);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ——— Misc ——— */
.secureLockAndTermsContainer {
  color: var(--cw-text-muted);
  font-size: 0.8125rem;
}

.cw-footer {
  border-top-color: rgba(4, 86, 194, 0.1) !important;
  background: transparent;
  font-family: var(--cw-font);
}

.cw-landing > footer.cw-footer {
  margin-top: 0 !important;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--cw-bg);
  border-top: 1px solid rgba(4, 86, 194, 0.1);
}

.cw-footer a {
  color: var(--cw-blue);
  font-weight: 500;
  text-decoration: none;
}

.cw-footer a:hover {
  text-decoration: underline;
  color: var(--cw-blue-dark);
}

/* jQuery Validate */
#submitForm label.error {
  color: #c2410c;
  font-weight: 500;
}

#submitForm .is-invalid {
  border-color: #f97316 !important;
}
