/**
 * Camp Fresno Pre-Registration 2026
 * City of Fresno PARCS Department
 *
 * Official Government Design System
 */

/* ==========================================================================
   CSS Variables / Design Tokens - Official Government Palette
   ========================================================================== */

:root {
  /* Official Government Primary Colors - Navy Blue */
  --gov-primary: #1a4480;
  --gov-primary-dark: #13344d;
  --gov-primary-darker: #0c2236;
  --gov-primary-light: #2e6bb5;

  /* Secondary - Slate Blue */
  --gov-secondary: #3d5a80;
  --gov-secondary-dark: #2c4a6b;
  --gov-secondary-light: #5a7aa8;

  /* Accent - Muted Gold */
  --accent-gold: #b8a060;
  --accent-gold-dark: #968248;

  /* Status Colors - WCAG Compliant */
  --status-success: #2e7d32;
  --status-warning: #b07040;
  --status-error: #b05050;
  --status-info: #1a4480;

  /* Neutral Grays - Government Standard */
  --gray-5: #f7f7f7;
  --gray-10: #e6e6e6;
  --gray-20: #c9c9c9;
  --gray-30: #adadad;
  --gray-50: #757575;
  --gray-70: #454545;
  --gray-90: #1b1b1b;

  /* Background Colors */
  --bg-primary: #f5f6f7;
  --bg-white: #ffffff;
  --bg-dark: #1b1b1b;

  /* Text Colors */
  --text-primary: #1b1b1b;
  --text-secondary: #454545;
  --text-muted: #757575;
  --text-inverse: #ffffff;

  /* Borders */
  --border-light: #d9d9d9;
  --border-medium: #adadad;
  --border-focus: #2d7a45;

  /* Typography - System Stack */
  --font-primary: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Roboto Mono', Consolas, Monaco, 'Courier New', monospace;

  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;

  /* Border Radius */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-focus: 0 0 0 3px rgba(26, 68, 128, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--weight-normal);
  line-height: 1.625;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: 1.3;
  color: var(--text-primary);
}

a {
  color: var(--gov-primary-light);
  text-decoration: underline;
  }

a:hover {
  color: var(--gov-primary);
}

a:focus {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

ul, ol {
  margin-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
}

strong {
  font-weight: var(--weight-semibold);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.main-content {
  flex: 1;
  padding: var(--space-8) 0 var(--space-10);
}

.form-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-7);
  align-items: start;
}

/* ==========================================================================
   Official Government Header
   ========================================================================== */

.gov-header {
  background: var(--gov-primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Navigation Bar */
.gov-header-nav {
  padding: var(--space-4) 0;
  background: var(--gov-primary);
  border-bottom: 3px solid var(--accent-gold);
}

.gov-header-nav .container {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  flex: 1;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: var(--weight-semibold);
  font-size: 15px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-links a:active {
  transform: translateY(0);
}

.nav-links a:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* ==========================================================================
   Google Translate Widget
   ========================================================================== */

#google_translate_element {
  display: inline-flex;
  align-items: center;
}

/* Hide branding and "Powered by" text */
#google_translate_element .goog-logo-link,
#google_translate_element .goog-te-gadget > span {
  display: none !important;
}

#google_translate_element .goog-te-gadget {
  font-size: 0;
  margin: 0;
  padding: 0;
  color: transparent;
}

/* Style the language dropdown */
#google_translate_element .goog-te-gadget .goog-te-combo {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--weight-medium);
  cursor: pointer;
  outline: none;
  min-width: 120px;
}

#google_translate_element .goog-te-gadget .goog-te-combo:hover {
  border-color: var(--accent-gold);
}

#google_translate_element .goog-te-gadget .goog-te-combo:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Hide the Google Translate top banner and prevent body displacement */
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}

body {
  top: 0 !important;
  position: static !important;
}

.skiptranslate iframe {
  display: none !important;
  height: 0 !important;
}

/* ==========================================================================
   Government Footer
   ========================================================================== */

.gov-footer {
  background: var(--gov-primary-darker);
  color: var(--text-inverse);
  padding: var(--space-7) 0;
  margin-top: auto;
  border-top: 4px solid var(--accent-gold);
}

.gov-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.footer-official {
  font-size: 14px;
  font-weight: var(--weight-semibold);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #ffffff;
  text-decoration: none;
  font-weight: var(--weight-semibold);
  transition: color var(--transition-fast);
}

.footer-phone:hover {
  color: var(--accent-gold);
}

