/* CSS Variables - AEC Benefits Brand Colors */
:root {
  --primary-blue: #003366;        /* Deep professional blue */
  --primary-blue-dark: #002244;   /* Darker blue for hover */
  --primary-blue-light: #004488;  /* Lighter blue accent */
  --accent-green: #006633;        /* Construction/benefits green */
  --accent-green-dark: #004d26;  /* Darker green */
  --accent-orange: #ff6600;      /* Warm orange accent */
  --accent-purple: #6b46c1;      /* Professional purple */
  --neutral-bg: #f5f7fa;         /* Light gray background */
  --neutral-light: #ffffff;
  --neutral-gray: #4a5568;       /* Medium gray */
  --neutral-gray-light: #e2e8f0; /* Light gray */
  --neutral-gray-dark: #2d3748;  /* Dark gray */
  --text-primary: #1a202c;       /* Dark text */
  --text-secondary: #4a5568;     /* Secondary text */
  --border-color: #cbd5e0;       /* Border color */
  --error-red: #e53e3e;
  --success-green: #006633;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 51, 102, 0.15);
  --shadow-lg: 0 10px 15px -3px rgba(0, 51, 102, 0.2);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #003366 0%, #004488 50%, #006633 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

/* App Container */
#benefits-blueprint-app {
  max-width: 800px;
  margin: 0 auto;
  background: var(--neutral-light);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Bar */
.progress-container {
  background: var(--neutral-gray-light);
  height: 10px;
  position: relative;
  margin-bottom: 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-green) 50%, var(--accent-orange) 100%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-text {
  padding: 20px 28px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border-bottom: 2px solid var(--border-color);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}

.section-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.section-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.section-indicator.complete {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 1px solid var(--success-green);
}

.section-indicator.current {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--primary-blue-dark);
  border: 2px solid var(--primary-blue);
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.section-indicator.pending {
  background: var(--neutral-gray-light);
  color: var(--text-secondary);
  opacity: 0.6;
}

.section-indicator-icon {
  font-size: 14px;
}

.section-indicator-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-arrow {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 4px;
}

.step-counter {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 8px;
}

/* Card Container */
.card {
  padding: 40px 32px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  background: var(--neutral-light);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-green) 50%, var(--accent-orange) 100%);
}

/* Question Header */
.question-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.question-header.animating .question-section {
  animation: fadeInDown 0.4s ease-out;
}

.question-header.animating .question-title {
  animation: fadeInDown 0.5s ease-out 0.1s both;
}

.question-header.animating .question-helper {
  animation: fadeInDown 0.5s ease-out 0.2s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option.animate-in {
  animation: fadeInUp 0.4s ease-out both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-section {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 20px;
  border: 1px solid var(--primary-blue-light);
}

.section-icon {
  font-size: 18px;
}

.question-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
  letter-spacing: -0.3px;
}

.question-helper {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
  padding: 16px 20px;
  border-radius: 10px;
  border-left: 4px solid var(--primary-blue-light);
  margin-top: 12px;
  box-shadow: var(--shadow-sm);
}

.selection-hint {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #fef3c7;
  border-radius: 8px;
  border-left: 3px solid var(--accent-orange);
  text-align: center;
}

.selection-hint.success {
  background: #d1fae5;
  border-left-color: var(--success-green);
  color: #065f46;
}

/* Options Container */
.options-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

/* Radio/Checkbox Option - Redesigned */
.option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--neutral-light);
  position: relative;
  overflow: hidden;
  min-height: 60px;
}

.option.max-reached:not(.selected) {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.option.max-reached:not(.selected):hover {
  transform: none;
  border-color: var(--border-color);
  background: var(--neutral-light);
}

.option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--primary-blue-light) 0%, transparent 100%);
  transition: width 0.3s ease;
}

