:root {
  --bg: #f5f5f6;
  --panel: #ffffff;
  --panel-soft: #f8f9fc;
  --text: #0d1320;
  --muted: #4f5b6b;
  --line: #d9dce2;
  --line-soft: #e8ebf1;
  --blue-1: #eaf1ff;
  --blue-2: #bfd0fb;
  --blue-3: #82a6f7;
  --blue-4: #4f7ff0;
  --blue-5: #2449a6;
  --shadow: 0 20px 48px rgba(17, 24, 39, 0.07);
  --shadow-soft: 0 16px 34px rgba(17, 24, 39, 0.06);
  --shadow-strong: 0 24px 56px rgba(17, 24, 39, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max: 1680px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
  line-height: 1.2;
}

body {
  min-height: 100vh;
  padding-bottom: 170px;
  background:
    radial-gradient(circle at top left, rgba(130, 166, 247, 0.16), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #f3f5f9 100%);
}

.page-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 34px 0;
}

.mini-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-content {
  min-width: 0;
}

.form-shell {
  width: 100%;
  background: transparent;
  padding-bottom: 120px;
}

.topbar {
  margin-bottom: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.entry-banner {
  margin-bottom: 20px;
  padding: 18px 22px;
  border: 1px solid #d7e2fb;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  box-shadow: var(--shadow-soft);
}

.entry-banner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.entry-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.progress-copy-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.progress-stage-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  border: 1px solid #d7e2fb;
  color: var(--blue-5);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.home-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.home-link-btn:hover {
  transform: translateY(-1px);
  border-color: #c7d1e2;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

#stepTitleMini {
  color: var(--muted);
  font-weight: 600;
}

.progress-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.progress-helper {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.progress-group {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 255, 0.96));
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.progress-group-filing {
  min-width: 0;
}

.progress-group-checkout {
  min-width: 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e7e9ee;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.progress-bar-secondary {
  background: #e9eefc;
}

.progress-fill {
  height: 100%;
  width: 10%;
  background: #111318;
  border-radius: 999px;
  transition: width 0.25s ease;
}

#filingProgressFill {
  will-change: width;
  transition: width 460ms cubic-bezier(0.22, 0.68, 0.3, 1);
}

.progress-fill-secondary {
  width: 0;
  background: linear-gradient(135deg, #2755d7, #4f7ff0);
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.question-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 28px;
  align-items: center;
  min-height: clamp(360px, calc(100dvh - 310px), 460px);
}

.question-layout.single-column-layout {
  grid-template-columns: 1fr;
  min-height: auto;
}

.question-layout.payment-layout {
  grid-template-columns: minmax(0, 1.14fr) minmax(340px, 0.86fr);
  align-items: stretch;
}

.question-panel,
.payment-preview-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: none;
  padding: 30px 32px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.payment-checkout-panel,
.payment-summary-panel {
  gap: 18px;
}

.question-panel-wide h2 {
  max-width: none;
}

.question-panel h2,
.payment-preview-panel h2 {
  margin: 0 0 8px;
  max-width: 18ch;
  font-size: clamp(1.95rem, 2.85vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.question-subtext {
  margin: 0 0 18px;
  max-width: 72ch;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.illustration-panel {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  background: transparent;
}

.illustration-panel svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.contact-fab {
  position: relative;
  justify-self: start;
  z-index: 2;
}

.contact-fab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid rgba(130, 166, 247, 0.28);
  border-radius: 999px;
  background: linear-gradient(135deg, #2755d7, #4f7ff0);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(39, 85, 215, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.contact-fab-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(39, 85, 215, 0.22);
}

.contact-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(320px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(130, 166, 247, 0.26);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(10px);
}

.contact-popover-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-popover-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.contact-popover-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-popover-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contact-popover-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.contact-popover-link:hover {
  transform: translateY(-1px);
  border-color: #9eb8fa;
  box-shadow: 0 12px 24px rgba(79, 127, 240, 0.12);
}

.payment-selection-summary {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid #d7e2fb;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}

.payment-selection-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.payment-selection-summary strong {
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}

.payment-selection-summary span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.payment-breakdown-card {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid #d7e2fb;
  border-radius: 18px;
  background: #ffffff;
}

.payment-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #183153;
}

.payment-breakdown-row span {
  color: var(--muted);
}

.payment-breakdown-row strong {
  font-size: 1rem;
}

.payment-breakdown-row-total {
  padding-top: 10px;
  border-top: 1px solid #e2eafc;
}

.payment-breakdown-row-total span,
.payment-breakdown-row-total strong {
  color: #0d2244;
  font-weight: 800;
}

.payment-breakdown-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.payment-method-tabs {
  display: flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfcff, #f2f6ff);
}

.payment-method-tab {
  position: relative;
  flex: 1 1 0;
  cursor: pointer;
}

.payment-method-tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.payment-method-tab span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.payment-method-tab input:checked + span {
  border-color: rgba(79, 127, 240, 0.24);
  background: linear-gradient(135deg, #2755d7, #4f7ff0);
  color: #fff;
  box-shadow: 0 14px 28px rgba(39, 85, 215, 0.18);
}

.payment-method-tab:hover span {
  transform: translateY(-1px);
}

.field-group {
  display: grid;
  gap: 18px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-span-2 {
  grid-column: span 2;
}

.field label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3c4655;
  letter-spacing: -0.01em;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  padding: 0 16px;
  min-height: 56px;
  color: var(--text);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  line-height: 1.2;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select {
  height: 56px;
  vertical-align: middle;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
  padding: 14px 16px;
  line-height: 1.5;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  border-color: #9eb8fa;
  box-shadow: 0 0 0 4px rgba(130, 166, 247, 0.18);
  background: #fff;
}

.field input:not([type="radio"]):not([type="checkbox"])::placeholder,
.field textarea::placeholder {
  color: #7a889b;
}

.field.has-error label,
.field.has-error .checkbox-option span {
  color: #a42d4d;
}

.field.has-error input:not([type="radio"]):not([type="checkbox"]),
.field.has-error select,
.field.has-error textarea,
.field.has-error .pill-option,
.field.has-error .checkbox-option {
  border-color: rgba(179, 54, 93, 0.55);
  box-shadow: 0 0 0 4px rgba(179, 54, 93, 0.12);
  background: #fff8fa;
}

.field,
.checkbox-row,
.package-option,
.dynamic-card,
.review-box,
.payment-box,
.question-panel,
.payment-preview-panel {
  scroll-margin-top: 24px;
  scroll-margin-bottom: 180px;
}

.field-error-text {
  margin: 10px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #a42d4d;
}

.pill-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.04);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.checkbox-option:hover {
  transform: translateY(-1px);
  border-color: #c5cfdd;
}

.checkbox-option input {
  margin-top: 2px;
  accent-color: var(--blue-5);
}

.checkbox-option span {
  display: block;
  font-weight: 600;
  color: #2e3642;
  line-height: 1.5;
}

.checkbox-option:has(input:checked) {
  border-color: #90acf7;
  background: linear-gradient(180deg, #f8fbff, #eaf1ff);
  box-shadow: 0 14px 28px rgba(79, 127, 240, 0.12);
}

.stack-options {
  display: grid;
  gap: 10px;
}

.pill-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.04);
  text-align: center;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.pill-option.block {
  width: 100%;
  border-radius: 14px;
  min-height: 64px;
  padding: 16px 18px;
  justify-content: flex-start;
}

.pill-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.pill-option span {
  display: block;
  width: 100%;
  font-weight: 600;
  color: #2e3642;
  line-height: 1.25;
  text-align: center;
}

.pill-option.block span {
  line-height: 1.4;
  text-align: left;
}

.pill-option:has(input:checked) {
  border-color: #90acf7;
  background: linear-gradient(180deg, #f8fbff, #eaf1ff);
  box-shadow: 0 14px 28px rgba(79, 127, 240, 0.16);
}

.pill-option:hover {
  transform: translateY(-1px);
  border-color: #c5cfdd;
}

.info-box,
.agreement-box,
.review-box,
.payment-box,
.embed-placeholder {
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: #fff;
}

.info-box {
  padding: 16px 18px;
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.6;
  border-color: #d7e2fb;
  background: linear-gradient(180deg, #f8fbff, #f2f6ff);
}

.review-box {
  padding: 18px;
  min-height: 180px;
  background: var(--panel-soft);
}

.review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.review-item:last-child {
  border-bottom: none;
}

.review-key {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.review-value {
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
}

.agreement-box,
.payment-box {
  padding: 18px;
}

.payment-box {
  display: grid;
  gap: 16px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f9fbff);
  box-shadow: var(--shadow-soft);
}

.payment-embed-surface {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 14px;
  background: linear-gradient(180deg, #f6f9ff, #edf3ff);
}

.payment-box-head {
  display: grid;
  gap: 4px;
}

.payment-box-head strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.payment-box-head span {
  color: var(--muted);
  line-height: 1.55;
}

.payment-method-list {
  display: grid;
  gap: 12px;
}

.payment-provider-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-provider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-provider-badge-stripe {
  background: linear-gradient(135deg, #635bff, #8a84ff);
  color: #fff;
}

.payment-provider-badge-paypal {
  background: linear-gradient(135deg, #003087, #009cde);
  color: #fff;
}

.payment-provider-caption {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.payment-method-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.payment-method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

.payment-method-copy {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.payment-method-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.payment-method-copy span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.payment-method-option:hover .payment-method-copy,
.payment-method-option:has(input:checked) .payment-method-copy {
  transform: translateY(-1px);
  border-color: #90acf7;
  background: linear-gradient(180deg, #f8fbff, #eaf1ff);
  box-shadow: 0 14px 28px rgba(79, 127, 240, 0.12);
}

.payment-method-note {
  margin-top: 18px;
  margin-bottom: 0;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border: 1px solid #cfd9eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(17, 24, 39, 0.05);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  line-height: 1.5;
}

.checkbox-row.has-error {
  color: #a42d4d;
}

.checkbox-row + .field-error-text {
  margin-top: 10px;
}

.decision-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.decision-guide-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow: var(--shadow-soft);
}

.decision-guide-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.decision-guide-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.decision-guide-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.decision-guide-card.is-required {
  border-color: rgba(79, 127, 240, 0.24);
}

.decision-guide-card.is-required .decision-guide-label {
  background: #eef4ff;
  color: var(--blue-5);
}

.decision-guide-card.is-recommended {
  border-color: rgba(20, 104, 79, 0.18);
}

.decision-guide-card.is-recommended .decision-guide-label {
  background: #ecf8f2;
  color: #14684f;
}

.decision-guide-card.is-optional {
  border-color: rgba(154, 93, 22, 0.18);
}

.decision-guide-card.is-optional .decision-guide-label {
  background: #fff4e8;
  color: #9a5d16;
}

.transparency-card {
  margin: 18px 0 22px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-soft);
}

.transparency-card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.transparency-card-head strong {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.transparency-card-head p,
.payment-trust-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.transparency-column {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: #fff;
}

.transparency-column > strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.transparency-row,
.payment-trust-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.transparency-row:last-child,
.payment-trust-row:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.transparency-row span,
.payment-trust-row span {
  color: var(--muted);
  line-height: 1.5;
}

.transparency-row strong,
.payment-trust-row strong {
  max-width: 220px;
  text-align: right;
  font-size: 0.95rem;
  line-height: 1.45;
}

.package-decision-guide {
  margin-top: 0;
}

.package-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  align-items: stretch;
}

.package-option {
  position: relative;
  display: block;
  cursor: pointer;
  isolation: isolate;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.package-option::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  background:
    radial-gradient(circle at top center, rgba(79, 127, 240, 0.3), transparent 62%),
    radial-gradient(circle at bottom center, rgba(36, 73, 166, 0.14), transparent 68%);
  opacity: 0;
  filter: blur(18px);
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.package-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  margin: 0;
}

.package-option-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  padding: 28px 20px 20px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  overflow: hidden;
}

.package-option-badge {
  position: absolute;
  top: -12px;
  left: 22px;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2755d7, #4f7ff0);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(39, 85, 215, 0.22);
}

.package-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.package-option-label {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-5);
}

.package-option-save {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue-5);
  font-size: 0.74rem;
  font-weight: 800;
}

.package-option-main {
  display: block;
  margin-bottom: 20px;
}

.package-option-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.package-option-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.package-option-price {
  font-size: 3rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--text);
}

.package-option-plus {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.package-option-total {
  display: block;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line-soft);
  font-size: 0.95rem;
  color: var(--muted);
}

.package-option-total strong {
  color: var(--text);
  font-size: 1.02rem;
}

.package-option-note {
  display: block;
  min-height: 78px;
  color: var(--muted);
  line-height: 1.65;
}

.package-option-list-wrap {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.package-option-list-item {
  position: relative;
  display: block;
  padding-left: 28px;
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
}

.package-option-list-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2755d7, #5e8fff);
  box-shadow: 0 6px 14px rgba(39, 85, 215, 0.18);
}

.package-option-action {
  display: block;
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2755d7, #4f7ff0);
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 14px 28px rgba(39, 85, 215, 0.18);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.package-option.featured .package-option-shell {
  border-color: rgba(79, 127, 240, 0.32);
  box-shadow: 0 20px 42px rgba(79, 127, 240, 0.12);
}

.package-option:not(.featured):last-child .package-option-action {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.06);
}

.package-option:hover,
.package-option:has(input:checked) {
  transform: translateY(-2px);
}

.package-option:hover .package-option-shell {
  border-color: #c8d7fb;
  background: #fff;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
}

.package-option:has(input:checked)::before {
  opacity: 1;
}

.package-option:has(input:checked) .package-option-shell {
  border-color: rgba(79, 127, 240, 0.42);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 32%, rgba(222, 234, 255, 0.96) 100%),
    radial-gradient(circle at top, rgba(113, 160, 255, 0.18), transparent 62%);
  box-shadow:
    0 24px 48px rgba(79, 127, 240, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.package-option:has(input:checked) .package-option-action {
  background: linear-gradient(135deg, #0f214c, #2449a6);
  color: #fff;
  box-shadow: 0 16px 30px rgba(36, 73, 166, 0.22);
}

.package-option.is-unavailable {
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.package-option.is-unavailable::before {
  opacity: 0;
}

.package-option.is-unavailable .package-option-shell {
  border-color: #d7dde8;
  background:
    linear-gradient(180deg, rgba(246, 248, 252, 0.98), rgba(237, 241, 247, 0.98));
  box-shadow: none;
}

.package-option.is-unavailable:hover,
.package-option.is-unavailable:has(input:checked) {
  transform: none;
}

.package-option.is-unavailable > .package-option-shell > *:not(.package-unavailable-overlay) {
  opacity: 0.42;
}

.package-option.is-unavailable .package-option-action {
  border: 1px solid #d5dbe6;
  background: #eef2f7;
  color: #657184;
  box-shadow: none;
}

.package-unavailable-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #485468;
  background: rgba(255, 255, 255, 0.58);
  pointer-events: none;
}

.embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 22px;
  color: var(--muted);
  background: linear-gradient(180deg, #f7f9fe, #eef3ff);
}

.card-embed-mock {
  width: min(100%, 460px);
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
  display: grid;
  gap: 14px;
}

.card-embed-row {
  display: block;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dfe6f8, #edf2ff);
}

.card-embed-row-lg {
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d6e1ff, #eef3ff);
}

.card-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card-embed-note {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.payment-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: #f8fbff;
  color: var(--text);
  line-height: 1.55;
}

.payment-status.info {
  border-color: #d8e2fb;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
}

.payment-status.success {
  border-color: #c8e5d7;
  background: linear-gradient(180deg, #f4fcf7, #ecf8f1);
}

.payment-status.error {
  border-color: #f1d1d4;
  background: linear-gradient(180deg, #fff8f8, #fff0f1);
}

.stripe-card-shell {
  width: min(100%, 560px);
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
  display: grid;
  gap: 14px;
}

.paypal-buttons-shell {
  width: min(100%, 560px);
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
  display: grid;
  gap: 18px;
}

.paypal-buttons-mount {
  min-height: 48px;
}

.paypal-buttons-mount > div,
.paypal-buttons-mount iframe {
  width: 100% !important;
  max-width: 100%;
}

.payment-provider-unavailable {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--muted);
  line-height: 1.55;
}

.payment-feature-list {
  display: grid;
  gap: 12px;
}

.payment-feature-item {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.payment-feature-item strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.payment-feature-item span {
  color: var(--muted);
  line-height: 1.55;
}

.payment-clarity-stack {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.payment-trust-card,
.payment-timeline-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.payment-trust-card {
  display: grid;
  gap: 12px;
}

.payment-timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.payment-timeline-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: #fff;
}

.payment-timeline-item strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.payment-timeline-item span {
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .decision-guide-grid,
  .transparency-columns,
  .payment-timeline-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .transparency-card,
  .payment-trust-card,
  .payment-timeline-card {
    padding: 16px;
  }

  .transparency-row,
  .payment-trust-row {
    flex-direction: column;
  }

  .transparency-row strong,
  .payment-trust-row strong {
    max-width: none;
    text-align: left;
  }
}

.payment-action-hint {
  margin-top: 0;
}

.stripe-card-mount {
  min-height: 52px;
  padding: 16px 18px;
  border: 1px solid #d9e1ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.stripe-card-mount.StripeElement--focus {
  border-color: #90acf7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 0 0 4px rgba(130, 166, 247, 0.12);
}

.stripe-card-mount.StripeElement--invalid {
  border-color: #d98692;
}

.payment-action-preview {
  width: min(100%, 420px);
  display: grid;
  gap: 18px;
}

.payment-action-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.payment-preview-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f214c, #2449a6);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 32px rgba(36, 73, 166, 0.18);
}

.payment-preview-chip.muted {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.05);
}

.people-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.person-panel {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: var(--shadow-soft);
}

.person-panel h3 {
  margin: 8px 0;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

.person-panel-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.dynamic-stack {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.dynamic-empty {
  padding: 16px 18px;
  border: 1px dashed #c8d2e3;
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  line-height: 1.6;
}

.dynamic-card {
  padding: 18px;
  border: 1px solid #dfe7f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
}

.dynamic-card-head {
  margin-bottom: 16px;
}

.dynamic-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-1);
  color: var(--blue-5);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dynamic-card h4 {
  margin: 10px 0 6px;
  font-size: 1.02rem;
}

.dynamic-card-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-intro {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.package-choice-modal {
  width: min(820px, 100%);
}

.package-choice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.package-choice-option {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  min-height: 132px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.05);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  overflow: hidden;
}

.package-choice-option > * {
  width: 100%;
}

.package-choice-option:hover,
.package-choice-option.active {
  transform: translateY(-1px);
  border-color: #90acf7;
  background: linear-gradient(180deg, #f8fbff, #eaf1ff);
  box-shadow: 0 16px 28px rgba(79, 127, 240, 0.12);
}

.package-choice-option.featured {
  border-color: #9bb4fa;
}

.package-choice-option.is-unavailable {
  border-color: #d7dde8;
  background:
    linear-gradient(180deg, rgba(246, 248, 252, 0.98), rgba(237, 241, 247, 0.98));
  box-shadow: none;
  cursor: not-allowed;
}

.package-choice-option.is-unavailable:hover,
.package-choice-option.is-unavailable.active {
  transform: none;
  border-color: #d7dde8;
  background:
    linear-gradient(180deg, rgba(246, 248, 252, 0.98), rgba(237, 241, 247, 0.98));
  box-shadow: none;
}

.package-choice-option.is-unavailable > *:not(.package-unavailable-overlay) {
  opacity: 0.42;
}

.package-choice-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.package-choice-price {
  color: var(--muted);
  line-height: 1.5;
}

.package-choice-total {
  margin-top: 2px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.package-choice-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.nav-row {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(1380px, calc(100vw - 48px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 220, 226, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(14px);
  z-index: 125;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    box-shadow 0.22s ease;
}

.nav-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.momentum-eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--blue-5);
}

.nav-row-copy strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.nav-row-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.momentum-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(36, 73, 166, 0.08);
  color: var(--blue-5);
  font-size: 0.83rem;
  font-weight: 800;
  white-space: nowrap;
}

.back-btn,
.next-btn,
.submit-btn,
.outline-btn,
.primary-btn {
  display: inline-grid;
  place-items: center;
  min-height: 58px;
  height: 58px;
  padding: 0 26px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.back-btn {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.05);
}

.next-btn,
.submit-btn,
.primary-btn {
  border: none;
  background: linear-gradient(135deg, #0f214c, #2449a6);
  color: #fff;
  box-shadow: 0 16px 32px rgba(36, 73, 166, 0.24);
}

.outline-btn {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.05);
}

.back-btn:hover,
.next-btn:hover,
.submit-btn:hover,
.outline-btn:hover,
.primary-btn:hover {
  transform: translateY(-1px);
}

.back-btn:focus-visible,
.next-btn:focus-visible,
.submit-btn:focus-visible,
.outline-btn:focus-visible,
.primary-btn:focus-visible,
.home-link-btn:focus-visible,
.modal-close:focus-visible,
.pill-option:focus-within,
.package-option:focus-within,
.payment-method-option:focus-within {
  outline: none;
  box-shadow: 0 0 0 4px rgba(130, 166, 247, 0.18);
}

.hidden {
  display: none !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 30, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}

.modal-overlay.active {
  display: flex;
}

.feedback-toast {
  position: fixed;
  top: 26px;
  right: 30px;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 20px;
  border: 1px solid rgba(179, 54, 93, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 26px 56px rgba(17, 24, 39, 0.16);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  z-index: 240;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.feedback-toast.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feedback-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
}

.feedback-toast-copy {
  display: grid;
  gap: 4px;
}

.feedback-toast-copy strong {
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.feedback-toast-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-card {
  position: relative;
  width: min(760px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}

.modal-card h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.modal-scroll {
  max-height: 380px;
  overflow: auto;
  padding-right: 6px;
  color: var(--muted);
  line-height: 1.7;
}

.modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.modal-close:hover {
  transform: translateY(-1px);
  border-color: #c6cfdb;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.08);
}

.success-modal {
  width: min(640px, 100%);
}

.tracking-key-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid #dbe3f2;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfcff, #f2f6ff);
}

.tracking-key-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-5);
}

.tracking-key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tracking-key-row code {
  flex: 1 1 340px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #cfd9eb;
  background: #fff;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-key-btn {
  min-width: 110px;
}

.success-modal-note {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 980px) {
  .people-split {
    grid-template-columns: 1fr;
  }

  .package-list {
    grid-template-columns: 1fr;
  }

  .package-choice-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .progress-stack {
    grid-template-columns: 1fr;
  }

  .question-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .question-layout.payment-layout {
    grid-template-columns: 1fr;
  }

  .question-panel {
    padding: 30px;
  }

  .payment-preview-panel {
    padding: 30px;
  }

  .illustration-panel {
    order: -1;
    justify-content: flex-start;
  }

  .illustration-panel svg {
    max-width: 360px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 230px;
  }

  body.mobile-entry-active .nav-row,
  body.mobile-keyboard-open .nav-row,
  body.mobile-entry-active .feedback-toast,
  body.mobile-keyboard-open .feedback-toast {
    opacity: 0;
    transform: translateY(18px);
    pointer-events: none;
  }

  body.mobile-entry-active .contact-popover,
  body.mobile-keyboard-open .contact-popover {
    display: none !important;
  }

  .page-shell {
    padding: 16px 16px 0;
  }

  .progress-copy {
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .question-panel h2,
  .payment-preview-panel h2 {
    font-size: 2.2rem;
    max-width: none;
  }

  .field,
  .checkbox-row,
  .package-option,
  .dynamic-card,
  .review-box,
  .payment-box,
  .question-panel,
  .payment-preview-panel {
    scroll-margin-bottom: 220px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .form-shell {
    padding-bottom: 180px;
  }

  .nav-row {
    left: 16px;
    right: 16px;
    bottom: 14px;
    transform: none;
    width: auto;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
  }

  .contact-fab {
    grid-column: 1 / -1;
  }

  .nav-row-copy {
    grid-column: 1 / -1;
  }

  .nav-row-copy p {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .momentum-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .back-btn,
  .next-btn,
  .submit-btn {
    width: 100%;
  }

  .question-panel,
  .payment-preview-panel,
  .topbar,
  .modal-card {
    padding: 22px;
  }

  .progress-meta {
    font-size: 0.79rem;
  }

  .progress-helper {
    font-size: 0.9rem;
  }

  .payment-selection-summary strong {
    font-size: 1.18rem;
  }

  .payment-method-tabs {
    flex-direction: column;
  }

  .payment-method-tab span {
    min-height: 48px;
  }

  .embed-placeholder {
    min-height: 220px;
  }

  .stripe-card-shell,
  .paypal-buttons-shell {
    width: 100%;
    padding: 18px;
  }

  .tracking-key-row {
    align-items: stretch;
  }

  .copy-key-btn {
    width: 100%;
  }

  .card-embed-grid {
    grid-template-columns: 1fr;
  }

  .contact-popover {
    width: min(320px, calc(100vw - 48px));
  }

  .contact-popover {
    width: min(320px, calc(100vw - 32px));
  }

  .contact-fab-button {
    min-height: 48px;
    padding: 0 18px;
  }

  .feedback-toast {
    top: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(248px + env(safe-area-inset-bottom));
  }

  .page-shell {
    padding: 12px 12px 0;
  }

  .topbar,
  .entry-banner,
  .question-panel,
  .payment-preview-panel,
  .payment-box,
  .modal-card {
    padding: 18px;
    border-radius: 20px;
  }

  .progress-copy,
  .progress-stack,
  .question-layout,
  .people-split,
  .dynamic-stack,
  .package-list,
  .package-choice-list,
  .payment-feature-list {
    gap: 14px;
  }

  .progress-meta,
  .payment-breakdown-row,
  .payment-provider-row,
  .tracking-key-row,
  .package-option-top,
  .package-option-price-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .question-panel h2,
  .payment-preview-panel h2 {
    font-size: clamp(1.78rem, 8vw, 2.2rem);
    line-height: 1.04;
  }

  .question-subtext,
  .payment-breakdown-note,
  .payment-feature-item span,
  .payment-status,
  .info-box,
  .review-value,
  .dynamic-card-copy {
    font-size: 0.95rem;
  }

  .field-group,
  .stack-options {
    gap: 14px;
  }

  .field label {
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  .field input:not([type="radio"]):not([type="checkbox"]),
  .field select {
    min-height: 54px;
    height: 54px;
  }

  .field textarea {
    min-height: 112px;
  }

  .pill-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pill-option {
    width: 100%;
  }

  .package-option-shell,
  .person-panel,
  .dynamic-card,
  .tracking-key-card,
  .payment-breakdown-card,
  .payment-selection-summary,
  .stripe-card-shell,
  .paypal-buttons-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .package-option-shell {
    gap: 14px;
  }

  .package-option-main,
  .package-option-list-wrap,
  .payment-action-preview {
    gap: 12px;
  }

  .package-option-total,
  .payment-selection-summary strong {
    font-size: 1.12rem;
  }

  .payment-method-tab span {
    justify-content: flex-start;
    text-align: left;
    padding: 14px 16px;
  }

  .payment-provider-badge {
    width: 100%;
    justify-content: center;
  }

  .payment-action-preview,
  .card-embed-mock,
  .stripe-card-shell,
  .paypal-buttons-shell {
    width: 100%;
  }

  .contact-fab-button,
  .copy-key-btn {
    width: 100%;
  }

  .contact-popover {
    width: min(100vw - 24px, 360px);
  }

  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-card {
    width: min(100%, calc(100vw - 24px));
    max-height: min(92dvh, 760px);
    overflow: auto;
  }

  .modal-actions,
  .package-choice-actions {
    flex-direction: column;
  }

  .modal-actions .outline-btn,
  .modal-actions .primary-btn,
  .package-choice-actions .outline-btn,
  .package-choice-actions .primary-btn {
    width: 100%;
  }

  .nav-row {
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-radius: 18px;
  }

  .nav-row-copy {
    gap: 6px;
  }

  .nav-row-copy strong {
    font-size: 0.94rem;
  }

  .nav-row-copy p {
    font-size: 0.88rem;
  }

  .momentum-badge {
    display: none;
  }

  .back-btn,
  .next-btn,
  .submit-btn,
  .outline-btn,
  .primary-btn {
    min-height: 54px;
    height: 54px;
    padding: 0 16px;
    border-radius: 14px;
  }

  .feedback-toast {
    top: auto;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }
}

@media (max-width: 420px) {
  .progress-stage-chip,
  .home-link-btn {
    width: 100%;
  }

  .payment-breakdown-row strong,
  .tracking-key-row code {
    font-size: 0.92rem;
  }

  .question-panel,
  .payment-preview-panel,
  .payment-box,
  .topbar,
  .modal-card {
    padding: 16px;
  }
}
