/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a5fd4;
  --color-primary-dark: #1248a8;
  --color-primary-light: #eef5ff;
  --color-text: #1a1d26;
  --color-text-muted: #5c6370;
  --color-border: rgba(0, 0, 0, 0.08);
  --color-bg-gray: #f7f9fc;
  --color-white: #ffffff;
  --color-notice-bg: #fff8e6;
  --color-notice-border: #f5e6b8;
  --color-error: #d93025;
  --color-success: #0d7a4a;
  --radius-card: 24px;
  --radius-btn: 16px;
  --shadow-card: 0 4px 24px rgba(26, 95, 212, 0.08);
  --font-sans: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --max-width: 480px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --duration-fast: 0.24s;
  --duration-ui: 0.42s;
  --duration-reveal: 0.5s;
  --duration-hero: 0.58s;
  --transition-reveal: opacity var(--duration-reveal) var(--ease-smooth),
    transform var(--duration-reveal) var(--ease-smooth);
  --transition-ui: opacity var(--duration-ui) var(--ease-smooth),
    transform var(--duration-ui) var(--ease-smooth);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  :root {
    --duration-fast: 0.2s;
    --duration-ui: 0.32s;
    --duration-reveal: 0.35s;
    --duration-hero: 0.4s;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background: linear-gradient(180deg, #eef5ff 0%, #ffffff 45%, #f7f9fc 100%);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.page {
  width: 100%;
  max-width: var(--max-width);
  padding: var(--space-sm) var(--space-sm) var(--space-lg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) 0 var(--space-lg);
  text-align: center;
}

.hero--intro {
  min-height: calc(100dvh - var(--space-md) * 2 - var(--space-xl));
  min-height: calc(100svh - var(--space-md) * 2 - var(--space-xl));
  justify-content: center;
}

.hero--intro .hero__subtitle.hero__reveal:not(.is-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero--settled {
  min-height: 0;
  justify-content: flex-start;
  padding-bottom: var(--space-xs);
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1px solid rgba(26, 95, 212, 0.2);
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.brand-label {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__title-lead {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__title-lead[hidden] {
  display: none;
}

.hero__title {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  word-break: keep-all;
  min-height: calc(1.25em * 3);
  transition:
    transform var(--duration-hero) var(--ease-smooth),
    font-size var(--duration-hero) var(--ease-smooth),
    text-align var(--duration-hero) var(--ease-smooth);
}

.hero__title.is-settling {
  will-change: transform;
}

.hero__title--intro {
  font-size: clamp(51px, 13.5vw, 60px);
  text-align: center;
  align-self: center;
  width: 100%;
}

.hero__title--settled {
  font-size: clamp(34px, 9vw, 40px);
  text-align: left;
  align-self: stretch;
}

.hero__title-line {
  display: block;
  min-height: 1.25em;
}

.hero__title-accent {
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.04em;
}

.hero__title-accent .hero__title-typed {
  display: inline;
}

.hero__title.is-typing .hero__title-line.is-typing-active::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.05em;
  background: var(--color-primary);
  animation: heroCursorBlink 0.75s step-end infinite;
}

.hero__title.is-typing .hero__title-accent.is-typing-active::after {
  flex-shrink: 0;
  align-self: center;
  vertical-align: unset;
}

.hero__title.is-typing-done .hero__title-line.is-typing-active::after {
  display: none;
}

@keyframes heroCursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero__reveal {
  opacity: 0;
  transform: translateY(10px) translateZ(0);
  transition: var(--transition-reveal);
  will-change: opacity, transform;
}

.hero__reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  will-change: auto;
}

.hero__subtitle.hero__reveal.is-visible {
  position: static;
  width: auto;
  height: auto;
  margin-bottom: var(--space-sm);
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
}

.quote-reveal {
  opacity: 0;
  transform: translateY(14px) translateZ(0);
  transition: var(--transition-reveal);
  will-change: opacity, transform;
}

.quote-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  will-change: auto;
}

.quote-reveal[hidden] {
  display: none;
}

.quote-reveal.is-visible[hidden] {
  display: block;
}

.hero__subtitle {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  word-break: keep-all;
  text-align: left;
  align-self: stretch;
}

.hero--settled .hero__subtitle {
  margin-bottom: var(--space-xs);
}

.hero__badge,
.hero__title,
.hero__subtitle {
  transition:
    max-height var(--duration-ui) var(--ease-smooth),
    opacity var(--duration-fast) var(--ease-smooth),
    margin var(--duration-ui) var(--ease-smooth),
    padding var(--duration-ui) var(--ease-smooth),
    min-height var(--duration-ui) var(--ease-smooth);
}

.page.is-hero-compact .hero.hero--settled {
  min-height: 0;
  padding-top: var(--space-xs);
  padding-bottom: 0;
}

.page.is-hero-compact .hero.hero--settled .hero__badge,
.page.is-hero-compact .hero.hero--settled .hero__title,
.page.is-hero-compact .hero.hero--settled .hero__subtitle {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.page.is-hero-compact .hero.hero--settled + main #quote-section {
  margin-top: calc(-1 * var(--space-sm));
}

.page.is-hero-compact .hero.hero--settled + main .hero__benefits {
  margin-top: var(--space-sm);
}

@media (prefers-reduced-motion: reduce) {
  .hero__title.is-typing .hero__title-line.is-typing-active::after {
    display: none;
  }
}

.hero__benefits {
  list-style: none;
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  border: 1px solid rgba(26, 95, 212, 0.12);
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-card);
  padding: 10px 4px;
  margin: var(--space-md) 0 var(--space-sm);
}

.hero__benefits[hidden] {
  display: none;
}

.benefit-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 4px 6px;
  position: relative;
  text-align: center;
}