.footer-phone svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.gov-footer a {
  color: var(--text-inverse);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.gov-footer a:hover {
  color: var(--accent-gold);
}

/* ==========================================================================
   Sidebar - Progress Tracker
   ========================================================================== */

.sidebar {
  position: sticky;
  top: var(--space-6);
}

.sidebar-logo {
  text-align: center;
  padding: var(--space-3) 0;
  margin: 0 auto var(--space-4);
  width: 100%;
}

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

/* Progress Card */
.progress-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.progress-header {
  background: var(--gov-primary);
  color: var(--text-inverse);
  padding: var(--space-4) var(--space-5);
  font-weight: var(--weight-semibold);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.progress-steps {
  padding: 0;
  list-style: none;
  margin: 0;
}

.progress-steps li {
  margin-bottom: 0;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

.progress-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  }

.progress-step:hover {
  background: var(--gray-5);
}


.progress-step.active {
  background: #e8f0f8;
  color: var(--gov-primary);
  font-weight: var(--weight-semibold);
}

.progress-step.active::before {
  background: var(--gov-primary);
}

.progress-step.completed {
  color: var(--status-success);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-10);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-semibold);
  font-size: 12px;
  flex-shrink: 0;
  }

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

.progress-step.completed .step-number {
  background: var(--status-success);
  color: transparent;
  font-size: 0;
}

.progress-step.completed .step-number::after {
  content: '\2713';
  font-weight: var(--weight-bold);
  font-size: 14px;
  color: var(--text-inverse);
}

/* Camper Sub-steps */
.camper-substeps {
  background: var(--gray-5);
  border-top: 1px solid var(--gray-10);
  border-bottom: 1px solid var(--gray-10);
}

.camper-substep {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5) var(--space-3) var(--space-9);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
    border-bottom: 1px solid var(--gray-10);
  position: relative;
}

.camper-substep:last-child {
  border-bottom: none;
}

.camper-substep::before {
  content: '';
  position: absolute;
  left: var(--space-7);
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-20);
  }

.camper-substep:hover {
  background: var(--bg-white);
  color: var(--text-primary);
}

.camper-substep.active {
  background: #e8f0f8;
  color: var(--gov-primary);
  font-weight: var(--weight-semibold);
}

.camper-substep.active::before {
  background: var(--gov-primary);
  width: 8px;
  height: 8px;
}

.camper-substep.completed {
  color: var(--status-success);
}

.camper-substep.completed::before {
  background: var(--status-success);
}

.camper-substep-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Camper Header (parent row) */
.camper-substep.camper-header {
  padding-left: var(--space-5);
  font-weight: var(--weight-semibold);
  background: var(--gray-10);
  color: var(--gray-30);
  cursor: default;
}

.camper-substep.camper-header::before {
  display: none;
}

.camper-substep.camper-header.accessible {
  color: var(--text-secondary);
  cursor: pointer;
}

.camper-substep.camper-header.accessible:hover {
  background: var(--gray-20);
}

.camper-substep.camper-header.active {
  background: var(--gov-primary);
  color: var(--text-inverse);
}

.camper-substep.camper-header.completed {
  color: var(--status-success);
}

.camper-substep.camper-header.completed::after {
  content: '\2713';
  font-size: 12px;
  margin-left: auto;
  color: var(--status-success);
}

.camper-substep.camper-header.active.completed {
  color: var(--text-inverse);
}

.camper-substep.camper-header.active.completed::after {
  color: var(--text-inverse);
}

/* Camper Section (nested items) */
.camper-section {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5) var(--space-2) 52px;
  font-size: 12px;
  color: var(--gray-30);
  cursor: default;
  border-bottom: 1px solid var(--gray-10);
  position: relative;
}

.camper-section:last-child {
  border-bottom: none;
}

.camper-section::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gray-20);
}

.camper-section.accessible {
  cursor: pointer;
  color: var(--text-muted);
}

.camper-section.accessible:hover {
  background: var(--bg-white);
  color: var(--text-primary);
}

.camper-section.active {
  background: #e8f0f8;
  color: var(--gov-primary);
  font-weight: var(--weight-semibold);
}

.camper-section.active::before {
  background: var(--gov-primary);
  width: 6px;
  height: 6px;
}

.camper-section.completed {
  color: var(--status-success);
}

.camper-section.completed::before {
  background: var(--status-success);
}

.camper-section.completed::after {
  content: '\2713';
  font-size: 10px;
  margin-left: auto;
  color: var(--status-success);
}

.section-label {
  flex: 1;
}

