/* ── Ransomware Readiness Quiz — /tools/ransomware-readiness-quiz ───────── */

.rrq-wrap { color: #0d1f3c; }

/* Hero */
.rrq-hero {
  background: #0f2544;
  padding: 56px 24px 40px;
  text-align: center;
}
.rrq-hero-inner { max-width: 660px; margin: 0 auto; }
.rrq-hero-icon { margin-bottom: 14px; }
.rrq-hero-icon svg { width: 52px; height: 52px; }
.rrq-hero-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 12px;
}
.rrq-hero-sub {
  font-size: 15.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  margin: 0 0 26px;
}

.rrq-progress { max-width: 420px; margin: 0 auto; }
.rrq-progress-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.15);
  overflow: hidden;
  margin-bottom: 10px;
}
.rrq-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: #f05a28;
  transition: width .2s ease;
}
.rrq-progress-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }

/* Body */
.rrq-outer { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }

/* Quiz form */
.rrq-category {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px 6px;
  margin: 0 0 20px;
}
.rrq-category-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #017bbd;
  padding: 0 6px;
}
.rrq-question { margin-bottom: 18px; }
.rrq-question-text { font-size: 15px; font-weight: 600; color: #0d1f3c; line-height: 1.55; margin: 0 0 10px; }

.rrq-options { display: flex; gap: 10px; flex-wrap: wrap; }
.rrq-option {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 8px 14px;
  cursor: pointer;
}
.rrq-option input { margin: 0; accent-color: #017bbd; }
.rrq-option:has(input:checked) {
  background: #eaf4fb;
  border-color: #017bbd;
  color: #0d1f3c;
  font-weight: 600;
}

.rrq-submit-btn {
  width: 100%;
  background: #f05a28;
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  cursor: pointer;
  margin-top: 4px;
}
.rrq-submit-btn:hover { opacity: .9; }
.rrq-incomplete-note {
  text-align: center;
  color: #dc2626;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 10px;
}

/* Results */
.rrq-results {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 30px 26px;
  margin-bottom: 28px;
}
.rrq-score-block { display: flex; align-items: center; gap: 20px; margin-bottom: 26px; }
.rrq-score-grade {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
}
.rrq-grade-A { background: #16a34a; }
.rrq-grade-B { background: #65a30d; }
.rrq-grade-C { background: #f59e0b; }
.rrq-grade-D { background: #ea580c; }
.rrq-grade-F { background: #dc2626; }
.rrq-score-label { font-size: 19px; font-weight: 800; color: #0d1f3c; margin-bottom: 4px; }
.rrq-score-sub { font-size: 13.5px; color: #64748b; }

.rrq-breakdown-title { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin: 0 0 14px; }
.rrq-breakdown { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }
.rrq-cat-row { background: #fff; border: 1px solid #e2e8f0; border-left-width: 4px; border-radius: 10px; padding: 14px 18px; }
.rrq-cat-row--good { border-left-color: #16a34a; }
.rrq-cat-row--mid { border-left-color: #f59e0b; }
.rrq-cat-row--bad { border-left-color: #dc2626; }
.rrq-cat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rrq-cat-name { font-size: 14.5px; font-weight: 700; color: #0d1f3c; }
.rrq-cat-score { font-size: 13px; font-weight: 700; color: #64748b; }
.rrq-cat-tip { font-size: 13.5px; color: #475569; line-height: 1.6; }

.rrq-retake-btn {
  display: block;
  margin: 22px auto 0;
  background: #0f2544;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  cursor: pointer;
}
.rrq-retake-btn:hover { opacity: .9; }

/* CTA */
.rrq-cta {
  background: #eef6fc;
  border: 1px solid #c7dff0;
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 18px;
}
.rrq-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.rrq-cta-title { font-size: 16px; font-weight: 700; color: #0d1f3c; margin: 0 0 6px; }
.rrq-cta-sub { font-size: 13.5px; color: #475569; margin: 0; max-width: 560px; line-height: 1.6; }
.rrq-cta-btn {
  flex-shrink: 0;
  background: #017bbd;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.rrq-cta-btn:hover { background: #0f2544; color: #fff; text-decoration: none; }

.rrq-related-note { font-size: 13px; color: #64748b; text-align: center; }
.rrq-related-note a { color: #017bbd; }

/* Responsive */
@media (max-width: 640px) {
  .rrq-hero { padding: 40px 18px 32px; }
  .rrq-outer { padding: 28px 16px 56px; }
  .rrq-cta-inner { flex-direction: column; align-items: flex-start; }
  .rrq-cta-btn { width: 100%; text-align: center; }
  .rrq-score-block { flex-direction: column; text-align: center; }
}
