/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #f8fafc;
  color: #1a1a2e;
  line-height: 1.6;
}

/* ─── Header ─────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.bar {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #0052a5;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; }
.beta-badge {
  background: #0052a5;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.spacer { flex: 1; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0052a5 0%, #0074d9 100%);
  color: white;
  padding: 60px 20px 50px;
  text-align: center;
}
.hero-content {
  max-width: 640px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

/* ─── Form Section ───────────────────────────────────────── */
.form-section {
  max-width: 540px;
  margin: -30px auto 40px;
  padding: 0 20px;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
}
.card > p {
  margin: 0 0 24px;
  color: #555;
  font-size: 0.95rem;
}

/* ─── Form Fields ────────────────────────────────────────── */
.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}
.field input, .field select {
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 1rem;
  color: #111;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.field input:focus, .field select:focus {
  border-color: #0052a5;
  box-shadow: 0 0 0 3px rgba(0,82,165,0.12);
  background: #fff;
}
.field .hint {
  font-size: 0.8rem;
  color: #888;
}
.field .error {
  font-size: 0.82rem;
  color: #e53935;
  min-height: 1em;
}

/* ─── Checkbox ───────────────────────────────────────────── */
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}
.field-check input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #0052a5;
  cursor: pointer;
}
.field-check label {
  font-size: 0.88rem;
  color: #444;
  cursor: pointer;
  line-height: 1.5;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0052a5, #0074d9);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 12px 24px;
  background: transparent;
  color: #0052a5;
  border: 1.5px solid #0052a5;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #f0f5ff; }

/* ─── Success Card ───────────────────────────────────────── */
.success-icon {
  width: 60px;
  height: 60px;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0 auto 16px;
}
#success-card h3 {
  text-align: center;
  font-size: 1.3rem;
  color: #111;
  margin: 0 0 8px;
}
#success-card p {
  text-align: center;
  color: #555;
  margin: 0 0 16px;
}
.btn-optin { margin-top: 0; width: 100%; justify-content: center; }

.success-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #9aa0a6;
  font-size: 0.85rem;
}
.success-divider::before,
.success-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e4ea;
}
.note {
  text-align: center;
  font-size: 0.82rem;
  color: #888;
  margin-top: 12px !important;
}

/* ─── Error Card ─────────────────────────────────────────── */
.error-msg {
  text-align: center;
  color: #e53935;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* ─── Info Section ───────────────────────────────────────── */
.info-section {
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 0 20px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.info-item {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.info-icon { font-size: 2rem; margin-bottom: 12px; }
.info-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
.info-item p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid #e5e7eb;
  color: #888;
  font-size: 0.85rem;
}
footer a { color: #0052a5; text-decoration: none; }
footer a:hover { text-decoration: underline; }

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

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.7rem; }
  .card { padding: 24px 18px; }
  .info-grid { grid-template-columns: 1fr; }
}
