/* AI User Safety Assessment Styles */

/* Beta Warning Banner */
.beta-warning-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 3px solid #f59e0b;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.beta-warning-banner .container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.beta-warning-banner .warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.beta-warning-banner p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #78350f;
  font-weight: 500;
}

/* Beta Consent Modal */
.beta-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.beta-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.beta-modal-header {
  background: linear-gradient(135deg, #0d3d2f 0%, #1a5940 100%);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.beta-notice-badge {
  display: inline-block;
  background: rgba(251, 191, 36, 0.2);
  border: 2px solid #fbbf24;
  color: #fbbf24;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.beta-modal-header h2 {
  margin: 0;
  color: white;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
}

.beta-modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.beta-modal-body h3 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 0;
}

.beta-modal-body p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #475569;
}

.disclaimer-box {
  background: #f8fafc;
  border-left: 4px solid #c49b46;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 8px;
}

.disclaimer-box p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 1rem;
}

.disclaimer-box p:last-child {
  margin-bottom: 0;
}

.emphasis-text {
  text-align: center;
  font-size: 1.1rem;
  color: #c49b46;
  font-weight: 700;
  margin: 1.5rem 0;
}

.small-text {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: 1.5rem;
}

.beta-modal-body a {
  color: #c49b46;
  text-decoration: underline;
  font-weight: 600;
}

