/**
 * Dog Longevity Quiz - Consolidated Styles
 * Includes: Quiz UI, Email Modal, Results Page
 */

/* =============================================================================
   BASE & RESET
   ============================================================================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F6 100%);
  min-height: 100vh;
}

/* =============================================================================
   MATERIAL SYMBOLS FONT
   ============================================================================= */

@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  src: url(../shared/fonts/material-symbols-outlined-400-normal.woff2) format("woff2");
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* =============================================================================
   CSS VARIABLES - Brand Colors
   ============================================================================= */

:root {
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --tap-target: 48px;

  /* Brand Colors - Blue Theme (matches landing CTA #1c7cb5) */
  --brand-50: rgb(239 246 255);
  --brand-100: rgb(219 234 254);
  --brand-200: rgb(191 219 254);
  --brand-300: rgb(147 197 253);
  --brand-500: rgb(59 130 246);
  --brand-600: rgb(28 124 181);
  --brand-700: rgb(22 106 158);
  --brand-primary: #1c7cb5;
  --brand-primary-hover: #166a9e;

  --accent: rgb(245 158 11);
  --accent-hover: rgb(217 119 6);
  --success: rgb(34 197 94);
  --success-light: rgb(220 252 231);

  /* Score Colors */
  --score-excellent: #16A34A;
  --score-good: #65A30D;
  --score-fair: #CA8A04;
  --score-warning: #EA580C;
  --score-critical: #DC2626;
}

/* Breed Autocomplete Dropdown */
.breed-search-container {
  position: relative;
}

.breed-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.breed-dropdown.active {
  display: block;
}

