/* ============================================
   TESDA Form Filler — Design System
   Subdomain: forms.sbrtetci.com
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* TESDA Brand Colors */
  --tesda-blue: #0038A8;
  --tesda-yellow: #FCD116;
  --tesda-red: #CE1126;

  /* Dark Theme Palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2035;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(26, 32, 53, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #60a5fa;

  /* Accent Gradients */
  --gradient-primary: linear-gradient(135deg, #0038A8 0%, #1e5cc7 50%, #3b82f6 100%);
  --gradient-accent: linear-gradient(135deg, #FCD116 0%, #f59e0b 100%);
  --gradient-warm: linear-gradient(135deg, #f97316 0%, #FCD116 100%);
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #111827 40%, #0f1629 100%);
  --gradient-card: linear-gradient(145deg, rgba(0, 56, 168, 0.08) 0%, rgba(252, 209, 22, 0.04) 100%);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(0, 56, 168, 0.4);
  --border-focus: rgba(96, 165, 250, 0.5);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow-blue: 0 0 30px rgba(0, 56, 168, 0.2);
  --shadow-glow-yellow: 0 0 30px rgba(252, 209, 22, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 56, 168, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(252, 209, 22, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--tesda-yellow);
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: 900px;
}

/* --- Navigation Bar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.navbar__brand-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-glow-blue);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.navbar__link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
  position: relative;
}

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

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-base);
  border-radius: var(--radius-full);
}

.navbar__link:hover::after {
  width: 100%;
}

/* --- Hero Section --- */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  font-weight: 400;
  line-height: 1.7;
}

/* --- Form Cards Grid --- */
.forms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-xl);
  padding-bottom: var(--space-3xl);
}

.form-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.form-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.form-card:hover::before {
  opacity: 1;
}

.form-card__icon {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-glow-blue);
}

.form-card__title {
  position: relative;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.form-card__desc {
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.form-card__meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-card__arrow {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 32px;
  height: 32px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.form-card:hover .form-card__arrow {
  background: var(--tesda-blue);
  border-color: var(--tesda-blue);
  color: white;
  transform: translateX(4px);
}

/* --- Form Wizard Page --- */
.form-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.form-header {
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.form-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-header__back {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

.form-header__back:hover {
  color: var(--text-primary);
}

.form-header__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-header__actions {
  display: flex;
  gap: var(--space-sm);
}

/* --- Progress Bar --- */
.progress-bar {
  width: 100%;
  height: 3px;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  transition: width var(--transition-slow);
  position: relative;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 8px;
  height: 8px;
  background: var(--tesda-yellow);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(252, 209, 22, 0.5);
}

/* --- Step Indicators --- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-lg) 0 var(--space-sm);
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.step--active {
  color: var(--tesda-yellow);
  background: rgba(252, 209, 22, 0.08);
  border-color: rgba(252, 209, 22, 0.2);
}

.step--completed {
  color: #22c55e;
}

.step__number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-base);
}

.step--active .step__number {
  background: var(--tesda-yellow);
  color: var(--bg-primary);
  border-color: var(--tesda-yellow);
  box-shadow: 0 0 12px rgba(252, 209, 22, 0.3);
}

.step--completed .step__number {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}

.step__connector {
  width: 20px;
  height: 1px;
  background: var(--border-subtle);
  flex-shrink: 0;
}

/* --- Form Sections --- */
.form-body {
  flex: 1;
  padding: var(--space-xl) 0 var(--space-3xl);
}

.form-section {
  display: none;
  animation: fadeSlideIn 0.4s ease forwards;
}

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

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

.form-section__header {
  margin-bottom: var(--space-xl);
}

.form-section__number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tesda-yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-xs);
}

.form-section__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.form-section__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* --- Form Fields --- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

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

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

.form-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

.form-grid--full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group--span-2 {
  grid-column: span 2;
}

.form-group--span-3 {
  grid-column: span 3;
}

.form-group--span-full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-label .required {
  color: var(--tesda-red);
  margin-left: 2px;
}

.form-group--error .form-label {
  color: var(--tesda-red);
}

.form-group--error .form-input,
.form-group--error .form-select,
.form-group--error .form-textarea,
.form-group--error .radio-group,
.form-group--error .checkbox-grid {
  border-color: var(--tesda-red);
  box-shadow: 0 0 0 1px rgba(196, 30, 58, 0.25);
}

.form-group--error .form-input,
.form-group--error .form-select,
.form-group--error .form-textarea {
  border-radius: var(--radius-md);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1), var(--shadow-sm);
}

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

.form-input--uppercase {
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

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

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: -4px;
}

/* --- Checkbox / Radio Groups --- */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.checkbox-item,
.radio-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.checkbox-item:hover,
.radio-item:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.checkbox-item input,
.radio-item input {
  display: none;
}

.checkbox-item .checkmark,
.radio-item .radiomark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-medium);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  font-size: 0.7rem;
  color: transparent;
}