.benefit-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 18%;
  height: 64%;
  width: 1px;
  background: rgba(0, 0, 0, 0.08);
}

.benefit-item__emph {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.2;
  word-break: keep-all;
}

.benefit-item__text {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.2;
}

@media (max-width: 380px) {
  .hero__benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 8px 4px;
  }

  .benefit-item {
    min-height: 52px;
    padding: 10px 6px;
  }

  .benefit-item:nth-child(odd)::after {
    display: block;
  }

  .benefit-item:nth-child(even)::after {
    display: none;
  }

  .benefit-item:nth-child(1),
  .benefit-item:nth-child(2) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .benefit-item__emph {
    font-size: 14px;
  }
}

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  line-height: 1.35;
  word-break: keep-all;
}

.section-title__ai-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  background: rgba(26, 95, 212, 0.1);
  border-radius: 999px;
  vertical-align: middle;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .section-title__ai-badge {
    display: flex;
    margin: 6px 0 0;
    width: fit-content;
  }
}

.step-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  word-break: keep-all;
}

.wizard-step .section-title + .step-desc {
  margin-top: 0;
}

/* Quote section: autocomplete dropdown above AI card */
#quote-section {
  position: relative;
  z-index: 1;
}

#quote-section .step-indicator {
  margin-bottom: var(--space-md);
  gap: 4px;
}

#quote-section .ai-converse {
  margin-bottom: var(--space-sm);
  padding: var(--space-sm);
}

#quote-section .ai-converse__head {
  margin-bottom: var(--space-xs);
}

#quote-section .ai-converse__bubble {
  padding: var(--space-xs) var(--space-sm);
}

#quote-section .converse-answer {
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
}

#quote-section .converse-answer__label {
  margin-bottom: 6px;
}

#quote-section .form-group {
  margin-bottom: var(--space-md);
}

#quote-section .form-global-error {
  margin-bottom: var(--space-sm);
}

#quote-section .wizard-step > .btn--cta {
  margin-top: var(--space-sm);
}

#quote-section .wizard-step__actions {
  margin-top: var(--space-sm);
}

#quote-section .converse-answer .form-group + .form-group,
#quote-section .converse-answer .converse-field + .converse-field {
  margin-top: var(--space-sm);
}

