/* ============================================================
   Vision Bleu LED — Form Design System
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --primary: #1B3A5C;
  --accent: #00A3FF;
  --accent-hover: #33B5FF;
  --bg-dark: #0D1B2A;
  --card-bg: #152238;
  --text-primary: #FFFFFF;
  --text-secondary: #B0C4D8;
  --success: #00C853;
  --warm: #FFB74D;
  --error: #FF6B6B;
  --input-bg: #1C2D42;
  --input-border: #2A3F5A;
  --radius: 8px;
  --font-body: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Sora', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Page Wrapper --- */
.page-wrapper {
  min-height: 100vh;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* --- Form Card --- */
.form-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px 16px 24px;
  margin: 0 auto;
}

/* LED glow band — top edge only */
.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  box-shadow:
    0 0 8px rgba(0, 163, 255, 0.6),
    0 0 20px rgba(0, 163, 255, 0.3);
  border-radius: 12px 12px 0 0;
  z-index: 1;
}

/* --- Language Toggle --- */
.lang-toggle {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  transition: color 200ms ease;
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  color: var(--accent);
  font-weight: 600;
}

/* --- Logo --- */
.logo-container {
  text-align: center;
  margin-bottom: 16px;
  padding-top: 8px;
}

.logo-img {
  display: block;
  margin: 0 auto;
  max-width: 220px;
  height: auto;
}

.logo-img + .logo-fallback {
  display: none;
}

.logo-placeholder {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}

/* --- Header Text --- */
.header-text {
  text-align: center;
  margin-bottom: 12px;
}

.header-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  line-height: 1.3;
}

.header-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 12px;
  line-height: 1.4;
}

/* --- Mini Contest Rules (floating text, no container) --- */
.mini-rules {
  text-align: center;
  margin-bottom: 20px;
}

.rules-preview {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 4px;
  line-height: 1.4;
}

.rules-toggle {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: none;
  padding: 0;
}

.rules-toggle:hover {
  color: var(--accent-hover);
}

.rules-full {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease;
}

.rules-full.expanded {
  max-height: 500px;
}

.rules-full p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 8px 0 0;
  text-align: left;
}

.rules-link {
  color: var(--accent);
  text-decoration: underline;
}

.rules-link:hover {
  color: var(--accent-hover);
}

/* --- Progress Bar --- */
.progress-bar {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 24px;
  height: 60px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  flex-shrink: 0;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--input-border);
  background: transparent;
  transition: all 300ms ease;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.step-check {
  font-size: 16px;
  color: var(--text-primary);
}

/* Active step */
.progress-step.active .step-circle {
  background-color: var(--accent);
  border-color: var(--accent);
}

.progress-step.active .step-number {
  color: var(--text-primary);
}

.progress-step.active .step-label {
  color: var(--text-primary);
}

/* Completed step */
.progress-step.completed .step-circle {
  background-color: var(--success);
  border-color: var(--success);
}

.progress-step.completed .step-number {
  display: none;
}

.progress-step.completed .step-check {
  display: inline !important;
}

.step-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
  text-align: center;
  white-space: nowrap;
}

/* Progress connector line */
.progress-connector {
  flex-grow: 1;
  height: 2px;
  background-color: var(--input-border);
  align-self: center;
  margin-top: -14px;
  min-width: 20px;
  transition: background-color 300ms ease;
}

.progress-connector.completed {
  background-color: var(--success);
}