.radio-item .radiomark {
  border-radius: 50%;
}

.checkbox-item input:checked ~ .checkmark {
  background: var(--tesda-blue);
  border-color: var(--tesda-blue);
  color: white;
  box-shadow: 0 0 8px rgba(0, 56, 168, 0.3);
}

.radio-item input:checked ~ .radiomark {
  border-color: var(--tesda-blue);
  background: transparent;
  position: relative;
}

.radio-item input:checked ~ .radiomark::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--tesda-blue);
  border-radius: 50%;
  position: absolute;
}

.checkbox-item input:checked ~ .checkbox-label,
.radio-item input:checked ~ .radio-label {
  color: var(--text-primary);
}

/* --- Radio Group Inline --- */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.radio-group .radio-item {
  flex: 0 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

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

.btn--primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.btn--primary:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 56, 168, 0.3);
}

.btn--accent {
  background: var(--gradient-accent);
  color: var(--bg-primary);
  box-shadow: var(--shadow-md), var(--shadow-glow-yellow);
}

.btn--accent:hover {
  box-shadow: var(--shadow-lg), 0 0 40px rgba(252, 209, 22, 0.3);
}

.btn--ghost {
  background: var(--bg-glass);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Navigation Buttons --- */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-2xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.form-nav__left,
.form-nav__right {
  display: flex;
  gap: var(--space-sm);
}

/* --- Glass Card --- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-subtle);
  margin: var(--space-xl) 0;
}

/* --- Toast / Notification --- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-toast);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-spring);
  pointer-events: none;
}

.toast--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.3);
}

/* --- Loading Spinner --- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--tesda-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer a {
  color: var(--text-secondary);
}

/* --- Conditional Section --- */
.conditional-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--transition-slow), opacity var(--transition-base), margin var(--transition-base);
  margin-top: 0;
}

.conditional-section--visible {
  max-height: 600px;
  opacity: 1;
  margin-top: var(--space-lg);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .forms-grid {
    grid-template-columns: 1fr;
  }

  .form-grid--2col,
  .form-grid--3col,
  .form-grid--4col {
    grid-template-columns: 1fr;
  }

  .form-group--span-2,
  .form-group--span-3,
  .form-group--span-full {
    grid-column: auto;
  }

  .steps {
    gap: 2px;
    padding: var(--space-md) var(--space-sm);
  }

  .step {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.65rem;
  }

  .step__connector {
    width: 8px;
  }

  .form-nav {
    flex-direction: column;
    gap: var(--space-md);
  }

  .form-nav__left,
  .form-nav__right {
    width: 100%;
  }

  .form-nav__left .btn,
  .form-nav__right .btn {
    flex: 1;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .navbar__links {
    display: none;
  }

  .hero {
    padding: var(--space-2xl) 0;
  }
}

@media (max-width: 480px) {
  .step__label {
    display: none;
  }

  .container {
    padding: 0 var(--space-md);
  }
}

/* --- Print Styles --- */
@media print {
  body {
    background: white;
    color: black;
  }

  .navbar,
  .form-header,
  .progress-bar,
  .steps,
  .form-nav,
  .footer,
  .toast,
  .btn {
    display: none !important;
  }
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: rgba(0, 56, 168, 0.3);
  color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-medium);
}