#quote-section.is-ai-finalizing .wizard-step.is-active {
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.25s ease;
}

#quote-section:has(.autocomplete.is-open),
#quote-section.is-autocomplete-open {
  z-index: 30;
}

#quote-section.is-autocomplete-open .converse-answer {
  position: relative;
  z-index: 50;
}

#quote-section.is-autocomplete-open #step-1 > .btn--cta {
  position: relative;
  z-index: 1;
}

.wizard-step {
  overflow: visible;
}

.form-group:has(.autocomplete) {
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* Form groups */
.form-group {
  margin-bottom: var(--space-md);
  border: none;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.required {
  color: var(--color-primary);
  font-weight: 700;
}

/* Segmented control - contract type */
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.segmented__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.segmented__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: center;
}

.segmented__input:focus-visible + .segmented__btn {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.segmented__input:checked + .segmented__btn {
  border-color: var(--color-primary);
  background: linear-gradient(135deg, #1a5fd4 0%, #1248a8 100%);
  color: var(--color-white);
  box-shadow: 0 4px 12px rgba(26, 95, 212, 0.3);
}

.segmented__input:checked + .segmented__btn .segmented__desc {
  color: rgba(255, 255, 255, 0.85);
}

.segmented__title {
  font-size: 16px;
  font-weight: 800;
  display: block;
}

.segmented__desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 4px;
  display: block;
}

/* Search input */
.search-input {
  position: relative;
}

.search-input__field {
  width: 100%;
  min-height: 52px;
  padding: 14px 48px 14px 16px;
  font-size: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: #ffffff;
  color: var(--color-text);
  -webkit-appearance: none;
  appearance: none;
}

.search-input__field:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(26, 95, 212, 0.15);
}

.search-input__icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  display: flex;
  z-index: 1;
}

/* Car autocomplete */
.autocomplete {
  position: relative;
  z-index: 5;
}

.autocomplete.is-open {
  z-index: 60;
}

.autocomplete.is-open .search-input__field {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(26, 95, 212, 0.12);
}

.autocomplete__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 200;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-white);
  border: 1px solid rgba(26, 95, 212, 0.18);
  border-radius: 14px;
  box-shadow:
    0 4px 6px rgba(26, 95, 212, 0.04),
    0 12px 28px rgba(26, 95, 212, 0.14);
  max-height: min(280px, 45vh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.autocomplete__list[hidden] {
  display: none;
}

.autocomplete__list.is-viewport-anchored {
  position: fixed;
  right: auto;
  z-index: 250;
}

.autocomplete__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin: -2px -2px 4px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.autocomplete__header-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: -0.01em;
}

.autocomplete__header-count {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 3px 8px;
  border-radius: 100px;
}

.autocomplete__row {
  margin: 0;
  padding: 0;
}

.autocomplete__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  text-align: left;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  word-break: keep-all;
  transition: background 0.15s ease;
}

.autocomplete__item-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f0f6ff 0%, #ffffff 100%);
  border: 1px solid rgba(26, 95, 212, 0.12);
  color: var(--color-primary);
}

.autocomplete__item-text {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
  font-weight: 600;
}

.autocomplete__match {
  font-weight: 800;
  color: var(--color-primary);
  background: transparent;
  padding: 0;
}

.autocomplete__item:hover,
.autocomplete__item.is-active {
  background: var(--color-primary-light);
}

.autocomplete__item.is-active {
  box-shadow: inset 3px 0 0 var(--color-primary);
  padding-left: 9px;
}

.autocomplete__item:hover .autocomplete__item-icon,
.autocomplete__item.is-active .autocomplete__item-icon {
  background: var(--color-white);
  border-color: rgba(26, 95, 212, 0.25);
}

/* Prepayment selection */
.prepayment-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.prepayment-btn__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.prepayment-btn__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-sm) 6px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  word-break: keep-all;
}

