/* Krak Card Form Styles - Premium Popup Design */

/* Design Tokens */
:root {
  --ds-brand: #2b2b2b;
  --ds-primary: #1a1a1a;
  --ds-neutral: #6b7280;
  --ds-dimmed: #9ca3af;
  --ds-bg-container: #f8f7f5;
  --ds-bg-card: #f9fafb;
  --ds-bg-raised: #ffffff;
  --ds-border: #e5e7eb;
  --ds-border-light: rgba(0, 0, 0, 0.08);
  --ds-button-primary: #000000;
  --ds-button-primary-hover: #1a1a1a;
  --ds-button-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
  --ds-button-text: #ffffff;
  --ds-input-bg: #ffffff;
  --ds-input-border: #d1d5db;
  --ds-input-focus: #000000;
  --ds-error: #ef4444;
  --ds-success: #10b981;
  --ds-brand-purple: #7c3aed;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --font-family: "Kraken-Brand", "IBM Plex Sans", Helvetica, Arial, sans-serif;
  --transition-fast: 150ms cubic-bezier(0, -0.01, 0.19, 0.99);
  --transition-base: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --coin-pattern: url("/assets/hero-card223.webp");
  --krak-card-img: url("/assets/hero-card223.webp");

  /* Spacing scale (rem-based, B4) */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
}

/* ─── Safety net: no horizontal overflow ─── */
html,
body {
  overflow-x: hidden;
}

/* ─── Image responsiveness ─── */
img {
  max-width: 100%;
  height: auto;
}

/* ─── Pending button state ─── */
button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* ─── Premium Popup Overlay ─── */
/* Base (mobile): full-screen, no gap, top-aligned */
.popup-overlay {
  position: fixed;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.6); */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
  overflow-y: auto;
  width: 100vw;
  box-sizing: border-box;
}

/* 640px+: centered with padding */
@media (min-width: 640px) {
  .popup-overlay {
    padding: 16px;
    align-items: center;
    overflow-y: unset;
    width: auto;
  }
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ─── Form Container ─── */
/* Base (mobile): full width */
.krak-form-container {
  width: 100%;
  max-width: 100%;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
}

/* 640px+: constrained width */
@media (min-width: 640px) {
  .krak-form-container {
    max-width: 720px;
    width: 90%;
    min-height: unset;
  }
}

.popup-overlay.active .krak-form-container {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* ─── Form Wrapper ─── */
/* Base (mobile): full-height, full-width, generous padding */
.krak-form-wrapper {
  background-color: #f8f7f5;
  background-color: var(--ds-bg-container, #f8f7f5);
  background-image: url("assets/hero-card223.webp");
  background-image: var(--coin-pattern);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  border-radius: 0;
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: var(--spacing-lg) var(--spacing-md);
  padding-top: 48px;
  /* keyboard-padding: dvh safe + system UI safe-area (B4q-R2) */
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
  min-height: 100dvh;          /* full viewport on mobile (dvh = dynamic, URL bar safe) */
  /* max-height removed — content can grow; outer scrolling handled by body/overlay */
  display: flex;
  flex-direction: column;
  overflow-y: auto;            /* scroll if content exceeds viewport */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  max-width: 100%;
}

/* 640px+: contained card */
@media (min-width: 640px) {
  .krak-form-wrapper {
    border-radius: var(--radius-xl);
    min-height: auto;          /* don't force full height on tablet+ */
    max-height: 90vh;          /* fits inside the popup card */
    padding: var(--spacing-2xl);
    margin: auto 20px;
    max-width: 680px;
  }
}

/* 1024px+: wider desktop card */
@media (min-width: 1024px) {
  .krak-form-wrapper {
    max-width: 720px;
  }
}

/* ─── Welcome Screen (Step 1 splash, added by B1q) ─── */
.welcome-screen {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}
.welcome-screen .eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #6b7280;
}
.welcome-screen h3 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}
@media (min-width: 640px) {
  .welcome-screen h3 { font-size: 1.875rem; }
}
.welcome-screen .description {
  font-size: 1rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
}
.welcome-points {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.welcome-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.welcome-points li::before {
  content: '✓';
  color: #16a34a;
  font-weight: 700;
}

/* ─── Country chip + dropdown ─── */
.phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  position: relative;
}
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.875rem;
  min-height: 3rem;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.country-chip:hover { border-color: #9ca3af; }
.country-chip[aria-expanded="true"] { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.chip-flag { font-size: 1.25rem; line-height: 1; }
.chip-code { font-weight: 600; }
.chip-caret { font-size: 0.75rem; color: #6b7280; }

.phone-row input#phone {
  flex: 1;
  min-width: 0;        /* allow shrink — fixes iOS Safari overflow */
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  max-width: 360px;
  max-height: 18rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.625rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 50;
  padding: 0.25rem;
}
.country-dropdown[hidden] { display: none; }
.country-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 0.9375rem;
  border-radius: 0.375rem;
  min-height: 2.75rem;
}
.country-option:hover, .country-option:focus { background: #f3f4f6; }
.country-option .opt-flag { font-size: 1.125rem; }
.country-option .opt-name { flex: 1; }
.country-option .opt-code { color: #6b7280; font-variant-numeric: tabular-nums; }

/* ─── Field hint (sister of .field-error) ─── */
.field-hint {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #6b7280;
  margin-top: 0.25rem;
  min-height: 1.125rem;
}
.field-hint:empty { min-height: 0; }

.krak-form-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ds-button-gradient);
  z-index: 10;
}

.krak-form-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: var(--krak-card-img) no-repeat center center;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* ─── Close Button ─── */
/* Base (mobile): ≥44px iOS HIG minimum */
.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 2.75rem;  /* 44px */
  height: 2.75rem; /* 44px */
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 20;
}

.popup-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--ds-primary);
  stroke-width: 2;
}

