/* ==========================================================================
   The Personal Injury Pros — landing page styles
   Breakpoints: 576 (mobile/tablet split), 640 (sm), 768 (md), 1024 (lg)
   ========================================================================== */

:root {
  --primary: #192d4d;            /* hsl(217 51% 20%) */
  --primary-light: #2c456d;      /* hsl(217 43% 30%) */
  --foreground: #1d283a;         /* hsl(217 33% 17%) */
  --muted: #f4f5f6;              /* hsl(217 10% 96%) */
  --muted-foreground: #626f84;   /* hsl(217 15% 45%) */
  --border: #dadfe7;             /* hsl(217 20% 88%) */
  --accent: #e3b426;             /* hsl(45 77% 52%) */
  --accent-glow: #ffd24d;        /* hsl(45 100% 65%) */
  --gold: #ffd700;               /* solid gold used on hero / floating CTA */
  --white: #ffffff;

  --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-gold: linear-gradient(135deg, var(--accent) 0%, var(--accent-glow) 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(26, 41, 71, 0.85) 0%, rgba(26, 41, 71, 0.65) 100%);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 10px 30px -10px rgba(212, 175, 55, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 0.5rem;

  /* quiz */
  --quiz-primary: #f6c941;
  --quiz-text: #1d283a;
  --quiz-black: #0a0908;
  --quiz-gray: #a7a7a8;
  --quiz-dark-gray: #696969;
  --quiz-light-gray: #dadadb;
  --quiz-error: #ca4e4e;

  --font: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p, ul, hr, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; cursor: pointer; padding: 0; }
svg { display: block; }
strong { font-weight: 700; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: 2.25rem; line-height: 2.5rem; }
h2 { font-size: 1.875rem; line-height: 2.25rem; }
h3 { font-size: 1.5rem; line-height: 2rem; }
@media (min-width: 768px) {
  h1 { font-size: 3rem; line-height: 1; }
  h2 { font-size: 2.25rem; line-height: 2.5rem; }
  h3 { font-size: 1.875rem; line-height: 2.25rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; line-height: 1; }
  h2 { font-size: 3rem; line-height: 1; }
}

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Device visibility (mirrors the original's mobile / desktop variants) */
@media (max-width: 576px) { .hide-mobile { display: none !important; } }
@media (min-width: 577px) { .only-mobile { display: none !important; } }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-icon { width: 1rem; height: 1rem; flex-shrink: 0; margin-right: 0.5rem; pointer-events: none; }

.btn-lg { height: 4rem; padding: 0 3rem; font-size: 1.125rem; width: 100%; }
.btn-md { height: 3.5rem; padding: 0 2.5rem; font-size: 1rem; }
@media (min-width: 640px) { .btn-lg { width: auto; } }

.btn-gold {
  background: var(--gold);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.btn-gold-gradient {
  background: var(--gradient-gold);
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover, .btn-gold-gradient:hover { box-shadow: var(--shadow-xl); transform: scale(1.05); }

.btn-outline-light {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline-light:hover { background: var(--white); color: var(--primary); }

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: var(--white);
}
.btn-outline-primary:hover { background: var(--gold); color: #000; }

.btn-pill { border-radius: 9999px; height: 3.5rem; padding: 0 2.5rem; font-size: 1rem; font-weight: 600; }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) { .btn-row { flex-direction: row; } }

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fade-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}
@keyframes pulse { 50% { opacity: 0.5; } }
@keyframes quiz-fade-in { from { opacity: 0; } to { opacity: 1; } }

.fade-in { animation: fade-in 0.6s ease-out both; }
.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }
.pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@media (prefers-reduced-motion: reduce) {
  .fade-in, .pulse, .scroll-hint { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-background.jpg");
  background-size: cover;
  background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: var(--gradient-overlay); }
.hero-content { position: relative; z-index: 10; padding-top: 5rem; padding-bottom: 5rem; text-align: center; }
.hero-inner { max-width: 64rem; margin: 0 auto; }
.hero-title { color: var(--white); margin-bottom: 1.5rem; }
.hero-title .highlight { color: var(--gold); }
.hero-lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin: 0 auto 2.5rem;
  max-width: 48rem;
}
.hero-lead .highlight { color: var(--gold); font-weight: 700; }
@media (min-width: 768px) { .hero-lead { font-size: 1.5rem; line-height: 2rem; } }
.hero-note { color: var(--white); font-size: 0.875rem; line-height: 1.25rem; margin-top: 1.5rem; font-style: italic; }

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 1s infinite;
}
.scroll-hint-outer {
  width: 1.5rem; height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 9999px;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 0.5rem;
}
.scroll-hint-dot { width: 0.25rem; height: 0.75rem; background: rgba(255, 255, 255, 0.6); border-radius: 9999px; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding-top: 5rem; padding-bottom: 5rem; }
.section-muted { background: var(--muted); }
.section-white { background: var(--white); }
.section-primary { background: var(--primary); color: var(--white); }
.section-gradient { background: var(--gradient-hero); color: var(--white); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header-tight { margin-bottom: 3rem; }
.section-header h2 { color: var(--foreground); margin-bottom: 1rem; }
.section-primary .section-header h2 { color: var(--white); }
.section-header p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.75rem;
  max-width: 42rem;
  margin: 0 auto;
}
.section-primary .section-header p { color: rgba(255, 255, 255, 0.8); }
.heading-rule { width: 6rem; height: 0.25rem; background: var(--accent); margin: 0 auto; }
.section-note {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--muted-foreground);
  font-style: italic;
}