.prepayment-btn__input:focus-visible + .prepayment-btn__label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.prepayment-btn__input:checked + .prepayment-btn__label {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

/* Period buttons */
.period-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.period-btn__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.period-btn__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-sm);
  font-size: 15px;
  font-weight: 700;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: var(--color-white);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.period-btn__input:focus-visible + .period-btn__label {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.period-btn__input:checked + .period-btn__label {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

/* AI 대화형 견적 (질문 + 답변 폼) */
.ai-converse {
  margin-bottom: var(--space-sm);
  padding: var(--space-sm);
  border-radius: 16px;
  background: linear-gradient(165deg, #eef5ff 0%, #f8fbff 55%, #ffffff 100%);
  border: 1px solid rgba(26, 95, 212, 0.12);
  position: relative;
  z-index: 2;
}

.ai-converse__head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.ai-converse__avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.ai-converse__orb-core {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a5fd4 0%, #4d8ef0 100%);
  box-shadow: 0 0 14px rgba(26, 95, 212, 0.4);
}

.ai-converse__orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(26, 95, 212, 0.3);
  animation: aiOrbRing 2.4s var(--ease-soft) infinite;
}

.ai-converse__orb-ring--delay {
  animation-delay: 1.1s;
}

.ai-converse.is-analyzing .ai-converse__orb-core {
  animation: aiOrbPulse 1.4s var(--ease-soft) infinite;
}

.ai-converse.is-analyzing .ai-converse__orb-ring {
  animation-duration: 1.6s;
}

.ai-converse.is-done .ai-converse__orb-core {
  background: linear-gradient(135deg, #0d7a4a 0%, #1a9d5c 100%);
  box-shadow: 0 0 12px rgba(13, 122, 74, 0.35);
}

.ai-converse.is-awaiting .ai-converse__orb-core,
.ai-converse.is-awaiting .ai-converse__orb-ring {
  animation: none;
}

.ai-converse__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-converse__name {
  display: inline-flex;
  align-items: center;
  gap: 0.08em;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.2;
}

.ai-converse__status {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

.ai-converse.is-idle .ai-converse__status {
  animation: aiStatusBlink 2.2s var(--ease-soft) infinite;
}

.ai-converse.is-analyzing .ai-converse__status {
  animation: aiStatusBlink 0.9s var(--ease-soft) infinite;
}

.ai-converse__steps {
  display: flex;
  gap: 6px;
  list-style: none;
  flex-shrink: 0;
}

.ai-converse__step {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--color-text-muted);
  background: rgba(0, 0, 0, 0.04);
  transition: background var(--duration-fast) var(--ease-smooth), color var(--duration-fast) var(--ease-smooth);
}

.ai-converse__step.is-active {
  color: var(--color-primary);
  background: rgba(26, 95, 212, 0.12);
}

.ai-converse__step.is-done {
  color: var(--color-success);
  background: rgba(13, 122, 74, 0.1);
}

.ai-converse__bubble {
  margin: 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border-radius: 4px 16px 16px 16px;
  border: 1px solid rgba(26, 95, 212, 0.1);
  box-shadow: 0 2px 12px rgba(26, 95, 212, 0.06);
}

.ai-converse__question {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 6px;
  word-break: keep-all;
  transition: opacity 0.2s ease;
  min-height: 1.4em;
}

.ai-converse__question.is-typing .ai-converse__question-text::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 3px;
  vertical-align: -0.05em;
  background: var(--color-primary);
  animation: heroCursorBlink 0.75s step-end infinite;
}

.ai-converse__question.is-typing-done .ai-converse__question-text::after {
  display: none;
}

.ai-converse.is-analyzing .ai-converse__question {
  color: var(--color-primary);
}

.ai-converse__hint,
.ai-converse__insight:not([hidden]) {
  opacity: 0;
  transform: translateY(8px) translateZ(0);
  transition: var(--transition-ui);
}

.ai-converse__hint.is-revealed,
.ai-converse__insight.is-revealed {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.ai-converse__hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  word-break: keep-all;
}

.ai-converse__insight {
  margin-top: var(--space-sm);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(26, 95, 212, 0.08);
  border-radius: 8px;
  text-align: center;
}

.ai-converse__insight[hidden] {
  display: none;
}

.ai-converse__progress {
  height: 3px;
  margin-top: var(--space-sm);
  background: rgba(26, 95, 212, 0.1);
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ai-converse.is-analyzing .ai-converse__progress,
.ai-converse.is-done .ai-converse__progress {
  opacity: 1;
}

.ai-converse__progress-bar {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: 3px;
  background: linear-gradient(90deg, #1a5fd4, #6ba3f7);
}

.ai-converse.is-analyzing .ai-converse__progress-bar {
  animation: aiProgressIndeterminate 1.4s var(--ease-soft) infinite;
}

.ai-converse.is-done .ai-converse__progress-bar,
.ai-converse.is-awaiting .ai-converse__progress-bar {
  width: 100%;
  animation: none;
  background: linear-gradient(90deg, #0d7a4a, #1a9d5c);
}

.converse-answer {
  position: relative;
  isolation: isolate;
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: var(--color-bg-gray);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: visible;
  transition: var(--transition-ui);
}

.converse-answer.converse-answer--hidden,
.wizard-controls--hidden {
  opacity: 0;
  transform: translateY(10px) translateZ(0);
  pointer-events: none;
  transition: var(--transition-ui);
}

.converse-answer.converse-answer--revealed,
.wizard-controls--revealed {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  pointer-events: auto;
  transition: var(--transition-ui);
}

.converse-answer.converse-answer--revealed:not(.converse-answer--aura-done) {
  border-color: rgba(26, 95, 212, 0.2);
  animation: converseAnswerAura 2.6s var(--ease-soft) 1 forwards;
}

.converse-answer.converse-answer--revealed.converse-answer--aura-done {
  border-color: rgba(26, 95, 212, 0.28);
  box-shadow:
    0 0 0 1px rgba(26, 95, 212, 0.14),
    0 0 16px 3px rgba(26, 95, 212, 0.1);
}

.converse-answer.converse-answer--revealed.converse-answer--aura-done:focus-within {
  border-color: rgba(26, 95, 212, 0.45);
  box-shadow:
    0 0 0 2px rgba(26, 95, 212, 0.18),
    0 0 20px 6px rgba(26, 95, 212, 0.16),
    0 0 36px 12px rgba(26, 95, 212, 0.08);
}

.converse-answer.converse-answer--revealed:not(.converse-answer--aura-done)::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(26, 95, 212, 0.14) 0%,
    rgba(26, 95, 212, 0.04) 55%,
    transparent 72%
  );
  animation: converseAuraGlow 2.6s var(--ease-soft) 1 forwards;
}

.converse-answer.converse-answer--revealed.converse-answer--aura-done::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(26, 95, 212, 0.16) 0%,
    rgba(26, 95, 212, 0.05) 55%,
    transparent 72%
  );
}

.converse-answer.converse-answer--revealed.converse-answer--aura-done:focus-within::after {
  opacity: 1;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(26, 95, 212, 0.22) 0%,
    rgba(26, 95, 212, 0.08) 60%,
    transparent 75%
  );
}

