:root {
  --background: oklch(0.981 0.0053 106.5);
  --foreground: oklch(0.2641 0.0018 106.52);
  --muted-foreground: oklch(0.5591 0.0097 196.88);
  --primary: oklch(0.706 0.1237 214.92);
  --primary-soft: oklch(0.706 0.1237 214.92 / 0.06);
  --primary-line: oklch(0.706 0.1237 214.92 / 0.12);
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: rgba(255, 255, 255, 0.92);
  --white-line: rgba(255, 255, 255, 0.6);
  --destructive: oklch(0.755 0.1342 22.38);
  --logo-green: #1f7f93;
  --shadow-shell: 0 28px 110px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.05);
  --font-sans:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
}

body {
  margin: 0;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.quote-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 18%, rgba(236, 145, 151, 0.12), transparent 18%),
    radial-gradient(circle at 84% 14%, rgba(81, 193, 223, 0.18), transparent 22%),
    radial-gradient(circle at 50% 28%, rgba(255, 247, 235, 0.8), transparent 28%),
    linear-gradient(180deg, #f7fbfc 0%, #fbfaf6 48%, #f4fafc 100%);
}

.page-frame {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 0 auto;
  max-width: 1440px;
  padding: 2rem 2.5rem;
  width: 100%;
}

.quote-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--white-line);
  border-radius: 40px;
  box-shadow: var(--shadow-shell);
  overflow: hidden;
  position: relative;
}

.shell-inner {
  padding: 2.5rem 2.5rem 0;
}

.brand-hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(52, 150, 171, 0.34), transparent 19%),
    radial-gradient(circle at 30% 78%, rgba(231, 151, 156, 0.28), transparent 18%),
    radial-gradient(circle at 84% 22%, rgba(36, 126, 146, 0.34), transparent 22%),
    linear-gradient(115deg, #dceff3 0%, #f4ede2 48%, #d7edf2 100%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 30px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
  padding: 1.75rem 2.5rem;
  position: relative;
}

.hero-gloss,
.hero-orb {
  pointer-events: none;
  position: absolute;
}

.hero-gloss {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 40%, rgba(255, 255, 255, 0.08));
  inset: 0;
}

.hero-orb {
  border-radius: 999px;
  filter: blur(48px);
}

.hero-orb-teal {
  background: rgba(46, 142, 163, 0.22);
  height: 12rem;
  right: 2.5rem;
  top: -3.5rem;
  width: 12rem;
}

.hero-orb-blush {
  background: rgba(230, 164, 165, 0.18);
  bottom: 0;
  height: 11rem;
  left: 18%;
  width: 11rem;
}

.hero-content {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  position: relative;
}

.logo-tile {
  background: var(--logo-green);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(31, 127, 147, 0.16);
  display: inline-flex;
  padding: 1rem 1.25rem;
}

.logo-tile img {
  display: block;
  height: auto;
  object-fit: contain;
  width: 220px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 500;
  gap: 0.5rem;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.5rem;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    opacity 120ms ease,
    transform 120ms ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.button-primary {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 20px 40px oklch(0.706 0.1237 214.92 / 0.22);
  color: #fff;
}

.button-outline {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
  color: var(--foreground);
}

.top-booking {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.8);
  min-height: 48px;
}

.view-panel {
  padding: 2.5rem 0;
}

.intro-block {
  margin-bottom: 2rem;
  max-width: 92rem;
}

.eyebrow,
.card-kicker,
.result-kicker,
.scope-kicker {
  color: var(--muted-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin: 0;
  text-transform: uppercase;
}

.intro-block h2 {
  color: var(--foreground);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 0.75rem 0;
}

.intro-block p:not(.eyebrow),
.range-description,
.question-footer p,
.result-copy,
.scope-card p,
.lead-card p {
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

.intro-block p:not(.eyebrow) {
  font-size: 1.125rem;
  line-height: 1.78;
  max-width: 90rem;
}

.phone-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.choice-card,
.range-card,
.scope-card,
.lead-card {
  backdrop-filter: blur(8px);
  background: var(--card);
  border: 1px solid oklch(0.706 0.1237 214.92 / 0.1);
  box-shadow: var(--shadow-card);
}

.choice-card {
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 172px;
  padding: 1.5rem;
}

.choice-card[data-invalid="true"],
.range-card[data-invalid="true"] {
  border-color: oklch(0.755 0.1342 22.38 / 0.35);
  box-shadow:
    0 0 0 4px oklch(0.755 0.1342 22.38 / 0.1),
    var(--shadow-card);
}

.choice-copy,
.industry-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.choice-heading,
.industry-label strong {
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}

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

label {
  color: var(--foreground);
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

label span {
  font-size: 0.875rem;
  font-weight: 500;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"] {
  appearance: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.95));
  border: 1px solid oklch(0.706 0.1237 214.92 / 0.1);
  border-radius: 20px;
  box-shadow: none;
  min-height: 36px;
  outline: none;
  padding: 0 1.25rem;
  width: 100%;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 251, 0.95));
  background-position:
    calc(100% - 19px) 50%,
    calc(100% - 14px) 50%,
    0 0;
  background-repeat: no-repeat;
  background-size:
    5px 5px,
    5px 5px,
    100% 100%;
  padding-right: 2.4rem;
  color: var(--muted-foreground);
}