/* 640px+: slightly smaller is fine on desktop but keep ≥44px */
@media (min-width: 640px) {
  .popup-close {
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.05);
  }

  .popup-close svg {
    width: 14px;
    height: 14px;
  }
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

/* ─── Form Header ─── */
.form-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.form-header h2 {
  font-family: var(--font-family);
  font-size: 24px;
  font-weight: 500;
  color: var(--ds-primary);
  margin: 0 0 var(--spacing-sm) 0;
  letter-spacing: -0.96px;
  line-height: 1.2;
}

.form-header p {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--ds-neutral);
  margin: 0;
  line-height: 1.5;
}

/* 640px+: larger headings */
@media (min-width: 640px) {
  .form-header h2 {
    font-size: 32px;
  }

  .form-header p {
    font-size: 16px;
  }
}

/* ─── Heading hierarchy spacing ─── */
h1 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h3 {
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

/* ─── Progress Bar / Indicator ─── */
/* Visible above-fold on mobile (A3q Q19) */
.progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.progress-step {
  flex-shrink: 0;
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--ds-border);
  z-index: 1;
  transition: background var(--transition-base);
}

.progress-step.completed:not(:last-child)::after {
  background: var(--ds-button-primary);
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ds-bg-card);
  border: 2px solid var(--ds-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-neutral);
  position: relative;
  z-index: 2;
  transition: all var(--transition-base);
}

.step-label {
  font-family: var(--font-family);
  font-size: 10px;
  color: var(--ds-neutral);
  margin-top: var(--spacing-xs);
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color var(--transition-base);
}

/* 640px+: fuller step indicators */
@media (min-width: 640px) {
  .progress-bar {
    padding: 0 var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
  }

  .progress-step {
    min-width: unset;
    flex-shrink: unset;
  }

  .progress-step:not(:last-child)::after {
    top: 16px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .step-label {
    font-size: 12px;
    max-width: unset;
    overflow: unset;
    text-overflow: unset;
    white-space: unset;
  }
}

.progress-step.active .step-circle {
  background: var(--ds-button-primary);
  border-color: var(--ds-button-primary);
  color: var(--ds-button-text);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.1);
}