@keyframes converseAnswerAura {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(26, 95, 212, 0),
      0 0 12px 0 rgba(26, 95, 212, 0.04);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(26, 95, 212, 0.16),
      0 0 18px 4px rgba(26, 95, 212, 0.12),
      0 0 28px 10px rgba(26, 95, 212, 0.06);
  }
}

@keyframes converseAuraGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

.converse-answer::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 28px;
  width: 14px;
  height: 14px;
  z-index: 1;
  background: var(--color-bg-gray);
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  transform: rotate(45deg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.converse-answer.converse-answer--revealed::before {
  border-color: rgba(26, 95, 212, 0.18);
}

.converse-answer.converse-answer--revealed:focus-within::before {
  border-color: rgba(26, 95, 212, 0.35);
  box-shadow: -2px -2px 8px rgba(26, 95, 212, 0.08);
}

.converse-answer__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.converse-answer .form-group {
  margin-bottom: 0;
}

.converse-answer .form-group + .form-group,
.converse-answer .converse-field + .converse-field,
.converse-answer .form-group.converse-field + .form-group.converse-field {
  margin-top: var(--space-md);
}

.converse-field {
  border: none;
  padding: 0;
  margin: 0;
}

.converse-field.is-converse-pending {
  display: none;
  margin: 0;
  overflow: hidden;
}

.converse-field.is-converse-focus,
.converse-field.is-converse-done {
  display: block;
  animation: converseFieldIn var(--duration-ui) var(--ease-smooth);
}

#step-3 [data-step3-extra].is-step3-extra-visible {
  animation: converseFieldIn var(--duration-ui) var(--ease-smooth);
}