.breed-dropdown-section {
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

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

.breed-dropdown-label {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breed-option {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #1f2937;
  transition: background 0.15s;
}

.breed-option:hover,
.breed-option.highlighted {
  background: #f3f4f6;
}

.breed-option.selected {
  background: #e0f2fe;
  color: #0369a1;
}

/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */

.bg-slate-50 {
  background-color: rgb(248 250 252);
}

.bg-white {
  background-color: white;
}

.text-slate-800 {
  color: rgb(30 41 59);
}

.text-slate-700 {
  color: rgb(51 65 85);
}

.text-slate-600 {
  color: rgb(71 85 105);
}

.text-slate-500 {
  color: rgb(100 116 139);
}

.text-slate-400 {
  color: rgb(148 163 184);
}

.font-sans {
  font-family: system-ui, -apple-system, sans-serif;
}

.antialiased {
  -webkit-font-smoothing: antialiased;
}

.min-h-screen {
  min-height: 100vh;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

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

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

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

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-serif {
  font-family: Georgia, 'Times New Roman', serif;
}

.rounded-xl {
  border-radius: 0.75rem;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-full {
  border-radius: 9999px;
}

.overflow-hidden {
  overflow: hidden;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

.w-full {
  width: 100%;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-flex {
  display: inline-flex;
}

.inline-block {
  display: inline-block;
}

.cursor-pointer {
  cursor: pointer;
}

/* Padding */
.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-5 {
  padding: 1.25rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-6 {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-6 {
  padding-top: 0.5rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pb-6 {
  padding-bottom: 1.5rem;
}

.pb-8 {
  padding-bottom: 2rem;
}

/* Margin */
.m-0 {
  margin: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 1.75rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-auto {
  margin-top: auto;
}

/* Grid */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Shadows */
.shadow-sm {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.06), 0 1px 2px -1px rgb(0 0 0 / 0.06);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Disabled pop animation - causes layout shifts on mobile */
@keyframes selectPop {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes checkBounce {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scoreReveal {
  from {
    stroke-dasharray: 0 408;
  }
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* =============================================================================
   QUIZ STEP SYSTEM
   ============================================================================= */

.step {
  display: none;
}

.step.active {
  display: block;
}

.step-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.15);
}

.step-icon .material-symbols-outlined {
  font-size: 26px;
  color: var(--brand-600);
}

/* =============================================================================
   OPTION CARDS
   ============================================================================= */

.option-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.option-card:hover {
  border-color: var(--brand-300) !important;
}

.option-card:active {
  background: #f8fafc;
}

.peer:checked+.option-card {
  border-color: var(--brand-600) !important;
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  box-shadow: 0 4px 12px -2px rgba(2, 132, 199, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.peer:checked+.option-card .material-symbols-outlined {
  color: var(--brand-600);
}

.peer:checked+.option-card span:last-child,
.peer:checked+.option-card .option-text {
  color: var(--brand-700);
  font-weight: 600;
}

/* Checkbox Indicator */
.checkbox-indicator {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgb(203 213 225);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  position: relative;
  background: white;
}

.peer:checked+.option-card .checkbox-indicator {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

.peer:checked+.option-card .checkbox-indicator::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  animation: checkBounce 0.3s ease-out;
}

/* Radio Indicator */
.radio-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgb(203 213 225);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  background: white;
}

.peer:checked+.option-card .radio-indicator {
  border-color: var(--brand-600);
}

.peer:checked+.option-card .radio-indicator::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-600);
  animation: checkBounce 0.3s ease-out;
}

/* =============================================================================
   PROGRESS BAR
   ============================================================================= */

.progress-container {
  padding: 1.5rem 1.5rem 1rem;
  background: rgb(248 250 252);
  border-top: 1px solid rgb(226 232 240);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: rgb(100 116 139);
}

.progress-label strong {
  color: var(--brand-600);
  font-weight: 600;
}

.progress-track {
  background: rgb(226 232 240);
  overflow: hidden;
  position: relative;
  height: 8px;
  border-radius: 4px;
}

.progress-fill {
  background: var(--brand-600);
  transition: width 0.5s ease-out;
  position: relative;
  height: 100%;
  border-radius: 4px;
}

.rounded-b-2xl {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

/* =============================================================================
   TOP PROGRESS BAR (Premium Mobile Design)
   ============================================================================= */

.progress-container-top {
  padding: 0;
  background: white;
}

/* Progress bar - flush edge to edge */
.progress-track-top {
  height: 4px;
  background: #E5E7EB;
  overflow: hidden;
  margin: 0;
}

.progress-fill-top {
  height: 100%;
  background: linear-gradient(90deg, #1c7cb5 0%, #3B82F6 100%);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress info - minimal and elegant */
.progress-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: #FAFBFC;
}

.progress-percentage {
  font-size: 13px;
  font-weight: 600;
  color: #1c7cb5;
}

.progress-divider {
  color: #D1D5DB;
  font-size: 8px;
}

.progress-section-name {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  letter-spacing: 0.02em;
}

/* Hide the old section label wrapper */
.progress-section-label {
  display: none;
}

/* =============================================================================
   ILLUSTRATED OPTION CARDS - Premium Mobile
   ============================================================================= */

.option-card-illustrated {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  min-height: 110px;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  background: white;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.option-card-illustrated:active {
  background: #FAFBFC;
}

.peer:checked+.option-card-illustrated {
  border-color: #1c7cb5;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.option-card-illustrated .checkbox-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #D1D5DB;
  background: white;
}

.peer:checked+.option-card-illustrated .checkbox-indicator {
  background: #1c7cb5;
  border-color: #1c7cb5;
}

.peer:checked+.option-card-illustrated .checkbox-indicator::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.option-card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  object-fit: contain;
}

.option-card-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  line-height: 1.3;
}

.peer:checked+.option-card-illustrated .option-card-label {
  color: #1c7cb5;
}

.illustrated-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .illustrated-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn-primary {
  background: #1c7cb5;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px -3px rgba(28, 124, 181, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(28, 124, 181, 0.5), 0 4px 8px -2px rgba(0, 0, 0, 0.15);
  background: #166a9e;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px -2px rgba(2, 132, 199, 0.4);
}

.btn-primary .material-symbols-outlined {
  transition: transform 0.2s ease;
}

.btn-primary:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 18px 32px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px -3px rgba(245, 158, 11, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2.5s infinite;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.6), 0 4px 8px -2px rgba(0, 0, 0, 0.15);
}

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

/* =============================================================================
   SELECT DROPDOWN
   ============================================================================= */

select {
  font-size: 16px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  transition: all 0.2s ease;
}

.select-wrapper select:hover {
  border-color: var(--brand-300);
}

.select-wrapper select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* =============================================================================
   LANDING PAGE STYLES
   ============================================================================= */

.logo-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%231c7cb5' d='M226.5 92.9c14.3 42.9-.3 86.2-32.6 96.8s-70.1-15.6-84.4-58.5s.3-86.2 32.6-96.8s70.1 15.6 84.4 58.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.logo-text {
  font-weight: bold;
  color: #1c7cb5;
  font-size: 20px;
}

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%234CAF50' d='M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.landing-badge {
  display: inline-block;
  background-color: #fcf0c6;
  color: #8a6d3b;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 2px;
}

.highlight-red {
  color: #c9302c;
}

.checklist-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
}

.checklist-ul {
  list-style: none;
  flex: 1;
  padding-right: 10px;
  padding-left: 0;
  margin: 0;
}

.checklist-ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 15px;
  line-height: 1.4;
}

.book-container {
  position: relative;
  width: 110px;
  flex-shrink: 0;
}

.book-image {
  width: 100%;
  height: auto;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.bonus-sticker {
  position: absolute;
  top: -15px;
  right: -10px;
  background: #ffeb3b;
  width: 50px;
  height: 50px;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  transform: rotate(15deg);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.bonus-sticker:before,
.bonus-sticker:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: #ffeb3b;
  z-index: -1;
}

.bonus-sticker:before {
  transform: rotate(30deg);
}

.bonus-sticker:after {
  transform: rotate(60deg);
}

.cta-button-landing {
  width: 100%;
  padding: 18px;
  background-color: #1c7cb5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  line-height: 1.3;
}

.cta-button-landing:hover {
  background-color: #166a9e;
}

/* =============================================================================
   EMAIL CAPTURE MODAL
   ============================================================================= */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 380px;
  width: 90%;
  padding: 32px 28px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgb(148 163 184);
  padding: 4px;
}

.modal-close:hover {
  color: rgb(71 85 105);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  margin: 0 0 8px 0;
  font-size: 24px;
  color: rgb(30 41 59);
}

.modal-header p {
  margin: 0;
  color: rgb(100 116 139);
  font-size: 14px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: rgb(51 65 85);
}

.form-group input {
  padding: 14px 16px;
  border: 2px solid rgb(226 232 240);
  border-radius: 10px;
  font-size: 16px;
  color: #111827;
  background: #FAFBFC;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal-submit {
  margin-top: 8px;
}

.privacy-note {
  text-align: center;
  font-size: 12px;
  color: rgb(148 163 184);
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.privacy-note .material-symbols-outlined {
  font-size: 16px;
}

.privacy-link {
  color: #1c7cb5;
  text-decoration: none;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* Back Button Link */
.back-link {
  font-size: 14px;
  color: #6B7280;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

.back-link:hover {
  color: #374151;
}

/* CTA Container adjustments for back button */
.cta-container-fixed {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =============================================================================
   RESULTS PAGE - NEW PREMIUM DESIGN
   ============================================================================= */

.results-container {
  padding: 0;
  background: linear-gradient(180deg, #E8F4FD 0%, #F0F7FC 50%, #FAFBFC 100%);
}

/* Top Bar */
.results-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.results-logo {
  font-size: 16px;
  font-weight: 700;
  color: #1c7cb5;
}

.results-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  background: white;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid #E5E7EB;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22C55E;
  border-radius: 50%;
}

/* Hero Section */
.results-hero {
  text-align: center;
  padding: 0 20px 24px;
}

.dog-photo-frame {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 4px solid #1c7cb5;
  overflow: hidden;
  background: #E5E7EB;
}

.dog-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.results-headline-new {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #1F2937;
  line-height: 1.3;
  margin: 0;
}

.dog-name-highlight {
  color: #1c7cb5;
}

/* Grid Section */
.results-grid-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 16px;
}

/* Aging Card */
.aging-card-new {
  background: white;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #E5E7EB;
}

.aging-card-header {
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.aging-dot {
  width: 8px;
  height: 8px;
  background: #3B82F6;
  border-radius: 50%;
  margin-left: auto;
}

.aging-ages-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.aging-age-block {
  text-align: center;
}

.aging-age-label {
  font-size: 8px;
  font-weight: 600;
  color: #6B7280;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.aging-age-label.bio {
  color: #1c7cb5;
}

.aging-age-value {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
}

.aging-age-value.bio {
  color: #1c7cb5;
}

.aging-status-badge-new {
  font-size: 8px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.aging-status-badge-new.optimal {
  background: #DCFCE7;
  color: #16A34A;
}

.aging-status-badge-new.on-track {
  background: #FEF3C7;
  color: #CA8A04;
}

.aging-status-badge-new.accelerated {
  background: #FEE2E2;
  color: #DC2626;
}

.aging-status-badge-new.needs-attention {
  background: #FEE2E2;
  color: #DC2626;
}

.aging-description {
  font-size: 11px;
  color: #6B7280;
  line-height: 1.4;
  background: #F9FAFB;
  padding: 10px;
  border-radius: 8px;
}

/* Radar Card */
.radar-card-new {
  background: #F0F7FC;
  border-radius: 16px;
  padding: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.radar-chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-center-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radar-score-number {
  font-size: 28px;
  font-weight: 700;
  color: #1c7cb5;
  line-height: 1;
}

.radar-score-label {
  font-size: 8px;
  color: #6B7280;
  text-align: center;
}

/* Breakdown Section */
.breakdown-section-new {
  padding: 0 16px 16px;
}

.breakdown-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.breakdown-header-new h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.breakdown-count {
  font-size: 13px;
  color: #6B7280;
}

/* Biomarker Cards New */
.biomarker-card-new {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.biomarker-icon-new {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.biomarker-text {
  flex: 1;
  min-width: 0;
}

.biomarker-name-new {
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
}

.biomarker-desc-new {
  font-size: 12px;
  color: #6B7280;
}

.biomarker-score-new {
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-icon {
  font-size: 14px;
}

.score-num {
  font-size: 18px;
  font-weight: 700;
}

.biomarker-chevron {
  color: #9CA3AF;
  font-size: 14px;
}

/* Longevity Section New */
.longevity-section-new {
  background: #1E3A5F;
  margin: 0 16px 16px;
  border-radius: 16px;
  padding: 20px;
}

.longevity-header-new {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.longevity-icon-new {
  width: 36px;
  height: 36px;
  background: #2563EB;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: white;
}

.longevity-title-new {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.longevity-subtitle-new {
  font-size: 13px;
  color: #94A3B8;
}

.longevity-rec-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
}

.rec-icon {
  font-size: 18px;
}

.rec-title-new {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.rec-desc-new {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.4;
}

/* CTA Section */
.results-cta-section {
  padding: 0 16px 24px;
}

.results-cta-button-new {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #1c7cb5 0%, #1565a0 100%);
  color: white;
  font-size: 17px;
  font-weight: 600;
  padding: 18px 24px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(28, 124, 181, 0.35);
}

/* Mobile responsive for grid */
@media (max-width: 480px) {
  .results-grid-section {
    grid-template-columns: 1fr;
  }

  .aging-card-new {
    order: 1;
  }

  .radar-card-new {
    order: 2;
    min-height: 240px;
  }
}

/* Premium Header Section */
.results-header {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FED7AA 100%);
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(249, 115, 22, 0.15);
}

.results-badge {
  display: inline-block;
  background: var(--results-orange);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.results-headline {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;
  color: #1E293B;
  line-height: 1.3;
  margin: 0 0 12px 0;
}

.results-headline .breed-name {
  color: var(--results-orange);
}

.results-subheadline {
  font-size: 14px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
}

/* Aging Velocity Card */
.aging-velocity-card {
  background: white;
  margin: 20px 16px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.aging-velocity-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.aging-velocity-icon {
  width: 32px;
  height: 32px;
  background: var(--results-orange-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aging-velocity-icon .material-symbols-outlined {
  font-size: 18px;
  color: var(--results-orange);
}

.aging-velocity-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aging-velocity-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.age-display {
  text-align: center;
  flex: 1;
}

.age-display-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.age-display-label.calendar {
  color: #64748B;
}

.age-display-label.biological {
  color: var(--results-orange);
}

.age-display-value {
  font-size: 28px;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
}

.age-display-value.calendar {
  color: #1E293B;
}

.age-display-value.biological {
  color: var(--results-orange);
}

.age-display-unit {
  font-size: 14px;
  font-weight: 400;
}

.age-arrow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
}

.age-status-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.age-status-badge.optimal {
  background: rgba(22, 163, 74, 0.15);
  color: #16A34A;
}

.age-status-badge.on-track {
  background: rgba(101, 163, 13, 0.15);
  color: #65A30D;
}

.age-status-badge.accelerated {
  background: rgba(202, 138, 4, 0.15);
  color: #CA8A04;
}

.age-status-badge.needs-attention {
  background: rgba(234, 88, 12, 0.15);
  color: #EA580C;
}

.age-arrow {
  color: #CBD5E1;
  font-size: 20px;
}

.aging-velocity-description {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
  background: #F8FAFC;
  padding: 12px;
  border-radius: 8px;
  margin: 0;
}

/* Vitality Score Section */
.vitality-section {
  background: white;
  margin: 20px 16px;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.vitality-title {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 4px 0;
}

.vitality-subtitle {
  font-size: 13px;
  color: #64748B;
  margin: 0 0 20px 0;
}

.vitality-chart-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  min-height: 280px;
}

#starPlotContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

#starPlotContainer svg {
  display: block;
}

.vitality-center-score {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.vitality-score-number {
  font-size: 38px;
  font-weight: 700;
  font-family: Georgia, 'Times New Roman', serif;
  color: #1E293B;
  line-height: 1;
}

.vitality-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 20px;
  border-radius: 9999px;
  margin-top: 8px;
}

.vitality-status-badge.excellent {
  background: rgba(22, 163, 74, 0.15);
  color: #16A34A;
}

.vitality-status-badge.good {
  background: rgba(101, 163, 13, 0.15);
  color: #65A30D;
}

.vitality-status-badge.fair {
  background: rgba(202, 138, 4, 0.15);
  color: #CA8A04;
}

.vitality-status-badge.warning {
  background: rgba(234, 88, 12, 0.15);
  color: #EA580C;
}

.vitality-status-badge.critical {
  background: rgba(220, 38, 38, 0.15);
  color: #DC2626;
}

/* System Breakdown Section */
.system-breakdown-section {
  background: white;
  margin: 20px 16px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.system-breakdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.system-breakdown-title {
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin: 0;
}

.system-breakdown-count {
  font-size: 12px;
  color: #64748B;
}

/* Biomarker Cards */
.biomarker-card {
  background: #F8FAFC;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  overflow: hidden;
}

.biomarker-card:last-child {
  margin-bottom: 0;
}

.biomarker-card-header {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
}

.biomarker-card-header:hover {
  background: #F1F5F9;
}

.biomarker-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
}

.biomarker-icon-container.brain {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
}

.biomarker-icon-container.heart {
  background: linear-gradient(135deg, #FCE7F3, #FBCFE8);
}

.biomarker-icon-container.immune {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
}

.biomarker-icon-container.joints {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
}

.biomarker-icon-container.activity {
  background: linear-gradient(135deg, #E0E7FF, #C7D2FE);
}

.biomarker-icon-container.warnings {
  background: linear-gradient(135deg, #FFEDD5, #FED7AA);
}

.biomarker-icon-container .material-symbols-outlined {
  font-size: 22px;
  color: #475569;
}

.biomarker-info {
  flex: 1;
  min-width: 0;
}

.biomarker-name {
  font-size: 15px;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 2px;
}

.biomarker-desc {
  font-size: 12px;
  color: #64748B;
}

.biomarker-score-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.biomarker-score {
  font-size: 22px;
  font-weight: 700;
  min-width: 45px;
  text-align: right;
  font-family: Georgia, 'Times New Roman', serif;
}

.biomarker-expand {
  color: #94A3B8;
  transition: transform 0.2s ease;
}

.biomarker-card.expanded .biomarker-expand {
  transform: rotate(180deg);
}

/* Biomarker Detailed Analysis */
.biomarker-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.biomarker-card.expanded .biomarker-details {
  max-height: 400px;
}

.biomarker-details-content {
  padding: 0 16px 16px 16px;
  border-top: 1px solid #E2E8F0;
}

.biomarker-analysis {
  margin-top: 12px;
}

.biomarker-analysis-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.biomarker-analysis-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 12px 0;
}

.biomarker-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.biomarker-factor {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.biomarker-factor.positive {
  background: rgba(22, 163, 74, 0.1);
  color: #16A34A;
}

.biomarker-factor.negative {
  background: rgba(220, 38, 38, 0.1);
  color: #DC2626;
}

.biomarker-factor.neutral {
  background: rgba(100, 116, 139, 0.1);
  color: #64748B;
}

.biomarker-progress-section {
  margin-top: 12px;
}

.biomarker-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748B;
  margin-bottom: 6px;
}

.biomarker-progress-bar {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.biomarker-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Longevity Plan Section */
.longevity-section {
  background: var(--results-dark-bg);
  margin: 20px 16px;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.longevity-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.longevity-icon {
  width: 36px;
  height: 36px;
  background: var(--results-orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.longevity-icon .material-symbols-outlined {
  font-size: 20px;
  color: white;
}

.longevity-title {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.longevity-subtitle {
  font-size: 13px;
  color: #94A3B8;
  margin: 0 0 20px 0;
}

.longevity-recommendation {
  background: var(--results-dark-card);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border-left: 4px solid var(--results-orange);
}

.longevity-rec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(249, 115, 22, 0.2);
  border-radius: 6px;
  margin-bottom: 10px;
}

.longevity-rec-icon .material-symbols-outlined {
  font-size: 16px;
  color: var(--results-orange);
}

.longevity-rec-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.longevity-rec-desc {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.5;
  margin: 0;
}

/* Premium CTA Button */
.results-cta-premium {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--results-orange) 0%, var(--results-orange-dark) 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.results-cta-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.5);
}

.results-cta-premium .material-symbols-outlined {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.results-cta-premium:hover .material-symbols-outlined {
  transform: translateX(4px);
}

.results-guarantee {
  text-align: center;
  font-size: 12px;
  color: #94A3B8;
  margin-top: 12px;
}

.results-guarantee span {
  margin: 0 8px;
}

/* Premium Results - Mobile Responsive */
@media (max-width: 639px) {
  .results-header {
    padding: 24px 16px;
  }

  .results-headline {
    font-size: 22px;
  }

  .aging-velocity-content {
    flex-direction: column;
    gap: 16px;
  }

  .age-arrow-container {
    flex-direction: row;
    gap: 8px;
  }

  .age-arrow {
    transform: rotate(90deg);
  }

  .age-display-value {
    font-size: 24px;
  }

  .vitality-score-number {
    font-size: 32px;
  }

  .vitality-center-score {
    width: 75px;
    height: 75px;
  }

  .vitality-chart-container {
    min-height: 240px;
  }

  .biomarker-card-header {
    padding: 14px;
  }

  .biomarker-icon-container {
    width: 40px;
    height: 40px;
  }

  .biomarker-name {
    font-size: 14px;
  }

  .biomarker-score {
    font-size: 20px;
  }

  .biomarker-details-content {
    padding: 0 14px 14px 14px;
  }

  .biomarker-analysis-text {
    font-size: 12px;
  }
}

/* Overall Score Circle */
.score-circle-container {
  text-align: center;
  margin-bottom: 24px;
}

.score-circle {
  position: relative;
  display: inline-block;
}

.score-circle svg {
  transform: rotate(-90deg);
}

.score-circle-bg {
  fill: none;
  stroke: rgb(226 232 240);
  stroke-width: 12;
}

.score-circle-fill {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dasharray 1.5s ease-out;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  font-size: 12px;
  color: rgb(100 116 139);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Risk Tier Badge */
.risk-badge {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  margin-top: 16px;
}

.risk-description {
  margin-top: 12px;
  color: rgb(100 116 139);
  font-size: 14px;
  line-height: 1.5;
}

/* Biological Age Section */
.bio-age-section {
  background: linear-gradient(135deg, var(--brand-50) 0%, var(--brand-100) 100%);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.bio-age-item {
  text-align: center;
}

.bio-age-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--brand-primary);
}

.bio-age-label {
  font-size: 11px;
  color: rgb(100 116 139);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bio-age-arrow {
  font-size: 24px;
  color: rgb(148 163 184);
}

/* Star Plot Container */
.star-plot-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.star-plot-title {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: rgb(30 41 59);
  margin: 0 0 16px 0;
}

#starPlotContainer {
  display: flex;
  justify-content: center;
}

/* Dimension Cards */
.dimensions-section {
  margin: 24px 0;
}

.dimensions-title {
  font-size: 16px;
  font-weight: 600;
  color: rgb(30 41 59);
  margin: 0 0 16px 0;
}

.dimension-card {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgb(241 245 249);
}

.dimension-card:last-child {
  border-bottom: none;
}

.dimension-icon {
  font-size: 24px;
  margin-right: 14px;
  flex-shrink: 0;
}

.dimension-info {
  flex: 1;
  min-width: 0;
}

.dimension-name {
  font-size: 14px;
  font-weight: 600;
  color: rgb(30 41 59);
  margin-bottom: 2px;
}

.dimension-desc {
  font-size: 12px;
  color: rgb(100 116 139);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dimension-score {
  font-size: 20px;
  font-weight: 700;
  min-width: 50px;
  text-align: right;
}

.dimension-bar-container {
  width: 80px;
  height: 8px;
  background: rgb(241 245 249);
  border-radius: 4px;
  overflow: hidden;
  margin-left: 12px;
}

.dimension-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 1s ease-out;
}

/* Recommendations */
.recommendations-section {
  margin: 24px 0;
}

.recommendations-title {
  font-size: 16px;
  font-weight: 600;
  color: rgb(30 41 59);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommendation-card {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  border-left: 4px solid;
}

.recommendation-card.high {
  background: rgba(220, 38, 38, 0.08);
  border-color: var(--score-critical);
}

.recommendation-card.medium {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--brand-primary);
}

.recommendation-title {
  font-size: 14px;
  font-weight: 600;
  color: rgb(30 41 59);
  margin-bottom: 6px;
}

.recommendation-desc {
  font-size: 13px;
  color: rgb(100 116 139);
  line-height: 1.5;
}

/* Results CTA */
.results-cta {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-700) 100%);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}

.results-cta-button {
  background: white;
  color: var(--brand-primary);
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.results-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.results-cta-text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-top: 12px;
}

/* =============================================================================
   FOCUS STATES (Accessibility)
   ============================================================================= */

.option-card:focus-within {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

button:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
}

input:focus-visible {
  outline: none;
}

.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;
}

/* =============================================================================
   RESPONSIVE - Mobile
   ============================================================================= */

@media (max-width: 639px) {
  .step-header {
    margin-bottom: 1.5rem;
  }

  .step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .step-icon .material-symbols-outlined {
    font-size: 24px;
  }

  .btn-primary,
  .btn-accent {
    width: 100%;
    padding: 16px 24px;
  }

  .option-card {
    padding: 14px 16px;
  }

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

  .bio-age-section {
    flex-direction: column;
    gap: 12px;
  }

  .bio-age-arrow {
    transform: rotate(90deg);
  }

  .dimension-bar-container {
    display: none;
  }
}

/* =============================================================================
   NEW DESIGN SYSTEM - Quiz Funnel Styles
   ============================================================================= */

/* Narrow Container Override - Premium Mobile */
#mainContainer {
  max-width: 440px !important;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  margin: 12px auto;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Results page needs more space */
#mainContainer:has(.results-container) {
  max-width: 480px !important;
}

/* Fallback for browsers without :has() support */
.step[data-step="8"] {
  width: 100%;
}

/* Bottom CTA Container - Natural flow */
.cta-container-fixed {
  padding: 24px 20px 20px;
  background: white;
}

.btn-next-step {
  width: 100%;
  background: linear-gradient(135deg, #1c7cb5 0%, #1565a0 100%);
  color: white;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 14px;
  padding: 18px 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(28, 124, 181, 0.35);
}

.btn-next-step:active {
  opacity: 0.9;
}

/* Premium Selection Buttons */
.option-dark-blue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: white;
  color: #1E293B;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  line-height: 1.4;
}

.option-dark-blue:active {
  background: #F8FAFC;
}

.peer:checked+.option-dark-blue {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: #1c7cb5;
  color: #1c7cb5;
  font-weight: 600;
}

.option-dark-blue .option-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.7;
}

.peer:checked+.option-dark-blue .option-icon {
  opacity: 1;
}

.option-dark-blue .option-icon svg {
  width: 100%;
  height: 100%;
}

/* White outline buttons - same premium style */
.option-white {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  background: white;
  color: #1E293B;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  line-height: 1.4;
}

.option-white:active {
  background: #F8FAFC;
}

.peer:checked+.option-white {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: #1c7cb5;
  color: #1c7cb5;
  font-weight: 600;
}

/* Vertical Stack Layout */
.vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Gender Selection Cards - Premium Style */
.gender-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gender-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.gender-card:active {
  background: #FAFBFC;
}

.peer:checked+.gender-card.male {
  border-color: #3B82F6;
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
}

.peer:checked+.gender-card.female {
  border-color: #EC4899;
  background: linear-gradient(135deg, #FDF2F8 0%, #FCE7F3 100%);
}

.gender-card-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 10px;
  object-fit: contain;
}

.gender-card-label {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
}

.peer:checked+.gender-card.male .gender-card-label {
  color: #1D4ED8;
}

.peer:checked+.gender-card.female .gender-card-label {
  color: #BE185D;
}

/* Breed Search Input - Premium */
.breed-search-container {
  position: relative;
}

.breed-search-container .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

.breed-search-input {
  width: 100%;
  padding: 18px 18px 18px 50px;
  font-size: 16px;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  background: #FAFBFC;
  color: #111827;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.breed-search-input:focus {
  outline: none;
  border-color: #1c7cb5;
  background: white;
  box-shadow: 0 0 0 4px rgba(28, 124, 181, 0.1);
}

.breed-search-input::placeholder {
  color: #9CA3AF;
}

/* Dog Name Input - Premium */
.dog-name-input {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 500;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  background: #FAFBFC;
  color: #111827;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dog-name-input:focus {
  outline: none;
  border-color: #1c7cb5;
  background: white;
  box-shadow: 0 0 0 4px rgba(28, 124, 181, 0.1);
}

.dog-name-input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
}

/* Age Dropdown - Premium */
.age-dropdown {
  width: 100%;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 500;
  border: 2px solid #E5E7EB;
  border-radius: 14px;
  background: #FAFBFC;
  color: #111827;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.age-dropdown:focus {
  outline: none;
  border-color: #1c7cb5;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(28, 124, 181, 0.1);
}

.age-dropdown:hover {
  border-color: #D1D5DB;
  background-color: white;
}

.age-dropdown option {
  padding: 12px;
  font-size: 16px;
}

/* Question Block Styling - Premium */
.question-block {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #F3F4F6;
}

.question-block-label {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  line-height: 1.35;
  text-align: center;
  letter-spacing: -0.02em;
}

.question-subtext {
  font-size: 14px;
  color: #6B7280;
  text-align: center;
  margin: -8px 0 16px 0;
  font-style: italic;
  line-height: 1.4;
}

/* Updated Illustrated Cards for 2-column grid */
.illustrated-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Step content area */
.step-content-with-cta {
  padding-bottom: 0;
}

/* Screen header styles - Premium */
.screen-header {
  text-align: center;
  margin-bottom: 28px;
  padding: 0;
}

.screen-title {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 8px 0;
  text-align: center;
  letter-spacing: -0.02em;
}

.screen-subtitle {
  font-size: 15px;
  color: #6B7280;
  text-align: center;
  margin: 0;
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm\:px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sm\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .sm\:p-8 {
    padding: 2rem;
  }

  .sm\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .sm\:w-auto {
    width: auto;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .md\:px-10 {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  .md\:p-10 {
    padding: 2.5rem;
  }
}

/* Footer - Reduced Prominence */
footer {
  background: transparent !important;
  border-top: none !important;
  padding: 20px 16px !important;
  margin-top: 24px;
}

footer p {
  font-size: 11px !important;
  color: #94A3B8 !important;
  line-height: 1.5;
}

/* =============================================================================
   PREMIUM RESULTS PAGE - NEW DESIGN SYSTEM
   ============================================================================= */

/* Celebration Animation for High Scores */
.results-celebrate {
  position: relative;
}

.results-celebrate::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.08) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Hero Section by Result Path */
.results-hero {
  padding: 32px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #F0F9FF 0%, #F8FAFC 100%);
  border-radius: 0 0 24px 24px;
  margin-bottom: 8px;
}

.results-hero-thriving {
  background: linear-gradient(180deg, #ECFDF5 0%, #F0F9FF 100%);
}

.results-hero-prevention {
  background: linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 100%);
}

.results-hero-support {
  background: linear-gradient(180deg, #FFF7ED 0%, #FFFBEB 100%);
}

.results-hero-attention {
  background: linear-gradient(180deg, #FEF3C7 0%, #FFF7ED 100%);
}

.results-hero-urgent {
  background: linear-gradient(180deg, #FEE2E2 0%, #FEF3C7 100%);
}

/* Score Reveal Circle */
.score-reveal-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 4px rgba(28, 124, 181, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scoreRevealPulse 2s ease-out;
}

@keyframes scoreRevealPulse {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.score-reveal-inner {
  text-align: center;
}

.score-reveal-number {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: #1c7cb5;
  line-height: 1;
  font-family: Georgia, serif;
}

.score-reveal-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.results-headline-new {
  font-size: 26px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.3;
  margin: 0 0 12px;
  font-family: Georgia, serif;
}

.results-subheadline {
  font-size: 15px;
  color: #64748B;
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Warning Callout Section */
.warning-callout-section {
  display: flex;
  gap: 14px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FFFBEB 100%);
  border: 1px solid #FDE68A;
  border-left: 4px solid #F59E0B;
  border-radius: 12px;
  padding: 16px;
  margin: 0 16px 16px;
}

.warning-callout-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.warning-callout-content {
  flex: 1;
}

.warning-callout-title {
  font-size: 14px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 4px;
}

.warning-callout-text {
  font-size: 13px;
  color: #78350F;
  line-height: 1.5;
}

/* Premium Aging Card */
.premium-aging-card {
  background: white;
  border-radius: 16px;
  margin: 0 16px 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.aging-card-header-new {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 20px;
}

.aging-icon {
  font-size: 20px;
}

.aging-comparison-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.aging-col {
  text-align: center;
  flex: 1;
}

.aging-col.bio .aging-col-value {
  color: #1c7cb5;
}

.aging-col-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.aging-col-value {
  font-size: 36px;
  font-weight: 700;
  color: #1F2937;
  font-family: Georgia, serif;
  line-height: 1.1;
}

.aging-col-unit {
  font-size: 12px;
  color: #94A3B8;
}

.aging-arrow-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.aging-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.aging-status-pill.optimal {
  background: #DCFCE7;
  color: #16A34A;
}

.aging-status-pill.on-track {
  background: #FEF9C3;
  color: #CA8A04;
}

.aging-status-pill.accelerated {
  background: #FFEDD5;
  color: #EA580C;
}

.aging-status-pill.needs-attention {
  background: #FEE2E2;
  color: #DC2626;
}

.aging-arrow {
  font-size: 20px;
  color: #CBD5E1;
}

.aging-insight-text {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  background: #F8FAFC;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

/* Life Expectancy Bar */
.life-expectancy-bar {
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
}

.life-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748B;
  margin-bottom: 8px;
}

.life-bar-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  position: relative;
  overflow: visible;
}

.life-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1c7cb5 0%, #3B82F6 100%);
  border-radius: 4px;
  transition: width 1.5s ease-out;
}

.life-bar-marker {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  background: white;
  border: 3px solid #1c7cb5;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 1.5s ease-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Breed Insights Section */
.breed-insights-section {
  margin: 0 16px 16px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.header-badge {
  font-size: 12px;
  color: #64748B;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 12px;
}

.header-subtitle {
  font-size: 13px;
  color: #94A3B8;
}

.breed-insight-card {
  display: flex;
  gap: 12px;
  background: white;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid #E5E7EB;
}

.breed-insight-card.info {
  border-left: 3px solid #3B82F6;
}

.breed-insight-card.warning {
  border-left: 3px solid #F59E0B;
  background: #FFFBEB;
}

.breed-insight-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.breed-insight-content {
  flex: 1;
}

.breed-insight-title {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 4px;
}

.breed-insight-text {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}

/* Radar Section Premium */
.radar-section-premium {
  background: white;
  margin: 0 16px 16px;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.radar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #64748B;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.excellent {
  background: #16A34A;
}

.legend-dot.good {
  background: #65A30D;
}

.legend-dot.fair {
  background: #CA8A04;
}

.legend-dot.warning {
  background: #EA580C;
}

/* Expandable Biomarker Cards */
.biomarker-card-expandable {
  background: white;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #E5E7EB;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Score-based left border indicators */
.biomarker-card-expandable.score-high {
  border-left: 4px solid #16A34A;
}

.biomarker-card-expandable.score-medium {
  border-left: 4px solid #F59E0B;
}

.biomarker-card-expandable.score-low {
  border-left: 4px solid #DC2626;
}

.biomarker-card-expandable:hover {
  box-shadow: 0 6px 20px rgba(28, 124, 181, 0.12);
}

.biomarker-card-expandable.expanded {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.biomarker-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.biomarker-header:hover {
  background: #F8FAFC;
}

.biomarker-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.biomarker-icon {
  font-size: 22px;
}

.biomarker-info {
  flex: 1;
  min-width: 0;
}

.biomarker-title {
  font-size: 15px;
  font-weight: 600;
  color: #1F2937;
}

.biomarker-quick-desc {
  font-size: 12px;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.biomarker-score-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.biomarker-score {
  font-size: 22px;
  font-weight: 700;
  font-family: Georgia, serif;
}

.biomarker-chevron {
  font-size: 12px;
  color: #94A3B8;
  transition: transform 0.2s ease;
}

.biomarker-card-expandable.expanded .biomarker-chevron {
  transform: rotate(180deg);
}

/* Expandable Content */
.biomarker-expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #F8FAFC;
}

.biomarker-card-expandable.expanded .biomarker-expand-content {
  max-height: 400px;
}

.biomarker-expand-content>div {
  padding: 0 16px;
}

.biomarker-expand-content>div:first-child {
  padding-top: 16px;
}

.biomarker-expand-content>div:last-child {
  padding-bottom: 16px;
}

/* Progress Bar in Card */
.biomarker-progress {
  margin-bottom: 14px;
}

.biomarker-progress-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 4px;
  overflow: hidden;
}

.biomarker-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
}

.biomarker-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #94A3B8;
  margin-top: 4px;
}

.biomarker-explanation {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 14px;
}

.biomarker-explanation ul {
  margin: 8px 0 0 0;
  padding: 0 0 0 16px;
}

.biomarker-explanation ul li {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 6px;
}

.biomarker-explanation strong {
  color: #111827;
  font-weight: 600;
}

/* Contributing Factors */
.biomarker-factors {
  padding-top: 12px;
  border-top: 1px solid #E2E8F0;
}

.factors-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.factors-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.factor-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
}

.factor-pill.positive {
  background: #DCFCE7;
  color: #16A34A;
}

.factor-pill.negative {
  background: #FEE2E2;
  color: #DC2626;
}

.factor-pill.neutral {
  background: #F1F5F9;
  color: #64748B;
}

/* Recommendations Section New */
.recommendations-section-new {
  margin: 0 16px 16px;
}

.recommendation-card-new {
  display: flex;
  gap: 14px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid #E5E7EB;
  animation: fadeInUp 0.4s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.recommendation-card-new.high {
  border-left: 4px solid #DC2626;
  background: linear-gradient(90deg, #FEF2F2 0%, white 20%);
}

.recommendation-card-new.medium {
  border-left: 4px solid #F59E0B;
}

.recommendation-card-new.low {
  border-left: 4px solid #3B82F6;
}

.rec-number {
  width: 28px;
  height: 28px;
  background: #1c7cb5;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.rec-content {
  flex: 1;
}

.rec-title {
  font-size: 16px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.rec-description {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}

.rec-action {
  font-size: 13px;
  color: #1c7cb5;
  font-weight: 600;
  margin-top: 8px;
}

/* Premium CTA Section */
.results-cta-premium-section {
  padding: 0 16px 24px;
}

.cta-card-premium {
  background: linear-gradient(135deg, #1E3A5F 0%, #1c7cb5 100%);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.cta-badge {
  display: inline-block;
  background: #FCD34D;
  color: #78350F;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.cta-card-premium h3 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0 0 10px;
  line-height: 1.3;
}

.cta-card-premium p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 0 20px;
}

.cta-button-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: white;
  color: #1c7cb5;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.cta-button-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.cta-button-premium span {
  transition: transform 0.2s ease;
}

.cta-button-premium:hover span {
  transform: translateX(4px);
}

.cta-guarantee {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
}

/* Mobile Responsive Updates */
@media (max-width: 480px) {
  .score-reveal-circle {
    width: 120px;
    height: 120px;
  }

  .score-reveal-number {
    font-size: 40px;
  }

  .results-headline-new {
    font-size: 22px;
  }

  .aging-col-value {
    font-size: 30px;
  }

  .aging-comparison-grid {
    gap: 12px;
  }

  .biomarker-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .biomarker-header {
    padding: 16px;
  }

  .biomarker-title {
    font-size: 14px;
  }

  .biomarker-score {
    font-size: 20px;
  }

  .recommendation-card-new {
    padding: 18px 16px;
    margin-bottom: 14px;
  }

  .rec-number {
    min-width: 28px;
  }
}

/* =============================================================================
   VET DISCLAIMER CALLOUT
   ============================================================================= */

.vet-disclaimer-callout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 1px solid #F59E0B;
  border-radius: 12px;
  padding: 14px 20px;
  margin: 16px 20px 24px;
  text-align: center;
}

.vet-disclaimer-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.vet-disclaimer-text {
  font-size: 14px;
  font-weight: 500;
  color: #92400E;
  line-height: 1.4;
}

/* =============================================================================
   NEUROCHEW PRODUCT BRIDGE (Premium Marketing Section)
   ============================================================================= */

/* =============================================================================
   NEUROCHEW PRODUCT BRIDGE SECTION - REDESIGNED
   ============================================================================= */

.neurochew-product-section {
  margin: 32px 16px;
}

/* Main Headline */
.neurochew-headline {
  text-align: center;
  margin-bottom: 16px;
}

.neurochew-headline h2 {
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  line-height: 1.3;
}

/* Intro Text */
.neurochew-intro {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #1c7cb5;
}

.neurochew-intro p {
  font-size: 15px;
  color: #1e40af;
  line-height: 1.7;
  margin: 0 0 12px 0;
}

.neurochew-intro p:last-child {
  margin-bottom: 0;
}

.neurochew-intro strong {
  color: #1e3a8a;
  font-weight: 700;
}

/* Intro Text Inside Card - above blue section */
.neurochew-intro-inside {
  padding: 0 0 20px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid #E5E7EB;
}

.neurochew-intro-inside p {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin: 0 0 10px 0;
}

.neurochew-intro-inside p:last-child {
  margin-bottom: 0;
}

.neurochew-intro-inside strong {
  color: #1c7cb5;
  font-weight: 700;
}

.neurochew-product-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12), 0 2px 8px -2px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(28, 124, 181, 0.15);
}

/* Product Row - Image and Content side by side */
.neurochew-product-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.neurochew-product-image {
  flex-shrink: 0;
  width: 120px;
}

.neurochew-product-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-content {
  flex: 1;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.product-title-row .product-icon {
  font-size: 28px;
}

.product-title-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.product-rating .stars {
  color: #F59E0B;
  font-size: 14px;
  letter-spacing: 1px;
}

.product-rating .rating-text {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.product-description {
  font-size: 14px;
  color: #374151;
  margin: 0;
  line-height: 1.6;
}

/* CTA Section */
.neurochew-cta-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.cta-instruction {
  font-size: 14px;
  color: #166534;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.cta-instruction strong {
  color: #14532d;
  font-weight: 700;
}

.neurochew-cta-button {
  display: block;
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  text-align: center;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 14px -3px rgba(22, 163, 74, 0.5);
  transition: all 0.2s ease;
}

.neurochew-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px rgba(22, 163, 74, 0.6);
}

.neurochew-cta-button span {
  margin-left: 8px;
}

/* Vet Endorsement */
.vet-endorsement {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid #fbbf24;
}

.endorsement-quote {
  font-size: 15px;
  color: #92400e;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 10px;
}

.endorsement-author {
  font-size: 13px;
  color: #b45309;
  font-weight: 600;
}

/* Testimonial Cards */
.neurochew-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.testimonial-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 14px;
}

.testimonial-title {
  font-size: 12px;
  font-weight: 700;
  color: #1c7cb5;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.testimonial-card p {
  font-size: 13px;
  color: #374151;
  margin: 0 0 8px 0;
  line-height: 1.5;
  font-style: italic;
}

.testimonial-dog {
  font-size: 11px;
  color: #6B7280;
  font-weight: 600;
}

.product-guarantee {
  text-align: center;
  font-size: 12px;
  color: #6B7280;
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .neurochew-product-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .neurochew-product-image {
    width: 100px;
    margin-bottom: 12px;
  }

  .product-title-row {
    justify-content: center;
  }

  .product-rating {
    justify-content: center;
  }

  .neurochew-testimonials {
    grid-template-columns: 1fr;
  }

  .neurochew-headline h2 {
    font-size: 22px;
  }
}

/* =============================================================================
   BIOMARKER CARD IMPROVEMENTS
   ============================================================================= */

.biomarker-expanded-content ul {
  margin: 8px 0 0 0;
  padding: 0 0 0 16px;
}

.biomarker-expanded-content ul li {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 6px;
}

.biomarker-expanded-content strong {
  color: #111827;
  font-weight: 600;
}

/* =============================================================================
   DIRECT RESPONSE SALES LETTER STYLES
   ============================================================================= */

/* Container */
.dr-sales-letter {
  background: #FFFBF5;
  border: 2px solid #F59E0B;
  border-radius: 16px;
  padding: 32px 24px;
  margin-top: 32px;
}

/* Pattern Interrupt Pre-headline */
.dr-preheadline {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #DC2626;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Main Headline */
.dr-headline h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin: 0 0 12px 0;
}

/* Subheadline */
.dr-subheadline {
  text-align: center;
  font-size: 15px;
  font-style: italic;
  color: #6B7280;
  margin: 0 0 28px 0;
  line-height: 1.5;
}

/* Story Section */
.dr-story-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border-left: 4px solid #1c7cb5;
}

.dr-story-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 16px 0;
}

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

.dr-emphasis {
  font-size: 18px !important;
  font-weight: 700;
  color: #DC2626 !important;
  text-align: center;
  padding: 16px 0;
}

/* Secret Section */
.dr-secret-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.dr-secret-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
}

.dr-secret-section > p {
  font-size: 16px;
  color: #374151;
  margin: 0 0 20px 0;
}

.dr-secret-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dr-secret-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dr-secret-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1c7cb5, #166a9e);
  color: white;
  font-weight: 700;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dr-secret-text {
  font-size: 16px;
  line-height: 1.5;
  color: #374151;
  padding-top: 4px;
}

.dr-secret-text strong {
  color: #111827;
}

.dr-secret-close {
  font-size: 15px;
  font-weight: 600;
  color: #DC2626;
  text-align: center;
  margin: 20px 0 0 0 !important;
  padding-top: 16px;
  border-top: 1px dashed #E5E7EB;
}

/* Intro Section */
.dr-intro-section {
  text-align: center;
  margin-bottom: 24px;
}

.dr-intro-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #6B7280;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dr-intro-bold {
  font-size: 22px;
  font-weight: 800;
  color: #1c7cb5;
  margin: 0;
  line-height: 1.3;
}

/* Product Card Override */
.dr-product-card {
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 16px;
  padding: 24px;
}

/* Future Pacing Section */
.dr-future-pacing {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  border: 1px solid #86EFAC;
}

.dr-future-pacing h4 {
  font-size: 20px;
  font-weight: 700;
  color: #166534;
  margin: 0 0 16px 0;
  text-align: center;
}

.dr-future-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.dr-future-list li {
  font-size: 15px;
  line-height: 1.6;
  color: #166534;
  padding: 8px 0 8px 28px;
  position: relative;
}

.dr-future-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16A34A;
  font-weight: 700;
}

.dr-future-close {
  font-size: 14px;
  font-weight: 600;
  color: #166534;
  text-align: center;
  margin: 0;
  font-style: italic;
}

/* Social Proof Section */
.dr-social-proof {
  margin: 24px 0;
}

.dr-social-proof h4 {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
  text-align: center;
}

.dr-testimonial {
  background: #F9FAFB;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border-left: 4px solid #F59E0B;
}

.dr-testimonial:last-child {
  margin-bottom: 0;
}

.dr-testimonial-quote {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  font-style: italic;
  margin: 0 0 8px 0;
}

.dr-testimonial-author {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
}

/* Vet Endorsement Override */
.dr-vet-endorsement {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid #93C5FD;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.dr-vet-endorsement .endorsement-quote {
  font-size: 15px;
  font-style: italic;
  color: #1E40AF;
  margin-bottom: 8px;
}

.dr-vet-endorsement .endorsement-author {
  font-size: 14px;
  font-weight: 600;
  color: #1E40AF;
}

/* Urgency Section */
.dr-urgency-section {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.dr-urgency-text {
  font-size: 15px;
  line-height: 1.6;
  color: #991B1B;
  text-align: center;
  margin: 0;
  font-weight: 500;
}

/* CTA Section */
.dr-cta-section {
  text-align: center;
  padding: 24px 0 0;
}

.dr-cta-headline {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
}

.dr-cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: white !important;
  font-size: 18px;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: all 0.2s ease;
  animation: pulse-cta 2s infinite;
}

.dr-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(245, 158, 11, 0.6); }
}

/* Risk Reversal */
.dr-risk-reversal {
  background: #F0FDF4;
  border: 1px dashed #16A34A;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

.dr-risk-reversal p {
  font-size: 14px;
  line-height: 1.5;
  color: #166534;
  text-align: center;
  margin: 0;
}

/* Guarantee Override */
.dr-guarantee {
  font-size: 13px;
  color: #6B7280;
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #E5E7EB;
}

/* P.S. Section */
.dr-ps-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed #E5E7EB;
}

.dr-ps-text {
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  margin: 0;
}

.dr-ps-text strong {
  color: #DC2626;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .dr-sales-letter {
    padding: 24px 16px;
    margin-top: 24px;
  }

  .dr-headline h2 {
    font-size: 22px;
  }

  .dr-subheadline {
    font-size: 14px;
  }

  .dr-story-section,
  .dr-secret-section,
  .dr-product-card {
    padding: 20px 16px;
  }

  .dr-intro-bold {
    font-size: 18px;
  }

  .dr-cta-button {
    font-size: 16px;
    padding: 16px 28px;
    width: 100%;
  }

  .dr-future-pacing {
    padding: 20px 16px;
  }

  .dr-future-pacing h4 {
    font-size: 18px;
  }
}

/* =============================================================================
   ENHANCED LONGEVITY SCORE DISPLAY
   ============================================================================= */

/* Centered top bar */
.results-top-bar-centered {
  justify-content: center !important;
}

/* Enhanced Score Container */
.score-reveal-enhanced {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto 32px;
  position: relative;
}

.score-ring-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.score-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: #E5E7EB;
  stroke-width: 12;
}

.score-ring-progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}

/* Score colors based on value */
.score-glow-good .score-ring-progress {
  stroke: #16A34A;
  filter: drop-shadow(0 0 8px rgba(22, 163, 74, 0.5));
}

.score-glow-fair .score-ring-progress {
  stroke: #F59E0B;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.score-glow-attention .score-ring-progress {
  stroke: #DC2626;
  filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.5));
}

/* Glow effects */
.score-glow-good {
  animation: pulse-glow-green 2s ease-in-out infinite;
}

.score-glow-fair {
  animation: pulse-glow-amber 2s ease-in-out infinite;
}

.score-glow-attention {
  animation: pulse-glow-red 2s ease-in-out infinite;
}

@keyframes pulse-glow-green {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(22, 163, 74, 0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(22, 163, 74, 0.6)); }
}

@keyframes pulse-glow-amber {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(245, 158, 11, 0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(245, 158, 11, 0.6)); }
}

@keyframes pulse-glow-red {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(220, 38, 38, 0.3)); }
  50% { filter: drop-shadow(0 0 40px rgba(220, 38, 38, 0.6)); }
}

/* Score inner content */
.score-reveal-inner-enhanced {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.score-reveal-number-enhanced {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #1c7cb5 0%, #166a9e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-glow-good .score-reveal-number-enhanced {
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.score-glow-fair .score-reveal-number-enhanced {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.score-glow-attention .score-reveal-number-enhanced {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.score-reveal-label-enhanced {
  font-size: 13px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .score-ring-container {
    width: 180px;
    height: 180px;
  }

  .score-reveal-number-enhanced {
    font-size: 52px;
  }

  .score-reveal-label-enhanced {
    font-size: 11px;
  }
}

/* =============================================================================
   FORM VALIDATION STYLES
   ============================================================================= */

/* Error state for inputs */
.input-error {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.input-error:focus {
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25) !important;
}

/* Error message */
.form-error-message {
  color: #DC2626;
  font-size: 13px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-error-message::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #DC2626;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

/* Disabled button state */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Success state (optional) */
.input-success {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

/* ========================================
   DISCLAIMER MODAL
   ======================================== */
.disclaimer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disclaimer-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.disclaimer-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.disclaimer-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.disclaimer-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.disclaimer-modal-body {
  padding: 32px;
  overflow-y: auto;
  max-height: 85vh;
}

.disclaimer-modal-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  text-align: center;
}

.disclaimer-modal-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  margin: 24px 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.disclaimer-modal-body p {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 12px 0;
}

.disclaimer-modal-body ul {
  margin: 0 0 12px 0;
  padding-left: 24px;
}

.disclaimer-modal-body li {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 6px;
}

.disclaimer-modal-body em {
  color: #6b7280;
}

@media (max-width: 640px) {
  .disclaimer-modal-content {
    width: 95%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .disclaimer-modal-body {
    padding: 24px 20px;
  }

  .disclaimer-modal-body h2 {
    font-size: 20px;
  }

  .disclaimer-modal-body h3 {
    font-size: 14px;
  }

  .disclaimer-modal-body p,
  .disclaimer-modal-body li {
    font-size: 13px;
  }
}