.consent-checkbox {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.consent-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-checkbox span {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1e293b;
  font-weight: 500;
}

.beta-modal-footer {
  padding: 2rem;
  background: white;
  display: flex;
  justify-content: center;
  border-top: 1px solid #e2e8f0;
}

.beta-modal-footer .btn-large {
  min-width: 250px;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

/* Small 'Scroll down' affordance inside beta modal for mobile */
.beta-scroll-btn {
  display: none; /* shown on small screens only */
  margin-right: 0.75rem;
  background: transparent;
  border: 2px solid rgba(16, 24, 32, 0.06);
  color: #0f172a;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.beta-scroll-btn:hover {
  background: rgba(16,24,32,0.03);
}

/* Save Progress Button */
.section-save-button {
  text-align: center;
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 2px dashed #e2e8f0;
  border-bottom: 2px dashed #e2e8f0;
}

.save-progress {
  font-size: 1rem;
  padding: 0.875rem 2rem;
  background: white;
  border: 2px solid #c49b46;
  color: #c49b46;
  transition: all 0.3s ease;
}

.save-progress:hover {
  background: #c49b46;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 155, 70, 0.3);
}

/* Alternating Question Backgrounds */
.question:nth-child(odd) {
  background: #fafafa;
  padding: 1.5rem;
  margin: 0 -1.5rem;
  border-radius: 8px;
}

.question:nth-child(even) {
  background: white;
  padding: 1.5rem;
  margin: 0 -1.5rem;
  border-radius: 8px;
}

/* Footer Copyright Notice */
.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  margin: 0.5rem 0;
}

.copyright-notice {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
}

/* Assessment Intro */
.assessment-intro {
  padding: 100px 0;
  background: linear-gradient(135deg, #0d3d2f 0%, #1a5940 50%, #267052 100%);
  position: relative;
  overflow: hidden;
}

.assessment-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(196, 155, 70, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.assessment-intro .container {
  position: relative;
  z-index: 1;
}

.assessment-intro h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.assessment-intro .lead {
  font-size: 1.35rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  color: #cbd5e1;
  line-height: 1.8;
  font-weight: 300;
}

.assessment-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.overview-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.overview-card h3 {
  margin: 0 0 1.5rem;
  background: linear-gradient(135deg, #c49b46 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
}

.overview-card p {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.overview-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overview-card li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  line-height: 1.6;
  color: #475569;
}

.overview-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c49b46;
  font-weight: bold;
}

.overview-card li:last-child {
  border-bottom: none;
}

/* Age Gate Section */
.age-gate-section {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 3rem;
  text-align: center;
}

.age-gate-checkbox {
  margin-bottom: 1.5rem;
}

.age-gate-checkbox label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.age-gate-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}

.age-gate-checkbox span {
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
  font-weight: 500;
}

.age-gate-error {
  color: #ef4444;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #fee2e2;
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.age-gate-error.hidden {
  display: none;
}

.assessment-intro .btn.large {
  display: block;
  max-width: 450px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 10px 40px rgba(196, 155, 70, 0.4);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: linear-gradient(135deg, #c49b46 0%, #d4af37 100%);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.assessment-intro .btn.large::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 ease;
}

.assessment-intro .btn.large:hover::before {
  left: 100%;
}

.assessment-intro .btn.large:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(196, 155, 70, 0.6);
}

/* Assessment Form */
.assessment-form {
  padding: 60px 0;
  background: var(--bg-light);
}

.assessment-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
  font-family: var(--site-font-serif);
  font-size: 2rem;
}

.hidden {
  display: none !important;
}

.progress-bar {
  position: sticky;
  top: 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 100;
  border-bottom: 1px solid rgba(196, 155, 70, 0.1);
}

.progress-fill {
  height: 10px;
  background: linear-gradient(90deg, #c49b46 0%, #d4af37 50%, #c49b46 100%);
  background-size: 200% 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
  box-shadow: 0 2px 8px rgba(196, 155, 70, 0.3);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.progress-text {
  display: block;
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 700;
  color: #1e293b;
  font-size: 1.05rem;
}

.question-section {
  background: white;
  padding: 3.5rem;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.question-section h2 {
  background: linear-gradient(135deg, #c49b46 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.section-description {
  color: #64748b;
  margin-bottom: 2.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

.question {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.question:last-child {
  border-bottom: none;
}

.question label {
  display: block;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.likert-scale {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.likert-scale label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  flex: 1;
  min-width: 140px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.likert-scale label::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #c49b46 0%, #d4af37 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.likert-scale label:hover {
  border-color: #c49b46;
  background: #fffbf0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 155, 70, 0.2);
}

.likert-scale input[type="radio"] {
  margin: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.likert-scale label span {
  position: relative;
  z-index: 1;
}

.likert-scale input[type="radio"]:checked + label,
.likert-scale label:has(input[type="radio"]:checked) {
  background: linear-gradient(135deg, #c49b46 0%, #d4af37 100%);
  color: white;
  border-color: #c49b46;
  box-shadow: 0 6px 20px rgba(196, 155, 70, 0.4);
  transform: translateY(-2px);
}

.form-actions {
  text-align: center;
  padding: 2rem 0;
}

.form-actions .btn.large {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Results Section */
.assessment-results {
  padding: 60px 0;
  background: var(--bg-light);
}

.assessment-results h1 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
}

.scores-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.score-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.score-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #c49b46 0%, #d4af37 100%);
}

.score-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.score-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.4;
}

.score-value {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.score-bar {
  height: 12px;
  background: var(--bg-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-fill {
  height: 100%;
  transition: width 1s ease, background 0.3s ease;
  border-radius: var(--radius-full);
}

/* Color coding for scores */
.score-green { color: #22c55e; }
.score-fill.score-green { background: #22c55e; }

.score-yellow { color: #eab308; }
.score-fill.score-yellow { background: #eab308; }

.score-orange { color: #f97316; }
.score-fill.score-orange { background: #f97316; }

.score-red { color: #ef4444; }
.score-fill.score-red { background: #ef4444; }

.score-darkred { color: #b91c1c; }
.score-fill.score-darkred { background: #b91c1c; }

/* Overall Risk Index */
.overall-risk {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 4rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  text-align: center;
  margin-bottom: 3rem;
  border: 1px solid rgba(196, 155, 70, 0.2);
  position: relative;
  overflow: hidden;
}

.overall-risk::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(196, 155, 70, 0.05) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.overall-risk h2 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.risk-value {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.risk-description {
  font-size: 1.25rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* Spectrum Section */
.spectrum-section {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.spectrum-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.spectrum-bar {
  position: relative;
  height: 60px;
  background: #e2e8f0; /* Default fallback */
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.spectrum-marker {
  position: absolute;
  top: -10px;
  width: 20px;
  height: 80px;
  background: var(--text-dark);
  border: 4px solid white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transition: left 1s ease;
}

.spectrum-level {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
}

/* Red Flag Alert */
.red-flag-alert {
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 3rem;
}

.red-flag-alert h3 {
  color: #ef4444;
  margin-bottom: 1rem;
}

.red-flag-alert p {
  color: #7f1d1d;
  font-size: 1.1rem;
}

/* SAFE Framework Guidance */
.safe-guidance {
  margin-bottom: 3rem;
}

.safe-guidance h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.safe-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  border-left: 4px solid #c49b46;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.safe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.safe-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #c49b46 0%, #d4af37 100%);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(196, 155, 70, 0.25);
}

.safe-card h3 {
  margin-bottom: 1rem;
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
}

.safe-card ul {
  list-style: none;
  padding-left: 0;
}

.safe-card li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  color: #475569;
}

.safe-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #c49b46;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Recovery Phase */
.recovery-phase {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.recovery-phase h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.recovery-phase h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.recovery-phase ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.recovery-phase li {
  margin-bottom: 0.5rem;
}

/* Results Actions */
.results-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 3rem 0;
}

.results-actions .btn {
  flex: 0 1 auto;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

.results-actions .btn.primary {
  background: linear-gradient(135deg, #c49b46 0%, #d4af37 100%);
  box-shadow: 0 6px 20px rgba(196, 155, 70, 0.3);
}

.results-actions .btn.primary:hover {
  box-shadow: 0 8px 30px rgba(196, 155, 70, 0.5);
  transform: translateY(-2px);
}

.results-actions .btn.ghost {
  border: 2px solid #e2e8f0;
  background: white;
}

.results-actions .btn.ghost:hover {
  border-color: #c49b46;
  background: #fffbf0;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Beta Modal Mobile */
  .beta-modal-content {
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .beta-modal-header {
    padding: 1rem;
  }

  .warning-icon-large {
    font-size: 2.5rem;
  }

  .beta-modal-header h2 {
    font-size: 1.25rem;
  }

  .beta-modal-body {
    padding: 1rem;
  }

  .beta-modal-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .beta-modal-body p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .emphasis-text {
    font-size: 0.95rem;
    margin: 1rem 0;
  }

  .small-text {
    font-size: 0.75rem;
    margin-top: 1rem;
  }

  .beta-modal-footer {
    padding: 1rem;
    flex-direction: column;
  }

  .beta-modal-footer .btn {
    width: 100%;
  }

  /* Show the scroll affordance inside the modal on small screens only */
  .beta-scroll-btn {
    display: inline-block;
    width: auto;
    align-self: center;
    margin-bottom: 0.75rem;
  }

  /* Beta Banner Mobile */
  .beta-warning-banner {
    padding: 0.75rem 0;
  }

  .beta-warning-banner p {
    font-size: 0.75rem;
  }

  .assessment-intro h1 {
    font-size: 2rem;
  }

  .assessment-intro .lead {
    font-size: 1.1rem;
  }

  .overview-card {
    padding: 1.5rem;
  }

  /* Age Gate Mobile - Sticky Footer */
  .age-gate-section {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 0;
    border-top: 3px solid #c49b46;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    z-index: 100;
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .age-gate-checkbox label {
    font-size: 0.9rem;
  }

  .age-gate-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .question-section {
    padding: 2rem 1.5rem;
  }

  .question:nth-child(odd),
  .question:nth-child(even) {
    padding: 1rem;
    margin: 0 -1rem;
  }

  .likert-scale {
    flex-direction: column;
  }

  .likert-scale label {
    min-width: 100%;
  }
  
  .section-save-button {
    margin: 2rem 0;
    padding: 1.5rem 0;
  }

  .save-progress {
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
  }

  .spectrum-labels {
    font-size: 0.75rem;
  }

  .score-value {
    font-size: 2.5rem;
  }

  .risk-value {
    font-size: 3rem;
  }

  .results-actions {
    flex-direction: column;
  }

  .results-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .assessment-intro h1 {
    font-size: 1.75rem;
  }

  .question-section {
    padding: 1.5rem 1rem;
  }

  .spectrum-labels span {
    font-size: 0.65rem;
  }
}
