/* =========================================
   AI RISK ASSESSMENT TOOL — centre-screen modal
   ========================================= */

.rt-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 4, 20, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.rt-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.rt-panel {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 22px;
    background:
        radial-gradient(700px 300px at 50% -10%, rgba(253, 183, 26, 0.10), transparent 60%),
        linear-gradient(165deg, #1E0B45 0%, #160830 100%);
    border: 1px solid rgba(253, 183, 26, 0.25);
    box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.9);
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease;
}

.rt-overlay.is-open .rt-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Scrollbar */
.rt-panel::-webkit-scrollbar { width: 8px; }
.rt-panel::-webkit-scrollbar-track { background: transparent; }
.rt-panel::-webkit-scrollbar-thumb { background: rgba(253, 183, 26, 0.3); border-radius: 4px; }

.rt-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.rt-close:hover {
    background: rgba(253, 183, 26, 0.9);
    color: #1A0A3C;
    transform: rotate(90deg);
}

.rt-close svg { width: 18px; height: 18px; }

/* ===== PROGRESS BAR ===== */
.rt-progress {
    position: sticky;
    top: 0;
    z-index: 4;
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 22px 22px 0 0;
    overflow: hidden;
}

.rt-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D4AF37, #FDB71A 50%, #FFE08A);
    border-radius: 0 4px 4px 0;
    transition: width 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ===== STEP CONTAINER ===== */
.rt-body {
    padding: 44px 46px 46px;
}

.rt-step { display: none; animation: rtFade 0.45s ease both; }
.rt-step.is-active { display: block; }

@keyframes rtFade {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ===== INTRO SCREEN ===== */
.rt-intro-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A0A3C;
    background: linear-gradient(145deg, #FFD460, #FDB71A);
    box-shadow: 0 16px 36px -10px rgba(253, 183, 26, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.rt-intro-icon svg { width: 34px; height: 34px; }

.rt-eyebrow {
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #FDB71A;
    opacity: 0.85;
    margin-bottom: 12px;
    display: block;
}

.rt-title {
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-size: 30px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
}

.rt-lead {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 26px;
}

.rt-points {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.rt-points li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    padding: 9px 0;
}

.rt-points li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #FDB71A;
    margin-top: 1px;
}

.rt-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(253, 183, 26, 0.08);
    border: 1px solid rgba(253, 183, 26, 0.25);
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
}
.rt-disclaimer svg { color: #FDB71A; }

.rt-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 18px;
    justify-content: center;
}

/* ===== BUTTONS ===== */
.rt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(145deg, #FFD460, #FDB71A);
    color: #1A0A3C;
    box-shadow: 0 14px 30px -10px rgba(253, 183, 26, 0.6);
    transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease, opacity 0.3s ease;
}

.rt-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px -12px rgba(253, 183, 26, 0.75);
}

.rt-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rt-btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
    box-shadow: none;
}
.rt-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.rt-arrow { font-size: 18px; line-height: 1; }

/* ===== QUESTION SCREEN ===== */
.rt-qcat {
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FDB71A;
    opacity: 0.8;
    margin-bottom: 8px;
}

.rt-qcount {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 18px;
    font-weight: 500;
}

.rt-question {
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-size: 23px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
    margin: 0 0 28px;
    letter-spacing: -0.005em;
}

.rt-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.rt-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    text-align: left;
    padding: 17px 20px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 15.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.rt-option:hover {
    border-color: rgba(253, 183, 26, 0.5);
    background: rgba(253, 183, 26, 0.06);
    transform: translateX(4px);
}

.rt-option.is-selected {
    border-color: #FDB71A;
    background: rgba(253, 183, 26, 0.12);
}

.rt-option-marker {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.25s ease;
}

.rt-option:hover .rt-option-marker { border-color: #FDB71A; }

.rt-option.is-selected .rt-option-marker {
    border-color: #FDB71A;
    background: #FDB71A;
}

.rt-option.is-selected .rt-option-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #1A0A3C;
}

.rt-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rt-nav .rt-btn-ghost { width: auto; padding: 12px 22px; flex-shrink: 0; }
.rt-nav-spacer { flex-grow: 1; }

/* ===== EMAIL GATE ===== */
.rt-gate-badge {
    display: inline-block;
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #1A0A3C;
    background: #FDB71A;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}

.rt-field {
    margin-bottom: 16px;
}

.rt-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 7px;
}