/* --- Form Steps --- */
.form-steps {
  position: relative;
  /* overflow set to hidden dynamically during slide transitions via JS,
     visible otherwise so btn-submit glow renders on all sides */
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* Slide transition classes */
.form-step.slide-out-left {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.form-step.slide-in-right {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateX(0);
  opacity: 1;
  transition: transform 300ms ease, opacity 300ms ease;
}

.form-step.slide-out-right {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 300ms ease, opacity 300ms ease;
}

.form-step.slide-in-left {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateX(0);
  opacity: 1;
  transition: transform 300ms ease, opacity 300ms ease;
}

/* --- Step Headings --- */
.step-heading {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* --- Navigation Buttons --- */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
}

.nav-buttons--end {
  justify-content: flex-end;
}

/* Primary button (Next / Submit) */
.btn-primary {
  background-color: var(--accent);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  height: 48px;
  padding: 0 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow:
    0 0 12px rgba(0, 163, 255, 0.5),
    0 0 24px rgba(0, 163, 255, 0.25);
  transition: all 200ms ease;
}

/* Full-width when alone (Step 1) */
.nav-buttons--end .btn-primary {
  width: 100%;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow:
    0 0 16px rgba(0, 163, 255, 0.7),
    0 0 32px rgba(0, 163, 255, 0.35);
}

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

.btn-primary:disabled {
  opacity: 0.4;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-primary:disabled:hover {
  background-color: var(--accent);
  box-shadow: none;
}

/* Secondary button (Back) */
.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  height: 48px;
  padding: 0 16px;
  border: none;
  cursor: pointer;
  transition: color 200ms ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  color: var(--text-primary);
}

/* --- Input Styles (pre-built for Phase 2) --- */
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-helper {
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-input,
.form-select {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: border-color 200ms ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
}

/* Error state */
.form-input.input-error,
.form-select.input-error {
  border-color: var(--error);
  animation: shake 200ms ease;
}

.error-message {
  font-size: 13px;
  color: var(--error);
  margin-top: 4px;
  animation: fadeIn 150ms ease;
}

/* Field group spacing */
.field-group {
  margin-bottom: 20px;
}

/* Question group spacing (Step 2 tap-selector questions) */
.question-group {
  margin-bottom: 24px;
}

.question-group:last-child {
  margin-bottom: 0;
}

/* --- Single-select Cards (Phase 2 pre-built) --- */
.select-grid {
  display: grid;
  gap: 10px;
}

.select-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.select-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.select-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
}

.select-card:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.select-card.selected {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 8px rgba(0, 163, 255, 0.4);
}

/* --- Multi-select Pills (Phase 2 pre-built) --- */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 10px 8px;
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--input-border);
  border-radius: 24px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
}

.pill-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.pill-btn .pill-check {
  display: none;
  font-size: 12px;
}

.pill-btn.selected {
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: 0 0 8px rgba(0, 163, 255, 0.4);
}

.pill-btn.selected .pill-check {
  display: inline;
}

.pill-btn .pill-text {
  white-space: normal;
  word-break: break-word;
}

/* --- Checkbox Styling (Phase 2 pre-built) --- */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
}

.checkbox-row:active {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.checkbox-row + .checkbox-row {
  margin-top: 16px;
}

.checkbox-box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--input-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  margin-top: 2px;
}

.checkbox-box .check-icon {
  display: none;
  color: var(--text-primary);
  font-size: 14px;
}

.checkbox-row.checked .checkbox-box {
  background-color: var(--accent);
  border-color: var(--accent);
}

.checkbox-row.checked .checkbox-box .check-icon {
  display: block;
}

.checkbox-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--accent);
  text-decoration: underline;
  pointer-events: auto;
}

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

/* --- Submit Hint (disabled submit feedback) --- */
.submit-hint {
  text-align: center;
  font-size: 13px;
  color: var(--error);
  margin-top: 8px;
  animation: fadeIn 150ms ease;
}

.btn-submit.shake {
  animation: shake 200ms ease;
}

/* --- Submit Button Loading State --- */
.btn-submit--loading {
  opacity: 0.7;
  pointer-events: none;
}

/* --- Submit Error Banner (phone mode retry) --- */
.submit-error-text {
  font-size: 13px;
  color: var(--error);
  margin: 0 0 8px;
  text-align: center;
  animation: fadeIn 150ms ease;
}

/* Submit button error/retry state — replaces separate btn-retry */
.btn-submit--error {
  background: transparent;
  border: 1px solid var(--error);
  color: var(--error);
  box-shadow: none;
  animation: fadeIn 150ms ease;
}

.btn-submit--error:hover {
  background-color: var(--error);
  color: var(--text-primary);
}

/* --- Skip / Toggle Links (Phase 2 pre-built) --- */
.toggle-link {
  display: block;
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  text-align: right;
  cursor: pointer;
  padding: 8px 0;
  min-height: 44px;
  line-height: 28px;
}

.toggle-link:hover {
  color: var(--accent-hover);
}

/* --- Loading Spinner (Phase 4 pre-built) --- */
.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 600ms linear infinite;
}

.form-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* --- Google Autocomplete Dropdown (Phase 2 pre-built) --- */
.pac-container {
  background-color: var(--card-bg) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  margin-top: 4px !important;
  font-family: var(--font-body) !important;
}

.pac-item {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 12px !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

.pac-item:first-child {
  border-top: none !important;
}

.pac-item:hover,
.pac-item-selected {
  background-color: var(--input-bg) !important;
}

.pac-item-query {
  color: var(--text-primary) !important;
  font-weight: 500 !important;
}

.pac-matched {
  color: var(--accent) !important;
}

.pac-icon {
  display: none !important;
}

/* --- Confirmation Screen --- */

.confirmation-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 32px 24px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.confirmation-screen.visible {
  opacity: 1;
}

/* Loading spinner */
.confirmation-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.confirmation-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--accent);
  animation: spin 600ms linear infinite;
}