.option:hover {
  border-color: var(--primary-blue-light);
  background: #f8faff;
  transform: translateX(4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.option:hover::before {
  width: 4px;
}

.option.selected {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: var(--shadow-md);
  transform: translateX(4px) scale(1.01);
  animation: selectPulse 0.3s ease-out;
}

@keyframes selectPulse {
  0% {
    transform: translateX(4px) scale(1);
  }
  50% {
    transform: translateX(4px) scale(1.03);
  }
  100% {
    transform: translateX(4px) scale(1.01);
  }
}

.option.selected::before {
  width: 4px;
}

.option-checkbox {
  position: relative;
  margin-right: 16px;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option input[type="radio"],
.option input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: 0;
  position: absolute;
  z-index: 2;
  margin: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 2px solid var(--neutral-gray);
  border-radius: 50%;
  background: var(--neutral-light);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option input[type="checkbox"] + .checkmark {
  border-radius: 6px;
}

.option:hover .checkmark {
  border-color: var(--primary-blue-light);
}

.option input[type="radio"]:checked + .checkmark,
.option input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: scale(1.1);
  animation: checkmarkAppear 0.3s ease-out;
}

@keyframes checkmarkAppear {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.option input[type="radio"]:checked + .checkmark::after {
  content: '';
  width: 10px;
  height: 10px;
  background: white;
  border-radius: 50%;
}

.option input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
}

.option-label {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
  padding-left: 0;
  word-wrap: break-word;
}

/* Navigation Buttons */
.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 2px solid var(--border-color);
}

.btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  color: white;
  box-shadow: var(--shadow-md);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary.ready {
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  position: relative;
}

.btn-primary.ready::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.btn-secondary {
  background: var(--neutral-light);
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--neutral-gray-light);
  border-color: var(--neutral-gray);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Results Screen */
.results-container {
  padding: 40px 32px;
}

.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.results-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.results-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Category Breakdown */
.category-breakdown {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

.category-card {
  background: var(--neutral-light);
  border-radius: 12px;
  padding: 24px;
  border-left: 5px solid var(--primary-blue);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card.incomeProtection {
  border-left-color: var(--primary-blue);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.category-card.extendedHealth {
  border-left-color: var(--accent-green);
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}

.category-card.dental {
  border-left-color: var(--accent-orange);
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.category-card.wellness {
  border-left-color: var(--accent-purple);
  background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.category-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-icon {
  font-size: 24px;
}

.category-percentage {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
}

.category-dollars {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 600;
}

.category-summary {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 12px;
  font-weight: 500;
}

.category-insight {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

/* Contact Form */
.contact-form {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 40px;
  border-radius: 16px;
  margin-top: 40px;
  box-shadow: 0 4px 20px rgba(0, 51, 102, 0.08);
  border: 1px solid rgba(0, 51, 102, 0.1);
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
  font-weight: 500;
}

.form-group {
  margin-bottom: 28px;
  position: relative;
  animation: fadeIn 0.4s ease-out;
  animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.form-label::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: inline-block;
}

.form-input {
  width: 100%;
  padding: 16px 18px;
  font-size: 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--neutral-light);
  font-family: inherit;
}

.form-input:hover {
  border-color: var(--primary-blue-light);
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.08);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1), 0 4px 12px rgba(0, 51, 102, 0.15);
  transform: translateY(-1px);
}

.form-input.error {
  border-color: var(--error-red);
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.form-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.error-message {
  color: var(--error-red);
  font-size: 13px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.error-message::before {
  content: '⚠️';
  font-size: 14px;
}

.btn-submit {
  width: 100%;
  margin-top: 12px;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.3);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-submit:hover:not(:disabled)::before {
  width: 300px;
  height: 300px;
}

/* Success/Error States */
.message {
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 28px;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.4s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid var(--success-green);
}

.message.success::before {
  content: '✅';
  font-size: 20px;
}

.message.error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid var(--error-red);
}

.message.error::before {
  content: '❌';
  font-size: 20px;
}

.message.loading {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 2px solid var(--primary-blue);
  position: relative;
  overflow: hidden;
}

.message.loading::before {
  content: '⏳';
  font-size: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.message.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Welcome Screen */
.welcome-screen {
  padding: 60px 40px;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
}

.welcome-content {
  max-width: 700px;
  margin: 0 auto;
}

.welcome-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.5;
}

.welcome-message {
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 600;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 20px;
  background: var(--neutral-light);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-color);
  width: 100%;
  text-align: left;
}

.feature-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.welcome-result {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

.welcome-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn-start {
  padding: 20px 48px;
  font-size: 20px;
  min-width: 280px;
  box-shadow: 0 8px 16px rgba(0, 51, 102, 0.3);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.btn-start::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-start:hover::before {
  left: 100%;
}

/* Celebration Screen */
.celebration-screen {
  padding: 60px 40px;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0efff 100%);
}

.celebration-content {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.celebration-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: bounce 1s ease-in-out;
}

.celebration-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
  line-height: 1.4;
}

/* Closing Screen */
.closing-screen {
  padding: 60px 40px;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closing-content {
  max-width: 600px;
  margin: 0 auto;
}

.closing-icon {
  font-size: 80px;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease-out;
}

.closing-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.4;
}

.closing-message {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 640px) {
  body {
    padding: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  }

  #benefits-blueprint-app {
    border-radius: 12px;
  }

  .card {
    padding: 24px 20px;
    min-height: auto;
  }

  .question-title {
    font-size: 22px;
  }

  .results-title {
    font-size: 28px;
  }
  
  .contact-form {
    padding: 24px 20px;
  }
  
  .contact-title {
    font-size: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .contact-description {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-input {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .btn-submit {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .message {
    padding: 14px 18px;
    font-size: 14px;
  }

  .results-container {
    padding: 24px 20px;
  }

  .category-percentage {
    font-size: 28px;
  }

  .navigation {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-form {
    padding: 24px 20px;
  }

  .welcome-screen {
    padding: 40px 24px;
  }

  .welcome-title {
    font-size: 28px;
  }
  
  .welcome-subtitle {
    font-size: 18px;
  }

  .welcome-message {
    font-size: 18px;
  }
  
  .welcome-result {
    font-size: 16px;
  }
  
  .feature-item {
    font-size: 14px;
    padding: 12px 16px;
  }
  
  .btn-start {
    min-width: auto;
    width: 100%;
    max-width: 300px;
  }

  .closing-screen {
    padding: 40px 24px;
  }

  .closing-title {
    font-size: 24px;
  }

  .closing-message {
    font-size: 16px;
  }

  .section-progress {
    gap: 4px;
  }

  .section-indicator {
    padding: 4px 8px;
    font-size: 11px;
  }

  .section-indicator-name {
    display: none; /* Hide names on mobile, show icons only */
  }

  .section-arrow {
    font-size: 12px;
  }

  .celebration-screen {
    padding: 40px 24px;
  }

  .celebration-title {
    font-size: 24px;
  }

  .question-helper {
    font-size: 14px;
    padding: 12px 16px;
  }

  .category-card {
    padding: 20px;
  }

  .navigation {
    gap: 12px;
  }

  .btn {
    padding: 16px 24px;
    font-size: 16px;
  }

  .option {
    padding: 14px 16px;
    min-height: auto;
  }

  .option-label {
    font-size: 14px;
  }

  .selection-hint {
    font-size: 12px;
    padding: 8px 12px;
  }

  .progress-text {
    padding: 16px 20px;
    font-size: 12px;
  }

  .step-counter {
    font-size: 11px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .option {
    min-height: 60px; /* Larger touch targets */
  }

  .btn {
    min-height: 48px;
  }

  .option:hover {
    transform: none; /* Disable hover transforms on touch devices */
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .option {
    border-width: 3px;
  }

  .option.selected {
    border-width: 4px;
  }

  .btn-primary {
    border: 2px solid var(--primary-blue-dark);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accessibility Enhancements */
.option:focus-within {
  outline: 3px solid var(--primary-blue-light);
  outline-offset: 2px;
}

.btn:focus {
  outline: 3px solid var(--primary-blue-light);
  outline-offset: 2px;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading state improvements */
.message.loading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.message.loading::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid rgba(30, 64, 175, 0.2);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