/* Camper Tabs */
.camper-tabs {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-top: var(--space-5);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.camper-tabs-header {
  background: var(--gray-5);
  padding: var(--space-3) var(--space-5);
  font-weight: var(--weight-semibold);
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.camper-tab {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--gray-10);
  font-size: 14px;
  cursor: pointer;
    position: relative;
}

.camper-tab:last-child {
  border-bottom: none;
}

.camper-tab:hover {
  background: var(--gray-5);
}

.camper-tab.active {
  background: #e8f0f8;
  border-left: 3px solid var(--gov-primary);
  padding-left: calc(var(--space-5) - 3px);
}

.camper-tab.completed {
  color: var(--status-success);
}

.camper-tab .camper-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  }

.camper-tab.active .camper-icon {
  background: var(--gov-primary);
  color: var(--text-inverse);
}

/* ==========================================================================
   Form Card - Main Content Area
   ========================================================================== */

.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.form-card-header {
  background: linear-gradient(135deg, var(--gov-primary) 0%, var(--gov-primary-dark) 100%);
  color: var(--text-inverse);
  padding: var(--space-6) var(--space-7);
  position: relative;
}

.form-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gold);
}

.form-card-header h2 {
  font-size: 24px;
  font-weight: var(--weight-bold);
  color: var(--text-inverse);
  margin-bottom: var(--space-1);
  letter-spacing: -0.01em;
}

.form-card-header p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
}

.camper-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: var(--space-1) var(--space-3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,255,255,0.2);
}

.form-card-body {
  padding: var(--space-7);
  min-height: 480px;
}

/* ==========================================================================
   Pages & Transitions
   ========================================================================== */

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ==========================================================================
   Info & Alert Boxes
   ========================================================================== */

.info-box {
  background: #f0f5fa;
  border: 1px solid #c5d5e8;
  border-left: 4px solid var(--gov-primary);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-6);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.info-box h3 {
  color: var(--gov-primary);
  font-size: 17px;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.info-box p {
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: 15px;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box a {
  color: var(--gov-primary-light);
  font-weight: var(--weight-semibold);
}

.info-box ul {
  margin: var(--space-3) 0 var(--space-3) var(--space-5);
}

.info-box.success {
  background: #f0f5fa;
  border-color: #c5d5e8;
  border-left-color: var(--status-success);
}

.info-box.success h3 {
  color: var(--status-success);
}

/* Alert Boxes */
.alert-box {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  border: 1px solid;
}

.alert-box.warning {
  background: #fff8e6;
  border-color: #ffd666;
  border-left: 4px solid var(--status-warning);
}

.alert-box.info {
  background: #f0f5fa;
  border-color: #c5d5e8;
  border-left: 4px solid var(--gov-primary);
}

.alert-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.4;
}

.alert-box strong {
  color: var(--text-primary);
}



/* ==========================================================================
   Form Elements - Clean Government Style
   ========================================================================== */

.form-section {
  margin-bottom: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--gray-10);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section-title {
  font-size: 17px;
  font-weight: var(--weight-bold);
  color: var(--gov-primary);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--gov-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

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

.form-group {
  margin-bottom: var(--space-5);
}

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

.form-group > label {
  display: block;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  font-size: 14px;
}

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

.form-group .help-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-2);
  line-height: 1.5;
}

.form-group .grant-notice {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--space-2);
}

/* Text Inputs, Selects, Textareas */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-white);
    -webkit-appearance: none;
  appearance: none;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
  border-color: var(--gray-50);
}

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

input.error,
select.error,
textarea.error {
  border-color: var(--status-error);
}

input.error:focus,
select.error:focus,
textarea.error:focus {
  box-shadow: 0 0 0 3px rgba(181, 9, 9, 0.2);
}

select {
  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='%23454545' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-8);
}

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

.error-message {
  color: var(--status-error);
  font-size: 13px;
  margin-top: var(--space-2);
  display: none;
  font-weight: var(--weight-medium);
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--status-error);
  background-color: #fef2f2;
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus {
  border-color: var(--status-error);
  box-shadow: 0 0 0 3px rgba(181, 9, 9, 0.2);
}

.form-group.error > label {
  color: var(--status-error);
}

.form-group.error .error-message {
  display: block;
}

.form-group.error .radio-group,
.form-group.error .checkbox-group {
  padding: var(--space-3);
  background: #fef2f2;
  border-radius: var(--radius-md);
  border: 1px solid var(--status-error);
}

/* Loading state for submit button */
.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.radio-group.inline,
.checkbox-group.inline {
  flex-direction: row;
  flex-wrap: wrap;
}