/* Grids */
.grid { display: grid; grid-template-columns: 1fr; max-width: 80rem; margin: 0 auto; }
.grid-types { gap: 1.5rem; }
.grid-stats { gap: 2rem; }
.grid-3 { gap: 2rem; }
@media (min-width: 768px) {
  .grid-types, .grid-stats, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Cards */
.card {
  border-radius: var(--radius);
  background: var(--white);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  transition: var(--transition);
}
.card-body { padding: 2rem; }

.icon-circle {
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  width: 4rem; height: 4rem;
  margin: 0 auto 1rem;
  transition: var(--transition);
}
.icon-circle-primary { background: rgba(25, 45, 77, 0.1); color: var(--primary); }
.icon-circle-accent { background: rgba(227, 180, 38, 0.2); color: var(--accent); }
.icon-circle-gold { background: var(--gradient-gold); box-shadow: var(--shadow-gold); color: var(--primary); width: 5rem; height: 5rem; margin-bottom: 1.5rem; }
.icon-32 { width: 2rem; height: 2rem; }
.icon-40 { width: 2.5rem; height: 2.5rem; }

/* Accident type cards */
.card-type { cursor: pointer; }
.card-type:hover { box-shadow: var(--shadow-xl); border-color: var(--accent); transform: scale(1.05); }
.card-type:hover .icon-circle-primary { background: rgba(227, 180, 38, 0.2); color: var(--accent); }
.card-type-inner { padding: 1.5rem; text-align: center; }
.card-type h3 { color: var(--primary); margin-bottom: 0.75rem; }
.card-type p { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.625; }

/* Stats */
.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}
.stat-card:hover { background: rgba(255, 255, 255, 0.1); }
.stat-value { font-size: 3rem; line-height: 1; font-weight: 700; margin-bottom: 0.5rem; color: var(--accent); }
.stat-title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.025em; }
.stat-text { color: rgba(255, 255, 255, 0.7); font-size: 0.875rem; line-height: 1.25rem; }

.badges {
  margin-top: 4rem;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2rem;
}
.badge {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge p { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }

/* About */
.about { max-width: 80rem; margin: 0 auto; }
.about-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.about-row:last-child { margin-bottom: 0; }
.about-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
}
.about-copy > * + * { margin-top: 1.5rem; }
.about-lead { font-size: 1.125rem; line-height: 1.625; color: var(--foreground); }
.about-copy h3 { color: var(--foreground); }
.approach-list > li + li { margin-top: 1rem; }
.approach-list li { display: flex; align-items: flex-start; }
.approach-list .dot {
  width: 0.5rem; height: 0.5rem; background: var(--accent); border-radius: 9999px;
  margin-top: 0.5rem; margin-right: 0.75rem; flex-shrink: 0;
}
.approach-list p { color: var(--foreground); }
/* Mobile order: image first, then copy (matches original order-1 / order-2) */
.about-row-reverse .about-copy { order: 2; }
.about-row-reverse .about-media { order: 1; }
@media (min-width: 1024px) {
  .about-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-row-reverse .about-copy { order: 1; }
  .about-row-reverse .about-media { order: 2; }
}