/* Confirmation content */
.confirmation-content {
  text-align: center;
  max-width: 400px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.confirmation-content.visible {
  opacity: 1;
}

/* Emoji */
.confirmation-emoji {
  font-size: 56px;
  margin-bottom: 16px;
  line-height: 1;
}

/* Heading */
.confirmation-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px;
}

/* Body */
.confirmation-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
}

/* Small text */
.confirmation-small {
  font-size: 14px;
  color: var(--text-secondary);
  opacity: 0.8;
  margin: 0 0 24px;
}

/* Website link */
.confirmation-website {
  font-size: 13px;
  color: var(--accent);
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  margin-top: 8px;
}

.confirmation-website:hover {
  color: var(--accent-hover);
}

/* Qualified state — green radial background */
.confirmation-screen.qualified {
  background: radial-gradient(ellipse at center, rgba(0, 200, 83, 0.12) 0%, transparent 70%);
}

/* Bounce animation on qualified emoji */
@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.confirmation-screen.qualified .confirmation-emoji {
  animation: gentleBounce 2s ease-in-out infinite;
}

/* Green glow on form card when qualified */
.form-card--qualified::before {
  background: var(--success);
  box-shadow: 0 0 12px rgba(0, 200, 83, 0.7), 0 0 30px rgba(0, 200, 83, 0.4);
}

.form-card--qualified {
  border-color: rgba(0, 200, 83, 0.2);
  box-shadow: 0 0 40px rgba(0, 200, 83, 0.15);
}

/* Not-qualified state — amber radial background */
.confirmation-screen.not-qualified {
  background: radial-gradient(ellipse at center, rgba(255, 183, 77, 0.10) 0%, transparent 70%);
}

/* Amber glow on form card when not-qualified */
.form-card--not-qualified::before {
  background: var(--warm);
  box-shadow: 0 0 12px rgba(255, 183, 77, 0.7), 0 0 30px rgba(255, 183, 77, 0.4);
}

.form-card--not-qualified {
  border-color: rgba(255, 183, 77, 0.2);
  box-shadow: 0 0 40px rgba(255, 183, 77, 0.12);
}

/* Card expansion classes (for Plan 02 animation) */
.form-card--expanded {
  max-width: 100%;
  min-height: 80vh;
  transition: box-shadow 400ms ease, border-color 400ms ease;
}

@media (max-width: 639px) {
  .form-card--expanded {
    min-height: 85vh;
  }
}

/* Progress bar check pulse animation */
@keyframes checkPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.progress-step.just-completed .step-circle {
  animation: checkPulse 400ms ease;
}

/* Form content fade-out for submit transition */
.form-step--fade-out {
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

/* --- Tablet Countdown Button (Phase 5 Plan 02) --- */
.countdown-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  height: 52px;
  margin-top: 24px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1;
}

.countdown-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: var(--accent);
  z-index: -1;
  transition: width 30s linear;
}

.countdown-btn.draining::before {
  width: 0%;
}

.countdown-btn:active {
  opacity: 0.8;
  transform: scale(0.98);
}

/* Form card reset fade transition */
.form-card--resetting {
  opacity: 0;
  transition: opacity 200ms ease;
}

/* --- Status Indicator Pill (Phase 5 Plan 02) --- */
.status-indicator {
  position: fixed;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(21, 34, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  z-index: 100;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--online {
  background-color: var(--success);
}

.status-dot--queued {
  background-color: var(--warm);
}

.status-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  white-space: nowrap;
}

.status-indicator--synced {
  animation: syncPulse 600ms ease;
}

@keyframes syncPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 8px rgba(0, 200, 83, 0.5); }
}

/* Body lock for modals */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* --- Legal Modal (Phase 5 Plan 02) --- */
.legal-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 150ms ease;
}

.legal-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.legal-modal-card {
  position: relative;
  width: 90vw;
  height: 80vh;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 1;
}

.legal-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.legal-modal-close:hover {
  background: rgba(0, 0, 0, 0.5);
}

.legal-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Utility Classes --- */
.hidden {
  display: none !important;
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

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

/* --- Responsive --- */
@media (min-width: 640px) {
  .page-wrapper {
    padding: 32px 16px;
    align-items: flex-start;
  }

  .form-card {
    max-width: 600px;
    padding: 32px;
    margin: 0 auto;
  }

  .header-title {
    font-size: 28px;
  }

  .header-subtitle {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .lang-toggle {
    top: 16px;
    right: 24px;
  }
}

/* Ensure tap targets on mobile */
@media (max-width: 639px) {
  .form-card {
    border-radius: 12px;
  }

  .pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
