/* Quiz helpers */
.rq-hidden {
    display: none !important
}

.rq-question {
    font-weight: 600
}

/* CTA styling */
#rq-start.rq-start {
    display: inline-block !important;
    padding: .75rem 1.25rem;
    border-radius: .375rem;
    background: #198754 !important;
    border: 0 !important;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none !important;
    line-height: 1.1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

#rq-start.rq-start:hover {
    filter: brightness(.95);
}

/* Optional: tighter padding on phones */
@media (max-width: 575.98px) {
    #risk-quiz .card-body {
        padding: 1rem;
    }
}

/* Keep progress header visible while scrolling */
#rq-progressInline {
    position: sticky;
    top: 12px;
    z-index: 2;
}

/* Generic offset for pages without a tall hero
    body.assessment-offset { padding-top: 96px; }
    @media (max-width: 991.98px){
      body.assessment-offset { padding-top: 9em; }
      .header-bottom{ height: 8em; }
    }
     */
.header-bottom {
    background-color: #000;
    background-image: url('../assets/img/hero.jpg');
    background-size: cover;
    background-position-y: bottom;
}

@media (min-width: 992px) {
    .rq-answer-col {
        border-left: 1px solid rgba(0, 0, 0, .08);
    }
}

.rq-hide {
    display: none !important
}

.rq-blurred {
    filter: blur(4px);
    user-select: none;
    opacity: 0.7;
    position: relative;
}

/* Inline validation */
.rq-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .08);
}

.rq-error-msg {
    color: #dc3545;
}

/* Shake animation */
@keyframes rq-shake {

    10%,
    90% {
        transform: translateX(-1px)
    }

    20%,
    80% {
        transform: translateX(2px)
    }

    30%,
    50%,
    70% {
        transform: translateX(-4px)
    }

    40%,
    60% {
        transform: translateX(4px)
    }
}

.rq-shake {
    animation: rq-shake .45s ease;
}

/* === Minimal, classy modal styling === */
.rq-inline-overlay {
    position: fixed;
    inset: 0;
    display: none;
    /* toggled by JS */
    align-items: center;
    justify-content: center;
    padding: 2rem;
    /* breathing room on small screens */
    z-index: 1050;
    /* above site chrome */
}

.rq-inline-overlay[aria-hidden="false"] {
    display: flex;
}

/* Backdrop: subtle, with blur */
.rq-inline-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity .18s ease-out;
}

.rq-inline-overlay[aria-hidden="false"] .rq-inline-overlay-backdrop {
    opacity: 1;
}

/* Card: elevated, rounded, restrained motion */
.rq-inline-overlay-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, .16),
        0 2px 8px rgba(0, 0, 0, .08);
    padding: 20px 20px 16px;
    opacity: 0;
    transform: translateY(6px) scale(.985);
    transition: opacity .18s ease-out, transform .18s ease-out;
}

.rq-inline-overlay[aria-hidden="false"] .rq-inline-overlay-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Close “X”: minimal */
.rq-close-x {
    line-height: 1;
    border: 0;
    background: transparent;
    font-size: 22px;
    opacity: .6;
    transition: opacity .15s ease;
}

.rq-close-x:hover {
    opacity: 1;
}

/* Mobile spacing adjustments */
@media (max-width: 575.98px) {
    .rq-inline-overlay {
        padding: 1rem;
    }

    .rq-inline-overlay-card {
        padding: 16px;
        border-radius: 12px;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    .rq-inline-overlay-backdrop,
    .rq-inline-overlay-card {
        transition: none !important;
    }
}


.rq-blurred::after {
    content: "🔒 Click to unlock your free PDF";
    position: absolute;
    inset: 0;
    /* cover full area */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* overlay look */
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #111;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: .1px;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;

    /* interactivity only on overlay (content underneath stays inert) */
    pointer-events: auto;
    cursor: pointer;

    /* subtle in/out */
    opacity: 1;
    transition: opacity .18s ease-in-out;
}

.rq-locked {
    position: relative;
}

.rq-lockContent {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    opacity: .85;
}

.rq-lockOverlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    -webkit-backdrop-filter: blur(2px);
    color: #111;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity .18s ease-in-out;
}

.btn-quiz {
    background-color: #4f613c !important;
    color: #FFF;
    border-color: #4f613c;
}

.btn-outline-secondary {
    background-color: transparent;
    border-color: #4f613c;
    color: #4f613c !important;
}

.vstack label {
    user-select: none;
}