/* Victories */
.card-victory:hover { border-color: var(--accent); box-shadow: var(--shadow-xl); }
.card-victory .card-body { text-align: center; }
.victory-amount { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.card-victory h3 { color: var(--foreground); margin-bottom: 1rem; }
.card-victory p { color: var(--muted-foreground); line-height: 1.625; }

/* Testimonials */
.card-testimonial:hover { box-shadow: var(--shadow-xl); }
.quote-icon { width: 3rem; height: 3rem; color: var(--accent); opacity: 0.5; margin-bottom: 1.5rem; }
.testimonial-quote { color: var(--foreground); line-height: 1.625; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { border-top: 1px solid var(--border); padding-top: 1rem; }
.testimonial-name { font-weight: 600; color: var(--foreground); }
.testimonial-city { font-size: 0.875rem; line-height: 1.25rem; color: var(--muted-foreground); }

/* FAQ accordion */
.faq { max-width: 56rem; margin: 0 auto; }
.collapse {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 10px 0;
  transition: border-color 0.2s;
}
.collapse:hover, .collapse.expanded { border-color: var(--accent); }
.collapse-header {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.5rem;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}
.collapse-header:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.collapse-header h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.5;
  max-width: calc(100% - 40px);
  letter-spacing: -0.025em;
}
.collapse-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  margin-top: -10px;
  width: 20px; height: 20px;
  color: var(--foreground);
  transition: 0.2s;
}
.collapse-icon svg { width: 100%; height: 100%; }
.collapse-header:hover h4, .collapse-header:hover .collapse-icon { color: var(--accent); }
.collapse.expanded .collapse-icon { transform: rotate(-90deg); }
.collapse-body { display: none; padding: 0 1.5rem 1.5rem; background: var(--white); }
.collapse.expanded .collapse-body { display: block; }
.collapse-body p { font-size: 14px; line-height: 1.5; color: var(--muted-foreground); }

/* Final CTA */
.cta-final { max-width: 56rem; margin: 0 auto; text-align: center; }
.cta-final h2 { margin-bottom: 1.5rem; }
.cta-lead { font-size: 1.25rem; line-height: 1.75rem; margin-bottom: 2.5rem; color: rgba(255, 255, 255, 0.9); }
@media (min-width: 768px) { .cta-lead { font-size: 1.5rem; line-height: 2rem; } }
.cta-buttons { margin-bottom: 2rem; }
.cta-notes { color: rgba(255, 255, 255, 0.8); }
.cta-notes > * + * { margin-top: 0.75rem; }
.cta-note-strong { font-size: 1.125rem; line-height: 1.75rem; }
.disclaimer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.disclaimer p { font-size: 0.875rem; line-height: 1.25rem; color: rgba(255, 255, 255, 0.6); }

/* Footer */
.site-footer { background: var(--primary); color: var(--white); padding: 2rem 0; }
.footer-links {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem; line-height: 1.25rem;
}
.footer-links a { transition: var(--transition); cursor: pointer; }
.footer-links a:hover { color: var(--accent); }
.footer-sep { display: none; color: rgba(255, 255, 255, 0.4); }
@media (min-width: 768px) {
  .footer-links { flex-direction: row; }
  .footer-sep { display: inline; }
}
.footer-copy { text-align: center; margin-top: 1.5rem; font-size: 0.75rem; line-height: 1rem; color: rgba(255, 255, 255, 0.6); }

/* Floating call button */
.floating-cta { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50; animation: fade-in 0.6s ease-out both; }
.floating-cta .btn-icon { margin-right: 0; }
.floating-cta .hide-mobile .btn-icon { margin-right: 0.5rem; }
.floating-cta-label { display: none; }
@media (min-width: 640px) { .floating-cta-label { display: inline; } }

