/* ============================
   Global Reset
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

/* ============================
   Body Layout
============================ */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 20px 10px;
}

/* ============================
   Headings
============================ */
h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #333;
}

h2 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: #333;
}

/* ============================
   Form Container
============================ */
form {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    width: 100%;
}

/* ============================
   Labels (if added later)
============================ */
label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
    color: #444;
}

/* ============================
   Inputs
============================ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;
}

textarea {
    resize: vertical;
}

/* ============================
   User Info Container
============================ */
#userContainer h2 {
    margin-bottom: 15px;
}

/* ============================
   Quiz Containers
============================ */
#quizContainer {
    margin-top: 10px;
    margin-bottom: 10px;
}

#optionsContainer label {
    display: block;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    font-weight: normal;
}

#optionsContainer input[type="radio"] {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

/* ============================
   Timer Text
============================ */
p {
    margin-top: 10px;
    font-size: 0.95rem;
}

/* ============================
   Buttons
============================ */
button {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    color: #ffffff;
    background-color: #9b38ff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #7f2ed6;
}

#nextBtn {
    margin-top: 10px;
    background-color: #6c757d;
}

#nextBtn:hover {
    background-color: #5a6268;
}

/* ============================
   Result Container
============================ */
#resultContainer {
    margin-top: 15px;
    font-size: 0.95rem;
}

/* ============================
   Mobile Responsive
============================ */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    form {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1rem;
    }

    input,
    textarea,
    button {
        font-size: 0.95rem;
    }
}