#step-3 [data-step3-extra][hidden] {
  display: none;
}

.converse-field.is-converse-focus {
  pointer-events: auto;
}

.converse-field.is-converse-done {
  pointer-events: auto;
}

@keyframes converseFieldIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-label--compact {
  font-size: 13px;
  margin-bottom: 6px;
}

#quote-section.is-autocomplete-open .ai-converse {
  z-index: 0;
}

@keyframes aiOrbRing {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes aiOrbPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes aiStatusBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes aiProgressIndeterminate {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(320%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .converse-field.is-converse-focus,
  .converse-field.is-converse-done {
    animation: none;
  }

  .converse-answer.converse-answer--revealed:not(.converse-answer--aura-done),
  .converse-answer.converse-answer--revealed.converse-answer--aura-done {
    animation: none;
    border-color: rgba(26, 95, 212, 0.22);
    box-shadow:
      0 0 0 1px rgba(26, 95, 212, 0.12),
      0 0 14px rgba(26, 95, 212, 0.1);
  }

  .converse-answer.converse-answer--revealed:not(.converse-answer--aura-done)::after,
  .converse-answer.converse-answer--revealed.converse-answer--aura-done::after {
    animation: none;
    opacity: 0.65;
  }

  .ai-converse__orb-ring,
  .ai-converse__orb-core,
  .ai-converse__status,
  .ai-converse__progress-bar {
    animation: none !important;
  }

  .ai-converse__question.is-typing .ai-converse__question-text::after {
    display: none;
  }

}

/* Notice */
.notice-reveal {
  opacity: 0;
  transform: translateY(12px) translateZ(0);
  transition: var(--transition-reveal);
}

.notice-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) translateZ(0);
}

.notice-reveal[hidden] {
  display: none;
}

.notice-reveal.is-visible[hidden] {
  display: flex;
}

.notice-box {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-notice-bg);
  border: 1px solid var(--color-notice-border);
  border-radius: var(--radius-btn);
  margin-bottom: var(--space-md);
}

.notice-box__icon {
  flex-shrink: 0;
  color: #b8860b;
  margin-top: 2px;
}

.notice-box__text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.notice-box__text p {
  font-size: 12px;
  line-height: 1.55;
  color: var(--color-text-muted);
  word-break: keep-all;
}

/* Footer */
.site-footer {
  margin-top: var(--space-xl);
  padding: var(--space-lg) var(--space-md) calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.site-footer__brand {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.site-footer__desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.site-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: 12px;
  margin-bottom: var(--space-md);
}

.site-footer__links a,
.site-footer__link-btn {
  color: var(--color-text-muted);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-footer__links a:hover,
.site-footer__link-btn:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.site-footer__links span {
  color: var(--color-border);
}

.site-footer__copy {
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.55;
  word-break: keep-all;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition:
    opacity var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth),
    box-shadow var(--duration-fast) var(--ease-smooth),
    background var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth);
}

.btn:active:not(:disabled) {
  transform: scale(0.98) translateZ(0);
  transition-duration: 0.12s;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Step wizard */
.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-md);
  list-style: none;
  padding: 0;
}

.step-indicator__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  opacity: 0.45;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.step-indicator__item.is-active,
.step-indicator__item.is-done {
  opacity: 1;
}

.step-indicator__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  background: var(--color-bg-gray);
  color: var(--color-text-muted);
  border: 2px solid transparent;
}

