/* ─── Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:        #F8FAFC;
  --color-surface:   #FFFFFF;
  --color-text:      #0F172A;
  --color-muted:     #475569;
  --color-faint:     #94A3B8;
  --color-border:    #E2E8F0;
  --color-accent:    #2563EB;
  --color-accent-hv: #1D4ED8;
  --color-notice-bg: #FFFBEB;
  --color-notice-br: #FCD34D;
  --color-success:   #16A34A;
  --color-success-bg:#F0FDF4;
  --color-error:     #DC2626;
  --color-error-bg:  #FEF2F2;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 3.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

/* ─── Typography ──────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(2rem, 6vw, 2.875rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

h2 {
  font-size: clamp(1.35rem, 4vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  color: var(--color-muted);
  line-height: 1.75;
}

p + p {
  margin-top: 0.875rem;
}

strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.badge {
  display: inline-block;
  background: #EFF6FF;
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  border: 1px solid #BFDBFE;
}

.hero h1 {
  margin-bottom: 1.125rem;
}

.subheadline {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.subheadline strong {
  color: var(--color-text);
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
  font-weight: 500;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
  letter-spacing: -0.01em;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--color-accent-hv);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.45);
  outline: none;
}

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

.btn-submit {
  width: 100%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(37,99,235,.35);
  margin-top: 0.5rem;
  letter-spacing: -0.01em;
}

.btn-submit:hover,
.btn-submit:focus-visible {
  background: var(--color-accent-hv);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.45);
  outline: none;
}

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

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

/* ─── Checklist ───────────────────────────────────────────────────────────── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: var(--color-accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l4 4 6-6' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100%;
}

.checklist li strong {
  color: var(--color-text);
}

/* ─── Intro ───────────────────────────────────────────────────────────────── */
.section-intro {
  padding: 2rem 0;
}

.intro-text {
  font-size: 1.0625rem;
  color: var(--color-muted);
  line-height: 1.8;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
}

/* ─── Notice Card ─────────────────────────────────────────────────────────── */
.section-notice {
  background: var(--color-notice-bg);
  border-top: 1px solid var(--color-notice-br);
  border-bottom: 1px solid var(--color-notice-br);
}

.notice-card {
  text-align: center;
}

.notice-icon {
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
  display: block;
}

.notice-card h2 {
  text-align: center;
}

.notice-emphasis {
  font-weight: 600;
  color: #92400E;
  font-size: 1.0625rem;
  margin-top: 1rem;
}

/* ─── Steps ───────────────────────────────────────────────────────────────── */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.125rem;
  box-shadow: var(--shadow-sm);
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text {
  font-size: 0.9375rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.step-text em {
  color: var(--color-text);
  font-style: normal;
  font-weight: 600;
}

/* ─── Feedback Callout ────────────────────────────────────────────────────── */
.section-feedback {
  background: #EFF6FF;
  border-top: 1px solid #BFDBFE;
  border-bottom: 1px solid #BFDBFE;
}

.feedback-card {
  text-align: center;
}

.feedback-headline {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.625rem;
}

.feedback-card p {
  max-width: 520px;
  margin: 0 auto;
}

/* ─── Form ────────────────────────────────────────────────────────────────── */
.section-form {
  background: var(--color-bg);
}

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
}

.form-intro {
  margin-bottom: 1.75rem;
  color: var(--color-muted);
}

.field-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

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

input[type="text"],
input[type="email"],
input[type="tel"] {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6875rem 0.875rem;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: var(--color-faint);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

input[type="text"].invalid,
input[type="email"].invalid,
input[type="tel"].invalid {
  border-color: var(--color-error);
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--color-faint);
}

/* ─── Checkboxes ──────────────────────────────────────────────────────────── */
.checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin: 1.5rem 0 1.75rem;
  padding: 1.25rem;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-muted);
  line-height: 1.55;
  position: relative;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  transition: background 0.15s ease, border-color 0.15s ease;
  display: block;
  margin-top: 1px;
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus-visible + .checkmark {
  box-shadow: 0 0 0 3px rgba(37,99,235,.25);
}

.checkbox-label input[type="checkbox"].invalid + .checkmark {
  border-color: var(--color-error);
}