/* --------------------------------------------------------------------------
   Quiz
   -------------------------------------------------------------------------- */
.section-quiz { padding-bottom: 22px; }
.section-header-quiz { margin-bottom: 0; }
.quiz-wrap { text-align: center; }

.quiz-box {
  max-width: 48rem;
  margin: 60px auto 0;
  width: 100%;
  padding: 10px 10px 42px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.quiz { width: 100%; padding: 10px; color: var(--quiz-text); }
.quiz-progress {
  height: 8px;
  background: rgba(236, 236, 236, 0.82);
  border-radius: 20px;
  margin: 20px 0 10px;
  overflow: hidden;
}
.quiz-progress-fill { height: 100%; width: 10%; background: #1d293b; border-radius: 20px; transition: width 0.3s ease; }

.quiz-step { display: flex; flex-direction: column; align-items: center; width: 100%; animation: quiz-fade-in 0.2s ease; }
.quiz-step[hidden] { display: none; }

.quiz-block { width: 100%; margin: 10px 0; }
.quiz-block-narrow { width: 400px; max-width: 100%; }

.quiz-headline { width: 100%; margin: 10px 0; text-align: center; }
.quiz-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--quiz-text);
  letter-spacing: -0.025em;
}
.quiz-subtitle { margin-top: 0.35em; font-size: 16px; line-height: 1.6; color: var(--quiz-dark-gray); }
@media (max-width: 490px) { .quiz-title { font-size: 22px; } }

/* choice options */
.quiz-choice { padding: 0; margin: 10px 0; min-width: 0; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--quiz-light-gray);
  border-radius: 5px;
  background: transparent;
  color: var(--quiz-black);
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
.quiz-option input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.quiz-option:hover { border-color: var(--quiz-primary); background: rgba(246, 201, 65, 0.05); }
.quiz-option:has(input:checked) { border-color: var(--quiz-primary); background: rgba(246, 201, 65, 0.1); }
.quiz-option:has(input:focus-visible) { outline: 2px solid var(--quiz-primary); outline-offset: 2px; }
.quiz-option-radio {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; min-width: 20px;
  border: 1px solid var(--quiz-light-gray);
  border-radius: 50%;
  background: transparent;
  margin-top: 0.1em;
  transition: border-color 0.15s, background-color 0.15s;
}
.quiz-option-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: 0; }
.quiz-option:has(input:checked) .quiz-option-radio { background: var(--quiz-primary); border-color: var(--quiz-primary); }
.quiz-option:has(input:checked) .quiz-option-dot { opacity: 1; }
/* Fallback for browsers without :has() (class toggled by JS) */
.quiz-option.is-checked { border-color: var(--quiz-primary); background: rgba(246, 201, 65, 0.1); }
.quiz-option.is-checked .quiz-option-radio { background: var(--quiz-primary); border-color: var(--quiz-primary); }
.quiz-option.is-checked .quiz-option-dot { opacity: 1; }

/* inputs */
.quiz-field { text-align: left; }
.quiz-label {
  display: inline-block;
  width: 100%;
  padding-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--quiz-text);
}
.quiz-input-wrap {
  position: relative;
  display: flex;
  border: 1px solid var(--quiz-light-gray);
  border-radius: 5px;
  background: var(--white);
  transition: border-color 0.15s;
}
.quiz-input-wrap:focus-within { border-color: var(--quiz-gray); }
.quiz-input {
  width: 100%;
  padding: 0.6em 0.9em;
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1.35;
  color: var(--quiz-text);
  outline: none;
  border-radius: 5px;
}
.quiz-input::placeholder { color: var(--quiz-gray); }
textarea.quiz-input { resize: none; min-height: 84px; }
.quiz-phone-country {
  position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 0 8px;
  pointer-events: none;
}
.quiz-phone-arrow {
  width: 0; height: 0;
  border-left: 3px solid transparent; border-right: 3px solid transparent;
  border-top: 4px solid #555;
}
.quiz-field-tel .quiz-input { padding-left: 48px; }