.progress-step.completed .step-circle {
  background: var(--ds-button-primary);
  border-color: var(--ds-button-primary);
  color: var(--ds-button-text);
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
  color: var(--ds-primary);
  font-weight: 500;
}

/* .progress-fill — orphan (markup uses step-circle dots, not a fill bar); removed B4q-R2 */

#onetrust-consent-sdk {
  display: none !important;
}

/* ─── Form Steps ─── */
.form-step {
  display: none;
  position: relative;
  z-index: 100001;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: none;
  -webkit-animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  -moz-animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@-webkit-keyframes slideIn {
  from {
    opacity: 0;
    -webkit-transform: translateX(30px);
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@-moz-keyframes slideIn {
  from {
    opacity: 0;
    -moz-transform: translateX(30px);
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    -moz-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

/* ─── Step title / description ─── */
/* Base (mobile) */
.step-title {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 500;
  color: var(--ds-primary);
  margin: 0 0 var(--spacing-sm) 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.step-description {
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--ds-neutral);
  margin: 0 0 var(--spacing-lg) 0;
  line-height: 1.6;
}

/* 640px+: larger type */
@media (min-width: 640px) {
  .step-title {
    font-size: 24px;
  }

  .step-description {
    font-size: 15px;
  }
}

/* ─── Form Groups ─── */
.form-group {
  margin-bottom: 1.25rem; /* consistent row gap */
}

.form-label {
  display: block;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-primary);
  margin-bottom: 0.5rem; /* label → input gap */
}

.form-required {
  color: var(--ds-error);
  margin-left: 2px;
}

/* ─── Form Inputs ─── */
/* Base font-size 16px kills iOS auto-zoom on ALL viewports */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem; /* ≥48px height with 16px line-height */
  font-family: var(--font-family);
  font-size: 16px; /* 16px base — no override needed below 640px */
  color: var(--ds-primary);
  background: var(--ds-input-bg);
  border: 1.5px solid var(--ds-input-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--ds-input-focus);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--ds-dimmed);
}

/* .form-textarea — orphan (no textarea in form HTML); removed B4q-R2 */

/* .form-select standalone overrides — orphan (no <select> in HTML); removed B4q-R2 */

.form-error {
  font-family: var(--font-family);
  font-size: 13px;
  color: var(--ds-error);
  margin-top: var(--spacing-xs);
  display: none;
}

.form-group.error .form-input,
.form-group.error .form-select {
  border-color: var(--ds-error);
}

.form-group.error .form-error {
  display: block;
}

/* ─── Field-error span (added by B1) ─── */
.field-error {
  display: block;
  color: #d62828;
  font-size: 0.875rem;
  line-height: 1.4;
  margin-top: 0.375rem;
  min-height: 1.25rem; /* reserve space to avoid CLS */
}

.field-error:empty {
  min-height: 0;
}

/* ─── Consent row (added by B1) ─── */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 1rem 0;
}

.consent-row input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
}

/* ─── Option Grid (answer cards) ─── */
/* Base (mobile): single column, full-width cards, ≥48px tap targets */
.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xs);
}

.option-card {
  position: relative;
  cursor: pointer;
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ≥48px tap target on answer cards */
.option-card-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 1rem;            /* ≥48px height */
  min-height: 3rem;         /* 48px hard floor */
  font-family: var(--font-family);
  font-size: 15px;
  color: var(--ds-primary);
  background: var(--ds-bg-card);
  border: 1.5px solid var(--ds-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  box-sizing: border-box;
}

/* 640px+: multi-column grid */
@media (min-width: 640px) {
  .option-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-sm);
  }
}

