/* ================================================================
   ASSESSMENT QUIZ — Claremont Orthodontics
   Navy / Gold / Cream themed quiz stylesheet
   ================================================================ */

/* --- Base Reset for Quiz --- */
.aq-container *,
.aq-container *::before,
.aq-container *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ================================================================
   1. PROGRESS BAR
   ================================================================ */

.aq-progress {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 12px 24px;
  background: var(--cream, #F4ECDE);
  border-bottom: 1px solid var(--rule, #D6CCBB);
}

.aq-progress__bar {
  width: 100%;
  height: 4px;
  background: var(--rule, #D6CCBB);
  border-radius: 2px;
  overflow: hidden;
}

.aq-progress__fill {
  height: 100%;
  background: var(--navy, #1B3A5C);
  border-radius: 2px;
  width: 0%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aq-progress__text {
  display: block;
  text-align: center;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute, #8B7E6D);
  margin-top: 6px;
  letter-spacing: 0.1em;
}

/* ================================================================
   2. QUIZ CONTAINER
   ================================================================ */

.aq-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  color: var(--ink, #2A2520);
  line-height: 1.6;
}

/* ================================================================
   3. STEPS
   ================================================================ */

.aq-step {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.aq-step--active {
  display: block;
  opacity: 1;
}

/* ================================================================
   4. INTRO SCREEN
   ================================================================ */

.aq-intro {
  background: var(--navy, #1B3A5C);
  color: var(--cream, #F4ECDE);
  border-radius: 4px;
  padding: 64px 48px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.aq-intro__eyebrow {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #C9A84C);
  margin-bottom: 24px;
}

.aq-intro__title {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--cream, #F4ECDE);
  margin-bottom: 24px;
}

.aq-intro__title em {
  font-style: italic;
  color: var(--gold, #C9A84C);
}

.aq-intro__desc {
  font-family: var(--serif, 'Playfair Display', serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(244, 236, 222, 0.8);
  max-width: 520px;
  margin: 0 auto 40px;
}

.aq-intro__meta {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 222, 0.5);
  margin-top: 20px;
}

.aq-intro__stats {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

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

.aq-intro__stat-num {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 32px;
  color: var(--gold, #C9A84C);
  line-height: 1;
}

.aq-intro__stat-label {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 236, 222, 0.5);
  margin-top: 4px;
}

/* ================================================================
   5. CONTACT FORM
   ================================================================ */

.aq-contact {
  margin-top: 32px;
}

.aq-contact__field {
  margin-bottom: 20px;
}

.aq-contact__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft, #4A4238);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.aq-contact__optional {
  font-weight: 400;
  color: var(--ink-mute, #8B7E6D);
  font-size: 13px;
}

.aq-contact__required {
  color: var(--gold-deep, #B08D3A);
}

.aq-contact__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 16px;
  color: var(--ink, #2A2520);
  background: var(--cream-light, #FEFBF5);
  border: 1px solid var(--rule, #D6CCBB);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.aq-contact__input::placeholder {
  color: var(--ink-mute, #8B7E6D);
}

.aq-contact__input:focus {
  border-color: var(--navy, #1B3A5C);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

.aq-contact__input--error {
  border-color: #B45309;
}

.aq-contact__privacy {
  font-size: 13px;
  color: var(--ink-mute, #8B7E6D);
  margin-top: 16px;
  text-align: center;
}

/* ================================================================
   6. QUESTION CARD
   ================================================================ */

.aq-question {
  padding: 32px 0;
}

.aq-question__number {
  display: inline-block;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute, #8B7E6D);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.aq-question__text {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  color: var(--ink, #2A2520);
  line-height: 1.35;
  margin-bottom: 32px;
  max-width: 560px;
}

.aq-question__desc {
  font-size: 16px;
  color: var(--ink-mute, #8B7E6D);
  margin-top: -20px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* ================================================================
   7. OPTION BUTTONS
   ================================================================ */

.aq-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aq-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 18px 24px;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink, #2A2520);
  text-align: left;
  background: var(--cream-light, #FEFBF5);
  border: 1px solid var(--rule, #D6CCBB);
  border-radius: 2px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease,
              background-color 0.2s ease,
              box-shadow 0.15s ease;
  position: relative;
}

.aq-option:hover {
  border-color: var(--navy, #1B3A5C);
  background: #fff;
}

.aq-option:focus-visible {
  border-color: var(--navy, #1B3A5C);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.12);
}

.aq-option--selected {
  border-color: var(--navy, #1B3A5C);
  background: rgba(27, 58, 92, 0.06);
  border-left-width: 4px;
}

.aq-option--selected::after {
  content: '\2713';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #1B3A5C);
}

/* Yes / No binary layout */
.aq-options--binary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.aq-options--binary .aq-option {
  justify-content: center;
  text-align: center;
  font-size: 17px;
  padding: 22px 0;
}

/* ================================================================
   8. NAVIGATION & BUTTONS
   ================================================================ */

.aq-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  gap: 16px;
}

.aq-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute, #8B7E6D);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.aq-back:hover {
  color: var(--navy, #1B3A5C);
}

.aq-container .aq-btn,
a.aq-btn,
button.aq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 500;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 160px;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1;
  letter-spacing: 0.02em;
}

.aq-container .aq-btn--primary,
a.aq-btn--primary,
button.aq-btn--primary {
  color: #1F1B14;
  background-color: var(--gold, #C9A84C);
}

.aq-container .aq-btn--primary:hover,
a.aq-btn--primary:hover,
button.aq-btn--primary:hover {
  background-color: var(--gold-deep, #B08D3A);
  color: #fff;
  transform: translateY(-1px);
}

.aq-container .aq-btn--primary:focus-visible {
  outline: 2px solid var(--gold, #C9A84C);
  outline-offset: 2px;
}

.aq-container .aq-btn--outline,
a.aq-btn--outline {
  color: var(--ink, #2A2520);
  background-color: transparent;
  border: 1px solid var(--ink, #2A2520);
}

.aq-container .aq-btn--outline:hover,
a.aq-btn--outline:hover {
  background-color: var(--ink, #2A2520);
  color: var(--cream, #F4ECDE);
  transform: translateY(-1px);
}

.aq-container .aq-btn--start {
  font-size: 17px;
  padding: 22px 48px;
  height: auto;
}

/* ================================================================
   9. RESULTS
   ================================================================ */

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

/* Results header — navy background */
.aq-results__header {
  background: var(--navy, #1B3A5C);
  color: var(--cream, #F4ECDE);
  border-radius: 4px 4px 0 0;
  padding: 64px 48px;
}

.aq-results__eyebrow {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #C9A84C);
  margin-bottom: 20px;
}

.aq-results__title {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 500;
  color: var(--cream, #F4ECDE);
  margin-bottom: 32px;
}

.aq-results__title em {
  font-style: italic;
  color: var(--gold, #C9A84C);
}

/* Score ring */
.aq-results__score-ring {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--gold, #C9A84C);
  margin: 0 auto 28px;
}

.aq-results__score-ring--high {
  border-color: #B45309;
}

.aq-results__score-ring--moderate {
  border-color: var(--gold, #C9A84C);
}

.aq-results__score-ring--low {
  border-color: var(--gold-deep, #B08D3A);
}

.aq-results__score-num {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 56px;
  color: var(--gold, #C9A84C);
  line-height: 1;
}

.aq-results__score-of {
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 222, 0.5);
  margin-top: 4px;
}

/* Tier badge */
.aq-results__tier {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 2px;
  font-family: var(--mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #C9A84C);
}

.aq-results__tier--high {
  background: rgba(180, 83, 9, 0.2);
}

.aq-results__tier--moderate {
  background: rgba(27, 58, 92, 0.3);
}

.aq-results__tier--low {
  background: rgba(201, 168, 76, 0.2);
}

/* Results body — cream background */
.aq-results__body {
  background: var(--cream, #F4ECDE);
  padding: 56px 48px;
  text-align: left;
}

.aq-results__body-title {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink, #2A2520);
  margin-bottom: 28px;
}

.aq-results__explanation-main {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft, #4A4238);
  margin-bottom: 16px;
}

.aq-results__explanation-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-mute, #8B7E6D);
}

/* Next step box */
.aq-results__nextstep {
  margin-top: 40px;
  padding: 36px;
  background: var(--cream-deep, #EDE4D3);
  border: 1px solid var(--rule, #D6CCBB);
}

.aq-results__nextstep-title {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink, #2A2520);
  margin-bottom: 16px;
}

.aq-results__nextstep-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft, #4A4238);
  margin-bottom: 24px;
}

.aq-results__nextstep-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.aq-results__nextstep-note {
  font-size: 13px;
  color: var(--ink-mute, #8B7E6D);
  margin-top: 16px;
}

/* Disclaimer */
.aq-results__disclaimer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule, #D6CCBB);
  text-align: center;
}

.aq-results__disclaimer p {
  font-size: 13px;
  color: var(--ink-mute, #8B7E6D);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Closing CTA */
.aq-results__closing {
  background: var(--cream-deep, #EDE4D3);
  padding: 56px 48px;
  border-radius: 0 0 4px 4px;
  text-align: center;
}

.aq-results__closing-title {
  font-family: var(--serif, 'Playfair Display', serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink, #2A2520);
  margin-bottom: 12px;
}

.aq-results__closing-title em {
  font-style: italic;
}

.aq-results__closing-body {
  font-size: 17px;
  color: var(--ink-soft, #4A4238);
  margin-bottom: 28px;
}

.aq-results__closing-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.aq-results__closing-note {
  font-size: 13px;
  color: var(--ink-mute, #8B7E6D);
}

/* ================================================================
   10. ANIMATIONS
   ================================================================ */

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

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

/* ================================================================
   11. RESPONSIVE
   ================================================================ */

@media (max-width: 640px) {
  .aq-container {
    padding: 16px;
  }

  .aq-progress {
    padding: 10px 16px;
  }

  .aq-intro {
    padding: 48px 24px;
  }

  .aq-intro__desc {
    font-size: 17px;
  }

  .aq-intro__stats {
    gap: 32px;
  }

  .aq-question__text {
    font-size: 20px;
  }

  .aq-options--binary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .aq-nav {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .aq-btn {
    width: 100%;
  }

  .aq-back {
    align-self: flex-start;
  }

  .aq-results__header {
    padding: 40px 24px;
  }

  .aq-results__score-ring {
    width: 130px;
    height: 130px;
  }

  .aq-results__score-num {
    font-size: 44px;
  }

  .aq-results__body {
    padding: 36px 24px;
  }

  .aq-results__nextstep {
    padding: 24px 20px;
  }

  .aq-results__nextstep-actions {
    flex-direction: column;
  }

  .aq-results__nextstep-actions .aq-btn {
    width: 100%;
  }

  .aq-results__closing {
    padding: 36px 24px;
  }

  .aq-results__closing-actions {
    flex-direction: column;
  }

  .aq-results__closing-actions .aq-btn {
    width: 100%;
  }
}
