/* ============================================================
   Oscar Andrade Real Estate — Readiness Quiz styles
   Uses the site's existing CSS variables from style.css
   (--navy, --copper, --copper-light, --cream, --border, --radius,
   --sans, --serif). Include style.css BEFORE this file.
   ============================================================ */

.quiz-section {
  padding: 70px 0 100px;
  background: #fff;
}

#quiz-app {
  max-width: 640px;
  margin: 0 auto;
}

.rq-card {
  background: var(--cream, #f7f4ef);
  border: 1px solid var(--border, #e7e2d9);
  border-radius: var(--radius, 10px);
  padding: 40px 36px;
  box-shadow: 0 20px 44px -28px rgba(18, 21, 28, 0.35);
}

@media (max-width: 600px) {
  .rq-card { padding: 28px 20px; }
}

/* Progress */
.rq-progress-wrap { margin-bottom: 28px; }
.rq-progress-bar {
  height: 6px;
  background: var(--border, #e7e2d9);
  border-radius: 999px;
  overflow: hidden;
}
.rq-progress-fill {
  height: 100%;
  background: var(--copper, #b3702f);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.rq-progress-label {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: #6b6558;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Question */
.rq-question {
  font-family: var(--serif), Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy, #12151c);
  margin: 0 0 10px;
  line-height: 1.25;
}
.rq-help {
  color: #5b5648;
  font-size: 0.98rem;
  margin: 0 0 22px;
}

.rq-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rq-option {
  text-align: left;
  padding: 16px 20px;
  border-radius: 10px;
  border: 1px solid var(--border, #e7e2d9);
  background: #fff;
  color: var(--navy, #12151c);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.rq-option:hover {
  border-color: var(--copper-light, #d99a5b);
  background: #fffdf9;
}
.rq-option:active { transform: scale(0.995); }
.rq-option.is-selected {
  border-color: var(--copper, #b3702f);
  background: #fbf1e7;
}

.rq-nav {
  margin-top: 22px;
  min-height: 20px;
}
.rq-back {
  background: none;
  border: none;
  color: #6b6558;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.rq-back:hover { color: var(--copper, #b3702f); }

/* Intro */
.rq-intro { text-align: center; }
.rq-intro .rq-question { margin-bottom: 14px; }

/* Results */
.rq-results { text-align: center; }
.rq-results-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--copper, #b3702f);
  margin: 0 0 18px;
}

.rq-score-wrap { display: flex; justify-content: center; margin-bottom: 22px; }
.rq-score-ring {
  --rq-pct: 0;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(
    var(--copper, #b3702f) calc(var(--rq-pct) * 1%),
    var(--border, #e7e2d9) 0
  );
  position: relative;
}
.rq-score-ring::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--cream, #f7f4ef);
}
.rq-score-num {
  position: relative;
  font-family: var(--serif), Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--navy, #12151c);
}

.rq-tier-heading {
  font-family: var(--serif), Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy, #12151c);
  margin: 0 0 12px;
}
.rq-tier-message {
  color: #4a4638;
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 28px;
}

.rq-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.rq-retake {
  background: none;
  border: none;
  color: #6b6558;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.rq-retake:hover { color: var(--copper, #b3702f); }

/* Hub page quiz cards */
.rq-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 44px;
}
.rq-hub-card {
  background: var(--cream, #f7f4ef);
  border: 1px solid var(--border, #e7e2d9);
  border-radius: var(--radius, 10px);
  padding: 32px 28px;
  text-decoration: none;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rq-hub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -26px rgba(18, 21, 28, 0.35);
}
.rq-hub-card .rq-hub-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--copper, #b3702f);
  margin: 0 0 10px;
}
.rq-hub-card h3 {
  font-family: var(--serif), Georgia, serif;
  font-size: 1.4rem;
  color: var(--navy, #12151c);
  margin: 0 0 10px;
}
.rq-hub-card p {
  color: #5b5648;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 16px;
}
.rq-hub-card .rq-hub-link {
  color: var(--copper, #b3702f);
  font-weight: 600;
  font-size: 0.92rem;
}

/* Reserve room for the quiz card so the page does not jump when it loads */
#quiz-app { min-height: 318px; }
@media (max-width: 600px) { #quiz-app { min-height: 352px; } }
.quiz-about a { color: var(--copper); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