.step-indicator__item.is-active .step-indicator__num {
  background: var(--color-primary);
  color: var(--color-white);
}

.step-indicator__item.is-done .step-indicator__num {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.step-indicator__label {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-muted);
  line-height: 1.2;
  word-break: keep-all;
}

.step-indicator__item.is-active .step-indicator__label {
  color: var(--color-primary);
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step.is-active {
  animation: stepIn var(--duration-ui) var(--ease-smooth);
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-step.is-active {
    animation: none;
  }
}

.wizard-step .btn--cta {
  margin-top: var(--space-md);
}

.wizard-step__actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.wizard-step__actions--submit {
  grid-template-columns: 1fr 1.4fr;
}

.wizard-step__actions .btn--cta,
.wizard-step__actions .btn--submit {
  margin-top: 0;
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  box-shadow: none;
  font-weight: 700;
}

.btn--cta {
  background: linear-gradient(135deg, #1a5fd4 0%, #1248a8 100%);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(26, 95, 212, 0.35);
}

.btn--cta:focus-visible {
  outline: 3px solid rgba(26, 95, 212, 0.5);
  outline-offset: 2px;
}

.btn--submit {
  position: relative;
  background: linear-gradient(135deg, #1a5fd4 0%, #1248a8 100%);
  color: var(--color-white);
}

.btn--submit.is-loading .btn__text {
  visibility: hidden;
}

.btn__loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.btn--submit.is-loading .btn__loading {
  display: flex !important;
}

.btn__spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpinner 0.7s linear infinite;
}

@keyframes btnSpinner {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn__spinner {
    animation: none;
    border-top-color: rgba(255, 255, 255, 0.85);
  }
}

.btn--dialog-close {
  margin-top: var(--space-md);
  background: var(--color-bg-gray);
  color: var(--color-text);
  font-size: 15px;
}

/* Form card */
.form-card {
  scroll-margin-top: var(--space-md);
}

.form-card__intro {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.form-input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  background: #ffffff;
  color: var(--color-text);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 95, 212, 0.15);
}

.form-input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.phone-input-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.phone-input-group__sep {
  font-size: 16px;
  color: var(--color-text-muted);
  user-select: none;
  text-align: center;
}

.phone-input-group__part {
  width: 100%;
  min-width: 0;
  text-align: center;
}

.phone-input-group__part--fixed {
  color: var(--color-text);
  background: #ffffff;
  cursor: default;
}

.phone-input-group__part--fixed:focus {
  border-color: var(--color-border);
  background: #ffffff;
  box-shadow: none;
}

#step-3 .lead-form .phone-input-group__part {
  min-height: 48px;
  padding: 12px 8px;
}

.field-error {
  font-size: 13px;
  color: var(--color-error);
  margin-top: 6px;
}

.field-error--temp {
  color: var(--color-primary);
}

.form-global-error {
  margin: 0 0 var(--space-md);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-error);
  background: rgba(217, 48, 37, 0.08);
  border: 1px solid rgba(217, 48, 37, 0.2);
  border-radius: 10px;
  line-height: 1.45;
  word-break: keep-all;
}

.form-global-error[hidden] {
  display: none;
}

.form-global-error--visible {
  animation: formGlobalErrorIn 0.25s ease;
}

@keyframes formGlobalErrorIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.field-error[hidden] {
  display: none;
}

/* Agree */
.agree-group {
  border: none;
  margin: var(--space-lg) 0;
}

#step-3 .lead-form .converse-answer {
  margin-bottom: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
}

#step-3 .lead-form .converse-answer .form-group + .form-group {
  margin-top: var(--space-sm);
}

#step-3 .lead-form .form-label--compact {
  margin-bottom: 6px;
  font-size: 14px;
}

#step-3 .lead-form .form-input {
  min-height: 48px;
  padding: 12px 14px;
}

#step-3 .lead-form .agree-group {
  margin: var(--space-sm) 0 var(--space-xs);
}

