/* WAR WATCH Survey Styles - DevUps Brand */

/* CSS Variables - DevUps Theme */
:root {
  /* Light mode (default) */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(229, 84%, 10%);
  --muted: hsl(0, 0%, 96%);
  --muted-foreground: hsl(229, 84%, 20%);
  --card: hsl(0, 0%, 98%);
  --card-foreground: hsl(229, 84%, 10%);
  --border: hsl(215, 100%, 31%);
  --input: hsl(0, 0%, 92%);
  --primary: hsl(215, 100%, 31%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(0, 0%, 90%);
  --orange-brand: hsl(25, 100%, 50%);
  --ring: hsl(180, 100%, 50%);
  --radius: 0.5rem;

  /* Spacing */
  --header-height: 64px;
  --doc-nav-height: 52px;
  --progress-height: 48px;
}

.dark {
  --background: hsl(230, 10%, 8%);
  --foreground: hsl(0, 0%, 95%);
  --muted: hsl(240, 3.7%, 15.9%);
  --muted-foreground: hsl(240, 5%, 64.9%);
  --card: hsl(240, 10%, 12%);
  --card-foreground: hsl(0, 0%, 95%);
  --border: hsl(215, 70%, 31%);
  --input: hsl(240, 3.7%, 15.9%);
  --primary: hsl(215, 100%, 31%);
  --primary-foreground: hsl(0, 0%, 95%);
  --secondary: hsl(240, 3.7%, 15.9%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Readex Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--background);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--foreground);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 36px;
  object-fit: contain;
}

/* Logo theme switching */
.logo-dark {
  display: none;
}

.logo-light {
  display: block;
}

.dark .logo-dark {
  display: block;
}

.dark .logo-light {
  display: none;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.time-estimate {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.375rem 0.75rem;
  background: var(--muted);
  border-radius: 9999px;
}

.theme-toggle {
  background: var(--muted);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: background 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  background: var(--secondary);
  transform: scale(1.05);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

.dark .theme-toggle .sun-icon {
  display: block;
}

.dark .theme-toggle .moon-icon {
  display: none;
}

/* Document Navigation */
.doc-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  height: var(--doc-nav-height);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 99;
}

.doc-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.doc-nav-btn:hover {
  background: var(--muted);
  color: var(--foreground);
}

.doc-nav-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.doc-nav-btn svg {
  flex-shrink: 0;
}

/* Progress Bar */
.progress-container {
  position: fixed;
  top: calc(var(--header-height) + var(--doc-nav-height));
  left: 0;
  right: 0;
  height: var(--progress-height);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 98;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.progress-bar {
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

/* Main Content */
.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--header-height) + var(--doc-nav-height) + 2rem) 1.5rem 2rem;
}

.main-content.with-progress {
  padding-top: calc(var(--header-height) + var(--doc-nav-height) + var(--progress-height) + 2rem);
}

/* Document View (Analyse) */
.document-view {
  animation: fadeIn 0.3s ease;
}

.document-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.document-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.document-header h2 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.doc-meta {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-style: italic;
}

.document-content {
  line-height: 1.8;
}

.doc-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: hsla(215, 100%, 31%, 0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  color: var(--foreground);
  font-size: 0.9375rem;
}

.doc-notice svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.doc-section {
  margin-bottom: 2.5rem;
}

.doc-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.doc-section h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.doc-section p {
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.doc-section ul,
.doc-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.doc-section li {
  margin-bottom: 0.375rem;
  color: var(--muted-foreground);
}

.doc-section li strong {
  color: var(--foreground);
}

.doc-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.doc-column {
  padding: 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.doc-column h4 {
  margin-top: 0;
  color: var(--primary);
}

.doc-column ul {
  margin-bottom: 0;
}

.doc-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.doc-cta p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

/* Intro Screen */
.intro-screen {
  text-align: center;
  padding: 3rem 1.5rem;
  min-height: calc(100vh - var(--header-height) - var(--doc-nav-height) - 100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.intro-logo {
  margin-bottom: 2rem;
  color: var(--primary);
}

.intro-logo img {
  height: 80px;
  object-fit: contain;
}

.intro-screen h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange-brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-screen h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.intro-screen .subtitle {
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: left;
}

.info-card svg {
  flex-shrink: 0;
  color: var(--primary);
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange-brand) 100%);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px hsla(215, 100%, 31%, 0.3);
}

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

/* Form Sections */
.survey-form {
  animation: fadeIn 0.3s ease;
}

.form-section {
  display: none;
  margin-bottom: 2rem;
}

.form-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.section-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.section-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  min-width: 48px;
}

.section-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.section-context {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
}

.section-context h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-context h4:not(:first-child) {
  margin-top: 1rem;
}

.section-context p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

.section-conclusion {
  margin-top: 2rem;
  padding: 1.5rem;
  background: hsla(215, 100%, 31%, 0.1);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
}

.section-conclusion h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-conclusion p {
  color: var(--foreground);
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
}

.section-conclusion p:last-child {
  margin-bottom: 0;
}

/* Question Blocks */
.question-block {
  margin-bottom: 2rem;
}

.question-label {
  display: block;
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.question-number {
  color: var(--primary);
  font-weight: 600;
  margin-right: 0.5rem;
}

.required-hint {
  color: hsl(0, 84%, 60%);
  font-weight: 600;
  margin-left: 0.25rem;
}

.optional-hint {
  color: var(--muted-foreground);
  font-weight: 400;
  font-size: 0.875rem;
  margin-left: 0.25rem;
}

.multi-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  font-weight: 400;
  margin-top: 0.25rem;
}

/* Text Inputs */
.text-input,
.textarea-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--input);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.text-input:focus,
.textarea-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(215, 100%, 31%, 0.2);
}

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

