/* FILE: public_html/assets/css/quiz.css */

/* RESET & BASE */
html,
body {
    min-height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    background-color: #0B0B0D;
    /* Match bg-bg */
}

/* CONTAINER */
.quiz-container {
    width: 100%;
    max-width: 860px;
    /* Wider on desktop */
    margin: 0 auto;
    padding: 20px;
    position: relative;
    /* Ensure no fixed height causing cut-off */
    height: auto;
    min-height: 100vh;
    /* Takes full height but allows scroll */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically if short */
}

/* MOBILE FIRST QUIZ */
.wizard-slide {
    width: 100%;
    display: flex;
    /* Defaults */
    flex-direction: column;
    gap: 16px;
    /* consistent spacing */
}

/* INPUTS & CONTROLS */
/* INPUTS & CONTROLS */
input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
    width: 100% !important;
    /* Force full width */
    min-height: 48px;
    /* Touch target size */
    padding: 12px 16px;
    font-size: 16px !important;
    /* iOS: prevents auto-zoom */
    border-radius: 12px;
    background-color: #131318;
    /* bg-card */
    border: 1px solid #374151;
    /* border-gray-700 */
    color: #fff;
    outline: none;
    transition: all 0.2s;
}

/* FIX RADIO & CHECKBOX SIZING & STYLE */
input[type="radio"],
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    min-width: 24px !important;
    /* Force width */
    margin-right: 12px;
    flex-shrink: 0;
    border: 2px solid #52525b;
    /* zinc-600 */
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    border-color: #FFB020;
    /* amber */
    background-color: #FFB020;
    box-shadow: 0 0 10px rgba(255, 176, 32, 0.4);
}

/* Checkmark/Dot for checked state */
input[type="radio"]:checked::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #000;
    border-radius: 50%;
    display: block;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #FFB020;
    /* amber */
    box-shadow: 0 0 0 1px #FFB020;
}

/* BUTTONS */
button {
    min-height: 52px;
    /* Large clickable area */
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
}

/* BUTTONS CONTAINER */
.quiz-actions {
    display: flex;
    flex-direction: column;
    /* Stack on mobile */
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .quiz-actions {
        flex-direction: row;
        /* Row on desktop */
    }

    .quiz-actions button {
        width: auto;
        min-width: 160px;
        /* Min width for niceness */
    }

    .quiz-actions button.flex-1 {
        flex: 1;
    }
}

/* SUMMARY VIEW FIXES */
.summary-item {
    display: flex;
    flex-direction: column;
    /* Stack label/value on mobile */
    border-bottom: 1px solid #1f2937;
    padding: 12px 0;
    gap: 4px;
}

@media (min-width: 768px) {
    .summary-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .summary-item span:first-child {
        width: 40%;
    }

    .summary-item span:last-child {
        width: 60%;
        text-align: right;
    }
}

/* TYPOGRAPHY */
h1 {
    font-size: 1.5rem;
    /* 24px base */
    line-height: 1.3;
}

label {
    font-size: 1.125rem;
    /* 18px */
    display: block;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    /* Prevent overflow on long questions */
}

/* PROGRESS BAR FIX */
#progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #1f2937;
    z-index: 50;
}