#step-3 .lead-form .agree-item {
  min-height: 38px;
  padding: 2px 0;
  gap: var(--space-xs);
}

#step-3 .lead-form .agree-item__label {
  font-size: 13px;
  gap: var(--space-xs);
}

#step-3 .lead-form .agree-item__view {
  min-height: 38px;
  padding: 6px 8px;
  font-size: 12px;
}

#step-3 .lead-form .security-note {
  margin: 0 0 var(--space-xs);
  padding: 0;
  font-size: 11px;
  line-height: 1.45;
}

#step-3 .wizard-step__actions--submit {
  margin-top: var(--space-sm);
  gap: var(--space-xs);
}

#step-3 .wizard-step__actions--submit .btn {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 15px;
}

.agree-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 44px;
  padding: var(--space-xs) 0;
}

.agree-item__label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 14px;
  cursor: pointer;
  flex: 1;
  line-height: 1.4;
}

.agree-item__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}

.agree-item__view {
  flex-shrink: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  min-height: 44px;
}

.agree-item__view:focus-visible {
  outline: 2px solid var(--color-primary);
  border-radius: 4px;
}

.security-note {
  font-size: 12px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  word-break: keep-all;
  padding: var(--space-sm) 0;
}

/* Success */
.success-message {
  margin-top: var(--space-lg);
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(165deg, #edf8f2 0%, #f8fffb 52%, #ffffff 100%);
  border: 1px solid rgba(13, 122, 74, 0.16);
  border-radius: var(--radius-card);
  box-shadow:
    0 10px 36px rgba(13, 122, 74, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}

.success-message[hidden] {
  display: none;
}

.success-message__visual {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
}

.success-message__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #14a866 0%, #0d7a4a 100%);
  box-shadow: 0 8px 22px rgba(13, 122, 74, 0.28);
}

.success-message__ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(13, 122, 74, 0.22);
}

.success-message__badge {
  display: inline-block;
  margin-bottom: var(--space-xs);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-success);
  background: rgba(13, 122, 74, 0.1);
  border-radius: 999px;
}

.success-message__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-success);
  margin-bottom: var(--space-sm);
}

.success-message__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 280px;
  margin: 0 auto;
  word-break: keep-all;
}

.lead-form.is-submitted .success-message:not([hidden]) {
  animation: successReveal 0.55s var(--ease-smooth) both;
}

.lead-form.is-submitted .success-message:not([hidden]) .success-message__icon {
  animation: successIconPop 0.48s var(--ease-smooth) 0.1s both;
}

.lead-form.is-submitted .success-message:not([hidden]) .success-message__ring {
  animation: successRingPulse 1.8s var(--ease-soft) 0.45s infinite;
}

@keyframes successReveal {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes successIconPop {
  from {
    opacity: 0;
    transform: scale(0.55);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes successRingPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-form.is-submitted .success-message:not([hidden]),
  .lead-form.is-submitted .success-message:not([hidden]) .success-message__icon,
  .lead-form.is-submitted .success-message:not([hidden]) .success-message__ring {
    animation: none;
  }
}

.page.is-submit-success .hero__benefits,
.page.is-submit-success .notice-box {
  display: none !important;
}

#quote-section.is-submit-success .step-indicator,
#quote-section.is-submit-success .ai-converse,
#quote-section.is-submit-success .form-global-error {
  display: none;
}

.lead-form.is-submitted .converse-answer,
.lead-form.is-submitted .agree-group,
.lead-form.is-submitted .security-note,
.lead-form.is-submitted .wizard-step__actions,
.lead-form.is-submitted .btn--submit {
  display: none;
}

.lead-form.is-submitted .success-message {
  margin-top: 0;
}

/* Dialog */
.terms-dialog {
  border: none;
  border-radius: var(--radius-card);
  padding: 0;
  max-width: calc(100% - 32px);
  width: 400px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.terms-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.terms-dialog__inner {
  padding: var(--space-lg);
}

.terms-dialog__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.terms-dialog__body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-height: 50vh;
  overflow-y: auto;
}