.field-error {
  color: var(--destructive);
  font-size: 0.875rem;
  margin: 0;
}

.range-card {
  border-radius: 28px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  padding: 1.75rem;
}

.range-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.range-title {
  align-items: center;
  color: var(--primary);
  display: flex;
  font-size: 1.5rem;
  font-weight: 500;
  gap: 0.5rem;
  line-height: 1.2;
  margin: 0 0 0.375rem;
}

.range-title span {
  font-size: 1rem;
}

.selected-box {
  background: var(--primary-soft);
  border-radius: 16px;
  min-width: 8.4rem;
  padding: 0.75rem 1rem;
  text-align: right;
}

.selected-box span {
  color: var(--muted-foreground);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.selected-box strong {
  color: var(--foreground);
  display: block;
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.2;
  margin-top: 0.25rem;
}

input[type="range"] {
  accent-color: var(--primary);
  display: block;
  margin: 1.25rem 0 0.75rem;
  width: 100%;
}

.marker-row {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  height: 1.5rem;
  position: relative;
}

.marker-row span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.marker-row span:first-child {
  transform: translateX(0);
}

.marker-row span:last-child {
  transform: translateX(-100%);
}

.question-footer {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
}

.question-footer p {
  max-width: 36rem;
}

.actions,
.lead-actions,
.result-actions {
  display: flex;
  gap: 0.75rem;
}

.result-view {
  padding: 2.5rem 0;
}

.result-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid oklch(0.706 0.1237 214.92 / 0.12);
  border-radius: 32px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.06);
  margin: 0 auto;
  max-width: 56rem;
  padding: 3.5rem 3rem;
  text-align: center;
}

.result-main {
  display: grid;
  gap: 1.25rem;
}

.result-kicker {
  color: var(--primary);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
}

.result-total {
  color: var(--foreground);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
}

.result-unit {
  color: var(--muted-foreground);
  font-size: 1.25rem;
  margin: 0.5rem 0 0;
}

.result-copy {
  margin: 0 auto;
  max-width: 42rem;
}

.result-actions {
  justify-content: center;
  margin-top: 2rem;
}

.scope-card,
.lead-card {
  border-radius: 26px;
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: left;
}

.scope-card {
  background: rgba(255, 255, 255, 0.76);
}

.scope-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1rem 0;
}

.scope-grid div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid oklch(0.706 0.1237 214.92 / 0.1);
  border-radius: 18px;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.6;
  padding: 0.75rem 1rem;
}

.lead-card {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  padding: 2rem;
}

.lead-card h2 {
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.lead-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.lead-wide {
  grid-column: 1 / -1;
}

.lead-actions {
  margin-top: 1.5rem;
}

.is-busy {
  cursor: wait;
}

@media (max-width: 900px) {
  .page-frame {
    padding: 1.25rem 1rem;
  }

  .shell-inner {
    padding: 1.25rem 1.25rem 0;
  }

  .brand-hero {
    padding: 1.5rem;
  }

  .hero-content,
  .question-footer,
  .range-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .logo-tile {
    width: fit-content;
  }

  .logo-tile img {
    width: 180px;
  }

  .card-grid,
  .field-grid,
  .scope-grid,
  .lead-grid {
    grid-template-columns: 1fr;
  }

  .question-footer .actions,
  .result-actions,
  .lead-actions {
    flex-direction: column;
  }

  .result-card {
    padding: 2.5rem 1.5rem;
  }
}

@media (max-width: 560px) {
  .quote-shell {
    border-radius: 28px;
  }

  .brand-hero {
    border-radius: 22px;
  }

  .intro-block h2 {
    font-size: 2.15rem;
  }

  .range-title {
    font-size: 1.25rem;
  }

  .selected-box {
    text-align: left;
  }

  .marker-row {
    font-size: 0.75rem;
  }
}