.radio-group.grid-2,
.checkbox-group.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.radio-group.grid-3,
.checkbox-group.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.radio-group.grid-4,
.checkbox-group.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--gray-5);
  border: 1px solid var(--gray-10);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: var(--weight-normal);
  font-size: 14px;
    position: relative;
}

.radio-group label:hover,
.checkbox-group label:hover {
  background: #e8f0f8;
  border-color: var(--gov-primary-light);
}

.radio-group input:checked + span,
.checkbox-group input:checked + span {
  color: var(--gov-primary);
  font-weight: var(--weight-semibold);
}

.radio-group label:has(input:checked),
.checkbox-group label:has(input:checked) {
  background: #e8f0f8;
  border-color: var(--gov-primary);
  box-shadow: inset 0 0 0 1px var(--gov-primary);
}

.radio-group input,
.checkbox-group input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--gov-primary);
}

.other-input {
  margin-top: var(--space-3);
  padding-left: var(--space-6);
}

/* ==========================================================================
   Special Content Boxes
   ========================================================================== */

/* Waiver Box */
.waiver-box {
  background: var(--gray-5);
  border: 1px solid var(--border-light);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  border-radius: var(--radius-md);
  max-height: 360px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
}

.waiver-box::-webkit-scrollbar {
  width: 8px;
}

.waiver-box::-webkit-scrollbar-track {
  background: var(--gray-10);
  border-radius: 4px;
}

.waiver-box::-webkit-scrollbar-thumb {
  background: var(--gray-30);
  border-radius: 4px;
}

.waiver-box::-webkit-scrollbar-thumb:hover {
  background: var(--gray-50);
}

.waiver-box h4 {
  color: var(--gov-primary);
  margin-bottom: var(--space-4);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.waiver-box p {
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
}

/* Waiver Camper Names */
.waiver-camper-names {
  background: #e3f2fd;
  border: 1px solid var(--gov-primary-light);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  font-size: 0.95rem;
  color: var(--gov-primary-dark);
}

.waiver-camper-names strong {
  font-weight: var(--weight-semibold);
}

/* Signature Pad */
.signature-pad-wrapper {
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s;
}

.signature-pad-wrapper:focus-within,
.signature-pad-wrapper.active {
  border-color: var(--gov-primary);
  box-shadow: 0 0 0 3px rgba(26, 68, 128, 0.12);
}

.signature-pad-wrapper.has-error {
  border-color: var(--status-error);
}

.signature-canvas {
  display: block;
  width: 100%;
  height: 160px;
  cursor: crosshair;
  touch-action: none;
}

.signature-pad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--gray-5);
  border-top: 1px solid var(--border-light);
}

.signature-pad-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.signature-clear-btn {
  padding: 4px 14px;
  font-size: 0.8rem;
  font-weight: var(--weight-semibold);
  color: var(--status-error);
  background: transparent;
  border: 1px solid var(--status-error);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.signature-clear-btn:hover {
  background: var(--status-error);
  color: #fff;
}

.signature-preview {
  max-width: 300px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 4px;
}

/* Session Date Options */
.session-date-option.has-session {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  transition: border-color 0.15s, background 0.15s;
}

.session-date-option.has-session:hover {
  border-color: var(--gov-primary-light);
  background: var(--gray-5);
}

.session-date-option.has-session:has(input:checked) {
  border-color: var(--gov-primary);
  background: #edf4fc;
  box-shadow: 0 0 0 2px rgba(26, 68, 128, 0.15);
}

.session-date-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.session-date-label {
  font-weight: var(--weight-semibold);
}

.session-theme {
  font-size: 0.9rem;
  font-weight: var(--weight-semibold);
  color: var(--gov-primary);
  margin-top: 2px;
}

.session-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 2px;
}

/* Supplies Box */
.supplies-box {
  background: #fffbf0;
  border: 1px solid #f0d080;
  border-left: 4px solid var(--accent-gold-dark);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.supplies-box h4 {
  color: #8b6914;
  margin-bottom: var(--space-3);
  font-size: 15px;
  font-weight: var(--weight-semibold);
}

.supplies-box p {
  font-size: 14px;
  margin-bottom: var(--space-2);
}

.supplies-box ul {
  margin: var(--space-2) 0 var(--space-2) var(--space-5);
  font-size: 14px;
}

.supplies-box ul.supplies-list {
  columns: 1;
}

.supplies-box li {
  margin-bottom: var(--space-1);
  break-inside: avoid;
}

.supplies-category {
  color: #8b6914;
  font-size: 13px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: var(--space-4) 0 var(--space-2) 0;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(240, 208, 128, 0.5);
}

.supplies-category:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: var(--space-2);
}

