/* sf-quiz-loader.css */
/* ===== Overlay ===== */
#nxp-layer {
    position: fixed;
    inset: 0;
    background: rgba(30,20,15,0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    font-family: sans-serif;
}
#nxp-layer.show {
    opacity: 1;
    pointer-events: all;
}

/* ===== Card ===== */
.nxp-box {
    width: 100%;
    max-width: 380px;
    background-color: #FBF8F1;
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    color: #2B2B2B;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
    from {opacity:0; transform: translateY(20px);}
    to {opacity:1; transform: translateY(0);}
}

/* ===== Loader ===== */
.nxp-loader {
    width: 44px;
    height: 44px;
    border: 2px solid #E5D9C5;
    border-top: 0px solid #800000;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    position: relative;
    animation: nxp-spin 1s linear infinite;
}

@keyframes nxp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Text ===== */
.nxp-title {
    font-size: 22px;
    font-weight: 700;
    color: #1C1B1F;
    margin-bottom: 12px;
    letter-spacing: -0.2px;
    font-family: 'jost', sans-serif;
}
.nxp-desc {
    font-size: 16px;
    color: #66605B;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 0 8px;
    font-family: 'jost', sans-serif;
}

/* ===== Buttons ===== */
.nxp-btn {
    width: 100%;
    padding: 14px 16px;
    background-color: #F5EFE0;
    border: 1px solid #EAE0D0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'jost', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.nxp-btn-main {
    color: #332C27;
    margin-bottom: 12px;
    cursor: not-allowed;
    opacity: 0.6;
}
.nxp-btn-main.active {
    opacity: 1;
    cursor: pointer;
}
.nxp-btn-alt {
    color: #B89A5E;
    margin-bottom: 20px;
    cursor: pointer;
}
.nxp-btn-alt svg {
    display: inline-block;
    vertical-align: middle;
}

/* ===== Status ===== */
.nxp-status {
    margin-top: 15px;
    font-size: 16px;
    color: #786E65;
    line-height: 1.5;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
    font-family: 'jost', sans-serif;
}

/* ===== Video ===== */
#nxp-video-wrap {
    position: fixed;
    inset: 0;
    background: #000;
    display: none;
    z-index: 999999;
    width: 80%;
    height: max-content;
    margin: auto;
}
#nxp-video-wrap iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}
#nxp-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: #fff;
    border: none;
    padding: 10px 10px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}