.option-card input:checked + .option-card-label {
  background: var(--ds-bg-container);
  border-color: var(--ds-button-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.option-card-label:hover {
  border-color: var(--ds-input-focus);
}

.option-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* .form-row (two-column grid) — orphan (first/last name fields removed); removed B4q-R2 */

/* ─── Form Actions / Nav Buttons ─── */
/* Base (mobile): stacked full-width, ≥48px */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md) 0 var(--spacing-lg);
  border-top: 1px solid var(--ds-border-light);
  gap: var(--spacing-sm);
}

/* 640px+: restore horizontal layout */
@media (min-width: 640px) {
  .form-actions {
    padding-top: var(--spacing-lg);
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

/* Base (mobile): full-width buttons, ≥48px */
.btn {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  min-height: 3rem; /* 48px Material 3 floor */
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  outline: none;
  flex: 1;
  box-sizing: border-box;
}

/* 640px+: natural sizing */
@media (min-width: 640px) {
  .btn {
    font-size: 15px;
    padding: 12px 24px;
    flex: unset;
  }
}

.btn-primary {
  background: var(--ds-button-gradient);
  color: var(--ds-button-text);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--ds-button-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--ds-primary);
  border: 1.5px solid var(--ds-border);
}

.btn-secondary:hover {
  background: var(--ds-bg-card);
  border-color: var(--ds-input-focus);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── End Step - Premium Welcome Animation ─── */
.form-step-end {
  text-align: center;
  padding: var(--spacing-xl) 0;
  display: none;
}

.form-step-end.active {
  display: block;
  animation: welcomeReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes welcomeReveal {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.welcome-animation {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.welcome-card {
  width: 280px;
  height: 180px;
  margin: 0 auto var(--spacing-lg);
  background: var(--krak-card-img) no-repeat center center;
  background-size: contain;
  animation: cardFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateY(-15px) rotate(-5deg);
  }
}

.welcome-icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  position: relative;
}

.welcome-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPulse 2s ease-in-out infinite;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  }
}

.welcome-icon svg {
  width: 40px;
  height: 40px;
  stroke: white;
  stroke-width: 2.5;
  animation: checkDraw 0.6s ease-out 0.3s both;
}

@keyframes checkDraw {
  from {
    stroke-dasharray: 0, 100;
  }

  to {
    stroke-dasharray: 100, 0;
  }
}

.welcome-sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  animation: sparkle 1.5s ease-in-out infinite;
}

.welcome-sparkle:nth-child(1) {
  top: 0;
  left: 50%;
  animation-delay: 0s;
}

.welcome-sparkle:nth-child(2) {
  top: 30%;
  right: 10%;
  animation-delay: 0.3s;
}

.welcome-sparkle:nth-child(3) {
  bottom: 20%;
  left: 15%;
  animation-delay: 0.6s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.form-step-end h3 {
  font-family: var(--font-family);
  font-size: 28px;
  font-weight: 500;
  color: var(--ds-primary);
  margin: 0 0 var(--spacing-sm) 0;
  letter-spacing: -0.96px;
  line-height: 1.3;
  animation: textReveal 0.6s ease-out 0.2s both;
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.form-step-end .welcome-subtitle {
  font-family: var(--font-family);
  font-size: 16px;
  color: var(--ds-neutral);
  margin: 0 0 var(--spacing-lg) 0;
  line-height: 1.6;
  animation: textReveal 0.6s ease-out 0.4s both;
}

.email-notify {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--ds-primary);
  margin-top: var(--spacing-md);
  animation: textReveal 0.6s ease-out 0.6s both;
}

.email-notify svg {
  width: 20px;
  height: 20px;
  stroke: var(--ds-primary);
  stroke-width: 2;
}

/* ─── Progress Bar - Completed State ─── */
.progress-step.completed .step-circle::after {
  content: "✓";
  position: absolute;
  font-size: 14px;
  color: white;
}

/* .success-message / .success-icon — orphan (success screen uses .form-step-end/.welcome-icon); removed B4q-R2 */