.textarea-input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* Input Grid */
.input-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.sub-fields {
  padding-left: 0;
}

.sub-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--input);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.radio-option:hover,
.checkbox-option:hover {
  background: var(--muted);
}

.radio-option input,
.checkbox-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-custom,
.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--muted-foreground);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-custom {
  border-radius: 4px;
}

.radio-custom::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
}

.checkbox-custom::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid var(--primary-foreground);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.radio-option input:checked + .radio-custom,
.checkbox-option input:checked + .checkbox-custom {
  border-color: var(--primary);
  background: var(--primary);
}

.radio-option input:checked + .radio-custom::after {
  opacity: 1;
  transform: scale(1);
  background: var(--primary-foreground);
}

.checkbox-option input:checked + .checkbox-custom::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.radio-option input:checked ~ .radio-text,
.checkbox-option input:checked ~ .checkbox-text {
  color: var(--foreground);
}

.radio-text,
.checkbox-text {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

/* Remarque Fields */
.remarque-field {
  margin-top: 0.75rem;
  background: var(--card);
  border: 1px dashed var(--border);
  font-size: 0.875rem;
  min-height: 60px;
}

.remarque-field::placeholder {
  color: var(--muted-foreground);
  font-style: italic;
}

/* Navigation */
.form-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

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

.nav-btn.prev {
  background: var(--secondary);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.nav-btn.prev:not(:disabled):hover {
  background: var(--muted);
}

.nav-btn.next,
.nav-btn.submit {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  margin-left: auto;
}

.nav-btn.next:not(:disabled):hover,
.nav-btn.submit:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsla(215, 100%, 31%, 0.3);
}

.nav-btn.submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange-brand) 100%);
}

/* Validation Error Styles */
.error-message {
  color: hsl(0, 84%, 60%);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.error-message::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: hsl(0, 84%, 60%);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.question-block.has-error {
  border-left: 3px solid hsl(0, 84%, 60%);
  padding-left: 1rem;
  margin-left: -1rem;
}

.input-error {
  border-color: hsl(0, 84%, 60%) !important;
}

.input-error:focus {
  border-color: hsl(0, 84%, 60%) !important;
  box-shadow: 0 0 0 2px hsla(0, 84%, 60%, 0.2) !important;
}

/* Success Message */
.success-message {
  text-align: center;
  padding: 3rem 1.5rem;
  min-height: calc(100vh - var(--header-height) - var(--doc-nav-height) - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-content {
  max-width: 500px;
  margin: 0 auto;
  animation: successFadeIn 0.6s ease-out;
}

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

.success-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, hsla(142, 76%, 36%, 0.2) 0%, hsla(142, 76%, 36%, 0.1) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(142, 76%, 36%);
  position: relative;
  animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 hsla(142, 76%, 36%, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px hsla(142, 76%, 36%, 0);
  }
}

.success-icon::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid hsla(142, 76%, 36%, 0.3);
  animation: successRing 1.5s ease-out forwards;
}

@keyframes successRing {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-icon svg {
  animation: successCheck 0.5s ease-out 0.2s forwards;
  opacity: 0;
  transform: scale(0.5);
}

@keyframes successCheck {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-message h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, hsl(142, 76%, 36%) 0%, hsl(142, 76%, 50%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: successTextFade 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

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

.success-message p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
  animation: successTextFade 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

.success-confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -20px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--orange-brand) 100%);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: successTextFade 0.6s ease-out 0.5s forwards;
  opacity: 0;
}

.back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px hsla(215, 100%, 31%, 0.4);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  margin-top: 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-disclaimer {
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .document-header h1,
  .intro-screen h1 {
    font-size: 1.75rem;
  }

  .section-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-number {
    font-size: 1.5rem;
  }

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

  .form-navigation {
    flex-wrap: wrap;
  }

  .nav-btn {
    flex: 1;
    justify-content: center;
    min-width: 140px;
  }

  .nav-btn.submit {
    flex-basis: 100%;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .doc-nav-container {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 1rem;
  }

  .main-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .time-estimate {
    display: none;
  }

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

  .doc-nav-btn span {
    display: none;
  }

  .doc-nav-btn {
    padding: 0.625rem 0.875rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .doc-nav,
  .progress-container,
  .form-navigation,
  .theme-toggle,
  .footer {
    display: none !important;
  }

  .main-content {
    padding-top: 1rem;
  }

  .form-section {
    display: block !important;
    break-inside: avoid;
  }

  .question-block {
    break-inside: avoid;
  }
}