.quiz-block-error {
  display: flex; align-items: center; justify-content: flex-start; gap: 6px;
  margin: 6px 0 0;
  padding: 8px 12px;
  border-radius: 3px;
  background: var(--quiz-error);
  color: var(--white);
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}
.quiz-block-error svg { width: 16px; height: 16px; min-width: 16px; }

.quiz-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* buttons */
.quiz-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  background: var(--quiz-primary);
  color: var(--quiz-text);
  font-weight: 600;
  line-height: 1.5;
  transition: background-color 0.15s;
  position: relative;
}
.quiz-btn-continue { font-size: 18px; }
.quiz-btn-submit { font-size: 16px; }
.quiz-btn:hover { background: #eabf3e; }
.quiz-btn:focus-visible { outline: 2px solid var(--quiz-text); outline-offset: 2px; }
.quiz-btn[disabled] { pointer-events: none; opacity: 0.7; }
.quiz-btn-loader { display: none; position: absolute; right: 12px; top: 50%; margin-top: -10px; width: 20px; height: 20px; }
.quiz-btn.is-loading .quiz-btn-loader { display: block; }
.quiz-spinner { width: 20px; height: 20px; }

.quiz-btn-back {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  color: var(--quiz-dark-gray);
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.15s;
}
.quiz-btn-back svg { width: 20px; height: 20px; }
.quiz-btn-back:hover { background: rgba(105, 105, 105, 0.1); }

.quiz-paragraph p { font-size: 16px; line-height: 1.6; color: var(--quiz-dark-gray); text-align: center; }
.quiz-paragraph p + p { margin-top: 0.75em; }

/* under the quiz */
.quiz-consent { font-size: 12px; line-height: 18px; margin: 0 10px; color: var(--foreground); text-align: center; }
.quiz-divider { width: 100%; border-top: 1px solid #eeeff1; border-bottom: 1px solid #eeeff1; margin: 30px 0 11px; }
.quiz-call-text { font-size: 13px; line-height: 28px; margin-top: 15px; color: var(--muted-foreground); }
.quiz-box .btn-outline-primary { margin-top: 15px; }
.quiz-box .btn-outline-primary.only-mobile { font-size: 17px; }

/* --------------------------------------------------------------------------
   Modals (Terms / Privacy)
   -------------------------------------------------------------------------- */
body.modal-open { overflow: hidden; }
.modal[hidden] { display: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.45); }
.modal-close {
  position: fixed; z-index: 1002; top: 20px; right: 20px;
  width: 27px; height: 27px;
}
.modal-close svg { width: 100%; height: 100%; }
.modal-panel {
  position: fixed;
  z-index: 1001;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 721px;
  max-width: calc(100vw - 100px);
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 50px;
  border-radius: 20px;
  background: #292929;
  color: var(--white);
  box-shadow: rgba(0, 0, 0, 0.15) 0 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: quiz-fade-in 0.15s ease;
}
.modal-panel-privacy { width: 637px; background: #201f1f; }
.modal-title { font-size: 28px; line-height: 1; font-weight: 700; text-align: center; margin-bottom: 15px; letter-spacing: -0.025em; }
.modal-body { width: 100%; font-size: 16px; line-height: 1.5; text-align: left; }
.modal-body p + p { margin-top: 1.5em; }
@media (max-width: 992px) { .modal-panel { max-width: calc(100vw - 70px); padding: 50px 20px; } }
@media (max-width: 576px) { .modal-panel { max-width: calc(100vw - 20px); width: 100%; } }

/* --------------------------------------------------------------------------
   Standalone legal pages (terms.php / privacy.php / disclaimer.php)
   -------------------------------------------------------------------------- */
.legal-page { max-width: 48rem; margin: 0 auto; padding: 5rem 0; }
.legal-page h1 { font-size: 2.25rem; line-height: 1.1; margin-bottom: 2rem; text-align: center; }
.legal-page p + p { margin-top: 1.5em; }
.legal-page .back-link { display: inline-block; margin-bottom: 2rem; font-size: 0.875rem; color: var(--muted-foreground); }
.legal-page .back-link:hover { color: var(--accent); }