.checkbox-label strong {
  color: var(--color-text);
}

/* ─── Form error ──────────────────────────────────────────────────────────── */
.form-error {
  background: var(--color-error-bg);
  border: 1px solid #FECACA;
  color: var(--color-error);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

/* ─── Success Message ─────────────────────────────────────────────────────── */
.success-message {
  text-align: center;
  padding: 2.5rem 1rem;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: var(--color-success);
  color: #fff;
  font-size: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
  color: var(--color-text);
}

.success-message p {
  color: var(--color-muted);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.faq-item dt {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.faq-item dd {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.65;
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  font-size: 0.875rem;
  color: var(--color-faint);
}

/* ─── Utilities ───────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

/* Mobile-first base adjustments */
@media (max-width: 479px) {
  /* Hero */
  .hero {
    padding: 2.5rem 0 2rem;
    text-align: center;
  }

  h1 {
    font-size: 1.875rem;
    letter-spacing: -0.02em;
  }

  .subheadline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Full-width CTA button on mobile */
  .btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    padding: 1rem 1.5rem;
  }

  .hero-note {
    font-size: 0.875rem;
    padding: 0 0.5rem;
  }

  /* Sections */
  .section {
    padding: 2.25rem 0;
  }

  /* Intro */
  .section-intro {
    padding: 1.5rem 0;
  }

  .intro-text {
    font-size: 1rem;
  }

  /* Steps */
  .steps li {
    padding: 0.875rem 1rem;
    gap: 0.875rem;
  }

  .step-text {
    font-size: 0.9rem;
  }

  /* Form */
  .form-card {
    padding: 1.5rem 1.125rem;
    border-radius: var(--radius-md);
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    font-size: 1rem; /* prevents iOS zoom on focus */
    padding: 0.75rem 0.875rem;
    min-height: 48px;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 1rem;
    min-height: 52px;
  }

  .checkboxes {
    padding: 1rem;
    gap: 1rem;
  }

  .checkbox-label {
    font-size: 0.9375rem;
    gap: 0.875rem;
  }

  /* Notice */
  .notice-card {
    padding: 0 0.25rem;
  }

  /* FAQ */
  .faq-item {
    padding: 1rem 1.125rem;
  }
}

/* Tablet and up */
@media (min-width: 480px) {
  .form-card {
    padding: 2.5rem 2.25rem;
  }

  .hero {
    padding: 5rem 0 4rem;
  }
}

/* ─── Focus visible ───────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MYSTICAL TZFAT THEME — deep blues, candlelight, starry Galilee sky
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes twinkle-a {
  0%   { opacity: 0.30; }
  40%  { opacity: 0.08; }
  70%  { opacity: 0.28; }
  100% { opacity: 0.12; }
}

@keyframes twinkle-b {
  0%   { opacity: 0.12; }
  35%  { opacity: 0.32; }
  65%  { opacity: 0.06; }
  100% { opacity: 0.24; }
}

@keyframes gold-pulse {
  0%   { box-shadow: 0 0 6px  rgba(210,155,20,0.25), 0 2px 10px rgba(37,99,235,0.40); }
  50%  { box-shadow: 0 0 22px rgba(210,155,20,0.60), 0 4px 18px rgba(37,99,235,0.55); }
  100% { box-shadow: 0 0 6px  rgba(210,155,20,0.25), 0 2px 10px rgba(37,99,235,0.40); }
}

/* ─── Page background — fixed gradient + candlelight glow ─────────────────── */
html {
  min-height: 100%;
  background:
    radial-gradient(ellipse 75% 45% at 50% 28%, rgba(175,130,18,0.10) 0%, transparent 62%),
    linear-gradient(168deg,
      #0a0a2e 0%,
      #110826 18%,
      #1a0a3e 50%,
      #1c0d30 70%,
      #2a1500 100%);
  background-attachment: fixed;
}

/* ─── Star layers ─────────────────────────────────────────────────────────── */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Layer A — brighter stars, upper sky */
.cosmic-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at  3%  6%, rgba(255,255,255,0.85) 0%, transparent 100%),
    radial-gradient(1px   1px   at  9%  2%, rgba(255,255,255,0.70) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 16% 12%, rgba(255,255,255,0.90) 0%, transparent 100%),
    radial-gradient(1px   1px   at 23%  5%, rgba(255,255,255,0.60) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 31% 18%, rgba(255,255,255,0.80) 0%, transparent 100%),
    radial-gradient(1px   1px   at 38%  8%, rgba(255,255,255,0.75) 0%, transparent 100%),
    radial-gradient(2px   2px   at 45% 22%, rgba(255,255,255,0.90) 0%, transparent 100%),
    radial-gradient(1px   1px   at 52%  3%, rgba(255,255,255,0.65) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 59% 15%, rgba(255,255,255,0.80) 0%, transparent 100%),
    radial-gradient(1px   1px   at 67% 28%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 74%  7%, rgba(255,255,255,0.85) 0%, transparent 100%),
    radial-gradient(1px   1px   at 81% 20%, rgba(255,255,255,0.70) 0%, transparent 100%),
    radial-gradient(2px   2px   at 88% 10%, rgba(255,255,255,0.90) 0%, transparent 100%),
    radial-gradient(1px   1px   at 95% 25%, rgba(255,255,255,0.60) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at  6% 35%, rgba(255,255,255,0.50) 0%, transparent 100%),
    radial-gradient(1px   1px   at 14% 42%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 27% 38%, rgba(255,255,255,0.60) 0%, transparent 100%),
    radial-gradient(1px   1px   at 36% 48%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1px   1px   at 48% 33%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 57% 44%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px   1px   at 69% 37%, rgba(255,255,255,0.60) 0%, transparent 100%),
    radial-gradient(1px   1px   at 79% 50%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 91% 40%, rgba(255,255,255,0.50) 0%, transparent 100%),
    radial-gradient(1px   1px   at 11% 58%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px   1px   at 25% 62%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 42% 55%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px   1px   at 60% 68%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px   1px   at 76% 60%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 84% 72%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px   1px   at 97% 58%, rgba(255,255,255,0.35) 0%, transparent 100%);
  animation: twinkle-a 8s ease-in-out infinite;
}

/* Layer B — second set of stars, offset timing */
.cosmic-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px   1px   at  5% 14%, rgba(255,255,255,0.70) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 12%  8%, rgba(255,255,255,0.90) 0%, transparent 100%),
    radial-gradient(1px   1px   at 19% 20%, rgba(255,255,255,0.60) 0%, transparent 100%),
    radial-gradient(2px   2px   at 26%  2%, rgba(255,255,255,0.85) 0%, transparent 100%),
    radial-gradient(1px   1px   at 33% 25%, rgba(255,255,255,0.50) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 41% 14%, rgba(255,255,255,0.75) 0%, transparent 100%),
    radial-gradient(1px   1px   at 49% 28%, rgba(255,255,255,0.65) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 56%  7%, rgba(255,255,255,0.80) 0%, transparent 100%),
    radial-gradient(1px   1px   at 63% 21%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(2px   2px   at 71% 13%, rgba(255,255,255,0.90) 0%, transparent 100%),
    radial-gradient(1px   1px   at 78% 30%, rgba(255,255,255,0.60) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85%  5%, rgba(255,255,255,0.80) 0%, transparent 100%),
    radial-gradient(1px   1px   at 93% 18%, rgba(255,255,255,0.50) 0%, transparent 100%),
    radial-gradient(1px   1px   at  7% 48%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 20% 44%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px   1px   at 34% 52%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px   1px   at 44% 40%, rgba(255,255,255,0.50) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 53% 56%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px   1px   at 62% 45%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(1px   1px   at 73% 58%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 82% 46%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1px   1px   at 90% 54%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px   1px   at  3% 65%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 17% 72%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px   1px   at 30% 78%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px   1px   at 47% 74%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 64% 80%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px   1px   at 80% 70%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px   1px   at 88% 78%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 96% 65%, rgba(255,255,255,0.30) 0%, transparent 100%);
  animation: twinkle-b 13s ease-in-out infinite;
}

/* ─── Override CSS variables for dark theme ───────────────────────────────── */
:root {
  --color-bg:        transparent;
  --color-surface:   rgba(15, 8, 40, 0.68);
  --color-text:      #f5f0e8;
  --color-muted:     #c8bfad;
  --color-faint:     rgba(245, 240, 232, 0.45);
  --color-border:    rgba(255, 255, 255, 0.11);
  --color-notice-bg: rgba(42, 21, 0, 0.60);
  --color-notice-br: rgba(210, 155, 20, 0.35);
  --color-error:     #f87171;
  --color-error-bg:  rgba(220, 38, 38, 0.18);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.35), 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 28px rgba(0,0,0,0.50), 0 2px 8px rgba(0,0,0,0.35);
}