.supplies-tip {
  font-size: 13px;
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

.supplies-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.supplies-doc-link {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(240, 208, 128, 0.5);
}

.supplies-doc-link a {
  color: var(--gov-primary);
  font-size: 14px;
  font-weight: var(--weight-semibold);
  text-decoration: none;
}

.supplies-doc-link a:hover {
  text-decoration: underline;
}

/* Review Summary */
.review-section {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-5);
  overflow: hidden;
}

.review-section-header {
  background: var(--gray-5);
  padding: var(--space-3) var(--space-5);
  font-weight: var(--weight-semibold);
  font-size: 15px;
  color: var(--gov-primary);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.review-section-header .section-number {
  background: var(--gov-primary);
  color: var(--text-inverse);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--weight-bold);
}

.review-section-body {
  padding: var(--space-4) var(--space-5);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3) var(--space-6);
}

.review-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.review-item.full-width {
  grid-column: 1 / -1;
}

.review-label {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.review-value {
  font-size: 15px;
  color: var(--text-primary);
}

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

.review-camper-divider {
  border-top: 2px solid var(--gov-primary);
  margin: var(--space-4) 0;
  padding-top: var(--space-4);
}

.review-camper-title {
  font-weight: var(--weight-bold);
  font-size: 16px;
  color: var(--gov-primary-dark);
  margin-bottom: var(--space-4);
}

@media (max-width: 768px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Navigation Buttons
   ========================================================================== */

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-7);
  background: var(--gray-5);
  border-top: 1px solid var(--border-light);
}

.btn {
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  cursor: pointer;
  font-family: inherit;
    display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
}

.btn:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-primary {
  background: var(--gov-primary);
  color: var(--text-inverse);
  border: 2px solid var(--gov-primary);
}

.btn-primary:hover {
  background: var(--gov-primary-dark);
  border-color: var(--gov-primary-dark);
}

.btn-primary:active {
  background: var(--gov-primary-darker);
  border-color: var(--gov-primary-darker);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-primary);
  border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--gray-5);
  border-color: var(--gray-50);
}

.btn-secondary:active {
  background: var(--gray-10);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-arrow {
  font-size: 16px;
  font-weight: var(--weight-bold);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
  display: none !important;
}

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

.mb-0 {
  margin-bottom: 0;
}

.mt-md {
  margin-top: var(--space-4);
}

.mt-lg {
  margin-top: var(--space-6);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
  .form-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
  }

  .progress-card,
  .camper-tabs {
    flex: 1;
    min-width: 280px;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

  .gov-header-nav {
    padding: var(--space-3) 0;
  }

  .gov-header-nav .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-label {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    gap: var(--space-2);
  }

  .nav-links a {
    font-size: 14px;
    padding: var(--space-2) var(--space-4);
  }

  #google_translate_element {
    width: 100%;
    justify-content: center;
    margin-top: var(--space-2);
  }

  .gov-footer .container {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .form-card-body {
    padding: var(--space-5);
  }

  .form-row,
  .form-row.two-col {
    grid-template-columns: 1fr;
  }

  .radio-group.grid-2,
  .checkbox-group.grid-2,
  .radio-group.grid-3,
  .checkbox-group.grid-3,
  .radio-group.grid-4,
  .checkbox-group.grid-4 {
    grid-template-columns: 1fr;
  }

  .form-nav {
    padding: var(--space-5);
    flex-direction: column-reverse;
    gap: var(--space-3);
  }

  .btn {
    width: 100%;
  }

  .supplies-box ul {
    columns: 1;
  }

  .sidebar {
    flex-direction: column;
  }

  .progress-card,
  .camper-tabs {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .gov-seal {
    width: 56px;
    height: 56px;
    font-size: 9px;
  }

  .gov-title h1 {
    font-size: 20px;
  }

  .form-card-header {
    padding: var(--space-5);
  }

  .form-card-header h2 {
    font-size: 20px;
  }

  .info-box,
  .alert-box {
    padding: var(--space-4);
  }

  .form-section-title {
    font-size: 16px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .gov-header-nav,
  .sidebar,
  .form-nav {
    display: none;
  }

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

  .form-card {
    box-shadow: none;
    border: 1px solid #000;
  }

  .page {
    display: block !important;
    opacity: 1 !important;
    page-break-inside: avoid;
  }
}
