/* ══════════════════════════════════════════════
   AUTO-QUIZ — CONSENT POPUP CSS
   Data disclosure modal backdrop and consent popup styling.
   ══════════════════════════════════════════════ */

#consent-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    animation: fade-in 0.2s ease forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.consent-popup {
    background: #121214;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    width: min(520px, 95%);
    max-height: 85dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    animation: slide-up 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.consent-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    padding-right: 6px;
}

.consent-body::-webkit-scrollbar {
    width: 5px;
}

.consent-body::-webkit-scrollbar-track {
    background: transparent;
}

.consent-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
    border-radius: 999px;
}

.consent-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--blue), var(--blue-dark));
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.consent-popup h3 {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 14px;
    font-family: "Poppins", sans-serif;
}

.consent-popup p {
    font-size: clamp(0.7rem, 2.5vw, 0.78rem);
    color: var(--text-soft);
    text-align: left;
    line-height: 1.6;
}

.consent-popup b {
    font-weight: 600;
    color: var(--text-mid);
}

.consent-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.button-consent {
    padding: 8px 14px;
    border-radius: 10px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: clamp(0.72rem, 2.5vw, 0.82rem);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.button-consent.refuse {
    border: 1px solid var(--border);
    background: #1e1e22;
    color: var(--text-mid);
}

.button-consent.refuse:active {
    background: #2a2a30;
    transform: scale(0.96);
}

.button-consent.continue {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: white;
}

.button-consent.continue:active {
    background: var(--blue-dark);
    transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
    #consent-backdrop {
        backdrop-filter: none;
    }
}