.rt-field input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 15px;
    transition: border-color 0.25s ease, background 0.25s ease;
    box-sizing: border-box;
}

.rt-field input::placeholder { color: rgba(255, 255, 255, 0.3); }

.rt-field input:focus {
    outline: none;
    border-color: #FDB71A;
    background: rgba(253, 183, 26, 0.05);
}

.rt-field input.rt-error {
    border-color: #ff6b6b;
}

.rt-error-msg {
    color: #ff8585;
    font-size: 13px;
    margin: 4px 0 0;
    display: none;
}

.rt-error-msg.is-shown { display: block; }

.rt-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.45);
    margin: 18px 0 24px;
}

.rt-privacy svg { width: 16px; height: 16px; flex-shrink: 0; color: #FDB71A; margin-top: 1px; }

/* ===== LOADING ===== */
.rt-loading {
    text-align: center;
    padding: 30px 0;
}

.rt-spinner {
    width: 48px;
    height: 48px;
    margin: 0 auto 22px;
    border: 4px solid rgba(253, 183, 26, 0.2);
    border-top-color: #FDB71A;
    border-radius: 50%;
    animation: rtSpin 0.9s linear infinite;
}

@keyframes rtSpin { to { transform: rotate(360deg); } }

/* ===== REPORT ===== */
.rt-report-head {
    text-align: center;
    margin-bottom: 28px;
}

.rt-gauge {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 18px;
}

.rt-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.rt-gauge-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 14; }
.rt-gauge-fill {
    fill: none;
    stroke-width: 14;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rt-gauge-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rt-gauge-score {
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 46px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.rt-gauge-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
}

.rt-band {
    display: inline-block;
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 19px;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.rt-band--high { background: rgba(255, 90, 90, 0.15); color: #ff8585; border: 1px solid rgba(255, 90, 90, 0.4); }
.rt-band--mod  { background: rgba(253, 183, 26, 0.15); color: #FDB71A; border: 1px solid rgba(253, 183, 26, 0.45); }
.rt-band--low  { background: rgba(74, 222, 128, 0.15); color: #6ee7a0; border: 1px solid rgba(74, 222, 128, 0.4); }

.rt-band-desc {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto;
    max-width: 440px;
}

/* Category breakdown */
.rt-cats {
    margin: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 26px 0;
}

.rt-cat {
    margin-bottom: 20px;
}
.rt-cat:last-child { margin-bottom: 0; }

.rt-cat-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.rt-cat-name {
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.rt-cat-name span {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    margin-left: 6px;
}

.rt-cat-pct {
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 14px;
    font-weight: 800;
    color: #FDB71A;
}

.rt-cat-track {
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.rt-cat-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    background: linear-gradient(90deg, #D4AF37, #FDB71A);
    transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Recommendations */
.rt-recs-title {
    font-family: var(--font-body, 'Instrument Sans', 'Segoe UI', Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FDB71A;
    opacity: 0.85;
    margin: 0 0 14px;
}

.rt-recs {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.rt-recs li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rt-recs li:last-child { border-bottom: none; }

.rt-recs li svg {
    width: 18px; height: 18px; flex-shrink: 0; color: #FDB71A; margin-top: 2px;
}

/* Report CTA */
.rt-cta-box {
    text-align: center;
    padding: 30px 28px;
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(253, 183, 26, 0.12), rgba(253, 183, 26, 0.03));
    border: 1px solid rgba(253, 183, 26, 0.3);
}

.rt-cta-title {
    font-family: var(--font-heading, 'Fraunces', Georgia, serif);
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.rt-cta-sub {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 22px;
}

.rt-cta-box .rt-btn { text-decoration: none; }

.rt-cta-later {
    display: block;
    margin-top: 14px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: color 0.25s ease;
}
.rt-cta-later:hover { color: rgba(255, 255, 255, 0.7); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .rt-overlay { padding: 0; }
    .rt-panel { max-width: 100%; max-height: 100vh; border-radius: 0; height: 100%; }
    .rt-progress { border-radius: 0; }
    .rt-body { padding: 56px 24px 32px; }
    .rt-title { font-size: 25px; }
    .rt-question { font-size: 20px; }
    .rt-gauge { width: 150px; height: 150px; }
    .rt-gauge-score { font-size: 38px; }
}
