/* RoofScour DIY vs Pro Quiz — diy-quiz.css */

.rdq-wrap {
  font-family: 'DM Sans', sans-serif;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(26,31,46,0.12);
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(26,31,46,0.08);
}
.rdq-header {
  background: #1a1f2e;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.rdq-header-icon {
  width: 42px; height: 42px;
  background: rgba(200,131,42,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rdq-header-text { flex: 1; min-width: 140px; }
.rdq-header-title { font-family: 'DM Serif Display', serif; font-size: 15px; color: #f5f0e8; font-weight: 400; }
.rdq-header-sub   { font-size: 12px; color: rgba(245,240,232,0.4); margin-top: 2px; }
.rdq-progress-wrap { flex-shrink: 0; min-width: 160px; }
.rdq-progress-bar  { height: 4px; background: rgba(245,240,232,0.12); border-radius: 4px; overflow: hidden; margin-bottom: 5px; }
.rdq-progress-fill { height: 100%; background: #c8832a; border-radius: 4px; transition: width 0.4s ease; }
.rdq-progress-label { font-size: 11px; font-weight: 600; color: rgba(245,240,232,0.4); letter-spacing: 0.06em; text-transform: uppercase; }

.rdq-questions { padding: 28px 28px 8px; }
.rdq-step { display: none; }
.rdq-step.active { display: block; }
.rdq-step-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #c8832a; margin-bottom: 10px; }
.rdq-step-title { font-family: 'DM Serif Display', serif !important; font-size: clamp(17px, 2.5vw, 22px) !important; color: #1a1f2e !important; font-weight: 400 !important; margin: 0 0 8px !important; line-height: 1.3 !important; }
.rdq-step-sub   { font-size: 13px; color: #4a5268; line-height: 1.6; margin-bottom: 20px; }

.rdq-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.rdq-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: #f5f0e8;
  border: 1.5px solid rgba(26,31,46,0.1);
  border-radius: 10px;
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.rdq-option:hover   { border-color: rgba(200,131,42,0.35); background: #fdf3e3; }
.rdq-option.selected { border-color: #c8832a; background: #fdf3e3; box-shadow: 0 0 0 3px rgba(200,131,42,0.1); }

.rdq-opt-visual { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.15s; }
.rdq-visual-green { background: #e4f5f0; color: #1e7a6e; }
.rdq-visual-amber { background: #FAEEDA; color: #854F0B; }
.rdq-visual-red   { background: #FAECE7; color: #993C1D; }
.rdq-option.selected .rdq-opt-visual { transform: scale(1.05); }

.rdq-opt-text { flex: 1; }
.rdq-opt-text strong { display: block; font-size: 14px; font-weight: 600; color: #1a1f2e; margin-bottom: 2px; line-height: 1.3; }
.rdq-opt-text span   { font-size: 12px; color: #4a5268; line-height: 1.4; }

.rdq-opt-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(26,31,46,0.2);
  flex-shrink: 0; background: #fff;
  transition: all 0.15s; position: relative;
}
.rdq-option.selected .rdq-opt-check { background: #c8832a; border-color: #c8832a; }
.rdq-option.selected .rdq-opt-check::after {
  content: ''; position: absolute;
  left: 5px; top: 2px; width: 6px; height: 10px;
  border: 2px solid #fff; border-top: none; border-left: none;
  transform: rotate(45deg);
}

.rdq-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 24px; gap: 10px; }
.rdq-nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.rdq-nav-hint { font-size: 12px; color: #888780; font-style: italic; }
.rdq-btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; background: transparent; color: #4a5268;
  border: 1px solid rgba(26,31,46,0.15); border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.rdq-btn-back:hover { color: #1a1f2e; border-color: rgba(26,31,46,0.3); }
.rdq-btn-next { padding: 10px 22px; background: #c8832a; color: #fff; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s, opacity 0.15s; }
.rdq-btn-next:hover    { background: #e09840; }
.rdq-btn-next:disabled { opacity: 0.4; cursor: not-allowed; }

.rdq-results { background: #ffffff; }
.rdq-verdict { padding: 24px 28px 0; }
.rdq-verdict-inner { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 10px; border: 1.5px solid transparent; flex-wrap: wrap; }
.rdq-verdict-icon { flex-shrink: 0; }
.rdq-verdict-label { font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400; line-height: 1.2; }
.rdq-verdict-sub   { font-size: 13px; color: #4a5268; margin-top: 3px; }

.rdq-reasons { padding: 20px 28px 0; }
.rdq-reasons-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4a5268; margin-bottom: 10px; }
.rdq-reason { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 0 8px 8px 0; border-left: 3px solid transparent; font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.rdq-reason p   { margin: 0; }
.rdq-reason svg { flex-shrink: 0; margin-top: 1px; }
.rdq-reason-good    { background: #e4f5f0; color: #0F6E56; border-left-color: #1e7a6e; }
.rdq-reason-warning { background: #FAEEDA; color: #854F0B; border-left-color: #c8832a; }
.rdq-reason-pro     { background: #FAECE7; color: #712B13; border-left-color: #993C1D; }

.rdq-needs { padding: 20px 28px 0; }
.rdq-needs-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4a5268; margin-bottom: 10px; }
.rdq-needs-list { list-style: none; padding: 0; margin: 0; background: #f5f0e8; border-radius: 8px; overflow: hidden; }
.rdq-needs-list li { font-size: 13px; color: #2e3547; padding: 10px 16px 10px 36px; border-bottom: 1px solid rgba(26,31,46,0.07); position: relative; line-height: 1.5; }
.rdq-needs-list li:last-child { border-bottom: none; }
.rdq-needs-list li::before { content: ''; position: absolute; left: 16px; top: 16px; width: 6px; height: 6px; border-radius: 50%; background: #c8832a; }

.rdq-cta { background: #1a1f2e; padding: 18px 28px; margin-top: 20px; }
.rdq-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rdq-cta-text { display: flex; flex-direction: column; gap: 3px; }
.rdq-cta-text strong { font-size: 13px; font-weight: 600; color: #f5f0e8; }
.rdq-cta-text span   { font-size: 12px; color: rgba(245,240,232,0.4); }
.rdq-btn-primary { display: inline-block; padding: 10px 20px; background: #c8832a; color: #fff !important; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background 0.15s; white-space: nowrap; }
.rdq-btn-primary:hover { background: #e09840; }

.rdq-restart-wrap { padding: 16px 28px 22px; }
.rdq-btn-restart { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: transparent; color: #4a5268; border: 1px solid rgba(26,31,46,0.15); border-radius: 7px; font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.rdq-btn-restart:hover { color: #1a1f2e; border-color: rgba(26,31,46,0.3); }

@media (max-width: 520px) {
  .rdq-header, .rdq-questions { padding-left: 16px; padding-right: 16px; }
  .rdq-nav { padding: 12px 16px 20px; }
  .rdq-verdict, .rdq-reasons, .rdq-needs, .rdq-restart-wrap { padding-left: 16px; padding-right: 16px; }
  .rdq-cta { padding: 16px; }
  .rdq-cta-inner { flex-direction: column; align-items: flex-start; }
  .rdq-btn-primary { width: 100%; text-align: center; }
  .rdq-opt-visual { width: 40px; height: 40px; }
  .rdq-progress-wrap { display: none; }
}