/* ─── Body — transparent so gradient shows through ────────────────────────── */
body {
  background: transparent;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  background: transparent;
  border-bottom-color: rgba(255,255,255,0.08);
}

.badge {
  background: rgba(37,99,235,0.20);
  border-color: rgba(147,197,253,0.30);
  color: #93c5fd;
}

/* ─── Sections ────────────────────────────────────────────────────────────── */
.section {
  background: transparent;
}

.section + .section {
  border-top-color: rgba(255,255,255,0.07);
}

.section-form {
  background: transparent;
}

/* ─── Intro blurb ─────────────────────────────────────────────────────────── */
.intro-text {
  border-left-color: rgba(210,155,20,0.65);
  color: var(--color-muted);
}

/* ─── Notice (commitment warning) ────────────────────────────────────────── */
.section-notice {
  background: rgba(42,21,0,0.55);
  border-color: rgba(210,155,20,0.30);
}

.notice-emphasis {
  color: #e8c870;
}

/* ─── Feedback callout ────────────────────────────────────────────────────── */
.section-feedback {
  background: rgba(10,10,46,0.55);
  border-color: rgba(100,140,230,0.18);
}

.feedback-headline {
  color: #f5f0e8;
}

/* ─── Steps cards ─────────────────────────────────────────────────────────── */
.steps li {
  background: rgba(15, 8, 40, 0.60);
  border-color: rgba(255,255,255,0.09);
}

