:root {
    --cq-navy: #07152f;
    --cq-blue: #163d7a;
    --cq-gold: #f7c75b;
    --cq-cream: #fffaf0;
    --cq-white: #fff;
    --cq-muted: #c9d7ef;
    --cq-danger: #ff5f6d;
}
* {
    box-sizing: border-box;
}
.church-quiz-section {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    padding: 55px 12px;
    overflow: hidden;
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #07152f 0%, #0c2a57 48%, #07152f 100%);
    color: #fff;
}
.church-quiz-section:before,
.church-quiz-section:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    z-index: -2;
    animation: cqFloat 9s ease-in-out infinite;
}
.church-quiz-section:before {
    width: 430px;
    height: 430px;
    left: -170px;
    top: -130px;
}
.church-quiz-section:after {
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -220px;
    background: radial-gradient(circle, rgba(73, 157, 255, 0.3), transparent 68%);
    animation-delay: -3s;
}
.cq-lines {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.25;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}
.cq-shell {
    max-width: 1050px;
    margin: auto;
}
.cq-heading {
    text-align: center;
    margin-bottom: 28px;
}
.cq-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border: 1px solid rgba(247, 199, 91, 0.45);
    border-radius: 999px;
    background: rgba(247, 199, 91, 0.08);
    color: var(--cq-gold);
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.cq-heading h2 {
    font-size: clamp(2rem, 5vw, 3.7rem);
    font-weight: 900;
    margin: 14px 0 7px;
    letter-spacing: -0.035em;
}
.cq-heading p {
    color: var(--cq-muted);
    font-size: 1.03rem;
    margin: 0;
}
.cq-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.055));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.33),
        inset 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(18px);
    overflow: hidden;
}
.cq-card:before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cq-gold), #fff, var(--cq-gold), transparent);
}
.cq-body {
    padding: clamp(20px, 4vw, 42px);
}
.cq-topbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.cq-stat {
    min-width: 145px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(4, 16, 39, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cq-stat span {
    display: block;
    color: #aebfdd;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
}
.cq-stat strong {
    display: block;
    margin-top: 3px;
    font-size: 1.05rem;
}
.cq-timer {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    position: relative;
    background: conic-gradient(var(--cq-gold) var(--timer-angle, 360deg), rgba(255, 255, 255, 0.13) 0);
    box-shadow: 0 0 35px rgba(247, 199, 91, 0.25);
    transition: background 0.2s linear;
}
.cq-timer:after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: #0a2148;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.cq-timer-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cq-timer-number {
    font-size: 3rem;
    font-weight: 950;
    line-height: 0.9;
}
.cq-timer-label {
    font-size: 0.7rem;
    color: #c9d7ef;
    text-transform: uppercase;
    letter-spacing: 0em;
    font-weight: 800;
    margin-top: 8px;
}
.cq-timer.danger {
    animation: cqPulse 0.65s infinite;
    box-shadow: 0 0 45px rgba(255, 95, 109, 0.48);
}
.cq-question-number {
    color: var(--cq-gold);
    font-size: 0.83rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.cq-question {
    font-size: clamp(1.1rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.55;
    margin: 10px 0 22px;
}
.cq-options {
    display: grid;
    gap: 13px;
}
.cq-option {
    position: relative;
}
.cq-option input {
    position: absolute;
    opacity: 0;
}
.cq-option label {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 17px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.13);
    cursor: pointer;
    transition: 0.25s;
}
.cq-option label:hover {
    transform: translateY(-2px);
    border-color: rgba(247, 199, 91, 0.65);
    background: rgba(247, 199, 91, 0.1);
}
.cq-option input:checked + label {
    border-color: var(--cq-gold);
    background: linear-gradient(90deg, rgba(247, 199, 91, 0.22), rgba(255, 255, 255, 0.08));
    box-shadow: 0 0 0 3px rgba(247, 199, 91, 0.08);
}
.cq-letter {
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #173b77;
    color: #fff;
    font-weight: 900;
}
.cq-option input:checked + label .cq-letter {
    background: var(--cq-gold);
    color: #10234a;
}
.cq-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 24px;
    font-weight: 900;
    transition: 0.25s;
}
.cq-btn-primary {
    color: #0d2148;
    background: linear-gradient(135deg, #ffe59a, #f4bd3d);
    box-shadow: 0 12px 30px rgba(247, 199, 91, 0.22);
}
.cq-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(247, 199, 91, 0.32);
}
.cq-btn-primary:disabled {
    opacity: 0.55;
    transform: none;
}
.cq-progress {
    height: 9px;
    background: rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 25px;
}
.cq-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f3b936, #fff0ad);
    transition: width 0.35s;
}
.cq-center {
    text-align: center;
    padding: 16px 0;
}
.cq-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #142d5f;
    background: linear-gradient(135deg, #fff0a7, #f5bc39);
    box-shadow:
        0 0 0 10px rgba(247, 199, 91, 0.08),
        0 18px 45px rgba(0, 0, 0, 0.25);
}
.cq-center h3 {
    font-size: clamp(1.55rem, 4vw, 2.5rem);
    font-weight: 900;
}
.cq-center p {
    color: #c9d7ef;
    max-width: 650px;
    margin: 10px auto 20px;
}
.cq-countdown {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 9px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 420px;
    margin: 18px auto;
}
.cq-countbox {
    flex: 1 1 0;
    min-width: 0;
    max-width: 96px;
    padding: 12px 6px;
    border-radius: 14px;
    background: rgba(4, 16, 39, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.cq-countbox strong {
    display: block;
    font-size: 1.7rem;
    color: var(--cq-gold);
}
.cq-countbox span {
    font-size: 0.66rem;
    color: #b9c8e1;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
}
.cq-alert {
    padding: 12px 15px;
    border-radius: 13px;
    background: rgba(255, 95, 109, 0.12);
    border: 1px solid rgba(255, 95, 109, 0.35);
    color: #ffd7dc;
    margin-bottom: 15px;
    display: none;
}
.cq-schedule {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #d8e3f5;
    font-size: 0.9rem;
    margin: 5px;
}
.cq-loading {
    min-height: 300px;
    display: grid;
    place-items: center;
}
.cq-spinner {
    width: 52px;
    height: 52px;
    border: 5px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--cq-gold);
    border-radius: 50%;
    animation: cqSpin 0.8s linear infinite;
}
@keyframes cqSpin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes cqPulse {
    50% {
        transform: scale(1.045);
    }
}
@keyframes cqFloat {
    50% {
        transform: translate(25px, 22px) scale(1.06);
    }
}
@media (max-width: 650px) {
    .church-quiz-section {
        padding: 35px 10px;
    }
    .cq-body {
        padding: 20px 15px;
    }
    .cq-topbar {
        justify-content: center;
    }
    .cq-stat {
        min-width: calc(50% - 8px);
        flex: 1;
    }
    .cq-timer {
        width: 132px;
        height: 132px;
    }
    .cq-timer-number {
        font-size: 1.0rem;
    }
    .cq-btn {
        width: 100%;
    }
    .cq-countdown {
        gap: 5px;
        max-width: 100%;
    }
    .cq-countbox {
        padding: 10px 3px;
        border-radius: 10px;
    }
    .cq-countbox strong {
        font-size: 1.35rem;
    }
    .cq-countbox span {
        font-size: 0.55rem;
        letter-spacing: 0.03em;
    }
}
