/* ============================================================
   CloudForge — Cloud & DevOps Client Discovery Questionnaire
   Design system + layout (vanilla CSS only)
   ==============================================brand============== */

:root {
  --primary: #0d9488;
  --primary-hover: #0f766e;
  --primary-muted: rgba(13, 148, 136, 0.12);
  --secondary: #1e293b;
  --accent: #38bdf8;
  --background: #0b1220;
  --surface: #111827;
  --surface-elevated: #1a2332;
  --surface-glass: rgba(26, 35, 50, 0.72);
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.32);
  --success: #10b981;
  --error: #f43f5e;
  --warning: #f59e0b;

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing & radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);

  /* Layout */
  --container: 1120px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.28s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.botcheck {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  /* background: linear-gradient(135deg, var(--primary), var(--accent)); */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 12px rgba(13, 148, 136, 0.35);
  flex-shrink: 0;
}

.brand-text {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  display: none;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (min-width: 640px) {
  .brand-tag {
    display: inline-block;
  }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.nav-link:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .btn-nav {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease),
    color var(--duration) var(--ease), transform 0.15s var(--ease), box-shadow var(--duration) var(--ease);
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--muted);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(56, 189, 248, 0.1), transparent 50%),
    var(--background);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* Hero architecture visual */
.hero-visual {
  display: none;
}

@media (min-width: 900px) {
  .hero-visual {
    display: block;
  }
}

.arch-preview {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.arch-node {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 5.5rem;
}

.arch-node--cloud {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.25), rgba(56, 189, 248, 0.15));
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--text);
  min-width: 7rem;
}

.arch-node--accent {
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--accent);
}

.arch-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.arch-line {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, var(--border-strong), transparent);
}

/* ========== SECTIONS COMMON ========== */
.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.est-time {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ========== SAMPLE CARDS ========== */
.samples {
  padding: 4.5rem 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.samples-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 800px) {
  .samples-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sample-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

.sample-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.sample-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-muted);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.sample-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sample-card-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.sample-block h4 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sample-block ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.sample-block li + li {
  margin-top: 0.25rem;
}

.sample-block--outcome ul {
  color: var(--success);
}

.sample-arch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.arch-chip {
  padding: 0.3rem 0.55rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.arch-arrow {
  color: var(--muted);
  font-size: 0.75rem;
}

.sample-card .btn {
  margin-top: auto;
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 4rem 0;
}

.steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.steps-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  background: var(--primary-muted);
  border-radius: 50%;
}

.steps-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.steps-list p {
  margin: 0;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

/* ========== SERVICES ========== */
.services {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--border);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.service-pill {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}

.service-pill:hover {
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--text);
}

/* ========== QUESTIONNAIRE ========== */
.questionnaire-section {
  padding: 4.5rem 0 5.5rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.progress-wrap {
  max-width: 640px;
  margin: 0 auto 2rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

#progress-label {
  font-weight: 600;
  color: var(--text);
}

#progress-section-name {
  color: var(--muted);
}

.progress-track {
  height: 6px;
  background: var(--background);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  transition: width 0.4s var(--ease);
}

.progress-dots {
  display: flex;
  justify-content: space-between;
  margin-top: 0.65rem;
  gap: 0.25rem;
}

.progress-dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: background var(--duration) var(--ease);
}

.progress-dot.is-done,
.progress-dot.is-current {
  background: var(--primary);
}

.progress-dot.is-current {
  box-shadow: 0 0 0 2px var(--primary-muted);
}

/* Form */
.assessment-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem 2rem;
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .assessment-form {
    padding: 2.25rem 2.5rem 2.5rem;
  }
}

.form-step {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  animation: stepIn 0.35s var(--ease);
}

.form-step[hidden] {
  display: none !important;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0;
}

.step-desc {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.req {
  color: var(--error);
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85em;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.nested-fieldset legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nested-fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.nested-fieldset legend {
  margin-bottom: 0.5rem;
  padding: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--border-strong);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.25rem;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.choice-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.choice-group--wrap {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.925rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.35rem 0;
}

.choice input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.field-error {
  margin: 0;
  font-size: 0.8rem;
  color: var(--error);
  min-height: 0;
}

.field-error:empty {
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.nested-fieldset.has-error {
  border-color: var(--error);
}

.nested-fieldset.has-error .choice-group {
  outline: 1px solid rgba(244, 63, 94, 0.4);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.security-note {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius);
}

.security-note strong {
  color: var(--warning);
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.step-actions .btn-primary {
  margin-left: auto;
}

/* Review */
.review-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.review-section {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.review-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.review-section-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.review-edit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.review-edit:hover {
  background: var(--primary-muted);
  color: var(--primary);
}

.review-items {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}

.review-items li {
  display: grid;
  grid-template-columns: minmax(0, 140px) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
}

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

.review-label {
  color: var(--muted);
  font-weight: 500;
}

.review-value {
  color: var(--text-secondary);
  word-break: break-word;
}

.review-value:empty::after {
  content: "—";
  color: var(--muted);
}

@media (max-width: 520px) {
  .review-items li {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.submit-error {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--error);
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius);
}

/* Loading spinner */
.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

#submit-btn.is-loading .btn-text {
  display: none;
}

#submit-btn.is-loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading[hidden] {
  display: none !important;
}

/* Success */
.success-screen {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  animation: stepIn 0.4s var(--ease);
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.success-screen h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.success-screen p {
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-brand .brand-mark {
  width: 22px;
  height: 22px;
}

.footer-note {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 32rem;
  margin-inline: auto;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Conditional fields */
.conditional[hidden] {
  display: none !important;
}