/* ─── Form card — glass effect ────────────────────────────────────────────── */
.form-card {
  background: rgba(12, 6, 36, 0.78);
  border-color: rgba(255,255,255,0.10);
}

@supports (backdrop-filter: blur(12px)) {
  .form-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* ─── Inputs ──────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"] {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.16);
  color: #f5f0e8;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: rgba(245,240,232,0.32);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: rgba(210,155,20,0.65);
  box-shadow: 0 0 0 3px rgba(210,155,20,0.12);
}

input[type="text"].invalid,
input[type="email"].invalid,
input[type="tel"].invalid {
  border-color: rgba(248,113,113,0.70);
}

/* ─── Checkboxes ──────────────────────────────────────────────────────────── */
.checkboxes {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.checkmark {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.25);
}

.checkbox-label input[type="checkbox"].invalid + .checkmark {
  border-color: rgba(248,113,113,0.70);
}

/* ─── Form error ──────────────────────────────────────────────────────────── */
.form-error {
  background: rgba(220,38,38,0.18);
  border-color: rgba(248,113,113,0.30);
  color: #fca5a5;
}

/* ─── Buttons — gold glow pulse ───────────────────────────────────────────── */
.btn-primary,
.btn-submit {
  border: 1.5px solid rgba(210,155,20,0.50);
  animation: gold-pulse 3.5s ease-in-out infinite;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-submit:hover,
.btn-submit:focus-visible {
  animation: none;
  box-shadow: 0 0 28px rgba(210,155,20,0.70), 0 4px 18px rgba(37,99,235,0.55);
}

.btn-submit:disabled {
  animation: none;
}

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-item {
  background: rgba(15, 8, 40, 0.55);
  border-color: rgba(255,255,255,0.08);
}

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top-color: rgba(255,255,255,0.07);
}

.footer p {
  color: rgba(245,240,232,0.40);
}

/* ─── Respect reduced-motion preference ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cosmic-bg::before,
  .cosmic-bg::after {
    animation: none;
    opacity: 0.20;
  }
  .btn-primary,
  .btn-submit {
    animation: none;
  }
}
