/* -------------------- FULL BG -------------------- */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    background: url("../images/ambientes/cozinha11.webp") center / cover no-repeat fixed;
    backdrop-filter: brightness(0.5);
    min-height: 80vh;
}

/* -------------------- QUIZ CARD -------------------- */
.quiz {
    --accent: #ff1e00;
    width: min(480px, 90vw);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: var(--color-bg-header);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* progress bar */
.progress {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.progress__fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.4s ease;
}

/* question text */
#question {
    font-size: 1.2rem;
    line-height: 1.4;
}

/* choices / inputs wrapper */
#actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #444;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

input.invalid {
    border-color: #e74c3c;
}

.helper-text {
    font-size: 0.8rem;
    color: #e74c3c;
}

button,
.choice-btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
}

button:disabled {
    opacity: 0.4;
    cursor: default;
}

button:not(:disabled):active,
.choice-btn:active {
    transform: scale(0.97);
}

button {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}

/* choice buttons grid */
.choices {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.choice-btn {
    background: rgba(255, 255, 255, 0.1);
    min-width: 110px;
    color: #fff;
}

.choice-btn.selected,
.choice-btn:hover {
    background: var(--accent);
}

/* success state */
.success-message {
    font-size: 1.3rem;
    text-align: center;
    line-height: 1.4;
}

/* -------------------- MEDIA -------------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}