/* Existing Quiz Window Styles */

/* Content inside the Hero Section */
.quiz-content {
    position: relative; /* Places the content above the overlay */
    z-index: 1; /* Content is above the overlay */
    color: #333; /* Adjust content color for readability */
    padding: 60px 40px 40px 40px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0); /* Transparent background */
    align-items: center;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

#quiz-window {
    background-color: white;
    max-width: 960px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 20px 20px 38px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 5px solid var(--primary-color);
}

/* Quiz Text */
.quiz-text {
    color: #666;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.quiz-text b {
    color: var(--primary-color);
    font-weight: 700;
}

/* Hide Pages */
.hidden {
    display: none;
}

/* Large, space-filling quiz option buttons */
.quiz-btn {
    display: block;
    width: 100%;
    height: 80px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 20px 20px 38px rgba(0, 0, 0, 0.08);
}

/* Hover effect for quiz buttons */
.quiz-btn:hover {
    background-color: rgba(0, 123, 255, 0.8);
    box-shadow: 20px 20px 38px rgba(0, 0, 0, 0.2);
}

/* Small Back and Next buttons positioned properly */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%
}

/* Smaller buttons for navigation */
.back-btn, .next-btn, #submit-quiz {
    width: auto;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    background-color: white;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s ease;
}

/* Hover effect for navigation buttons */
.back-btn:hover, .next-btn:hover, #submit-quiz:hover {
    background-color: var(--primary-light-color);
}

/* Input Fields */
input, select {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Hide default checkbox */
input[type="checkbox"] {
    display: none;
}

/* Style the custom checkbox */
.custom-checkbox {
    width: 25px;
    height: 25px;
    background: white;
    border: 2px solid var(--primary-color);
    display: inline-block;
    position: relative;
    cursor: pointer;
    bottom: -5px;
}

/* Add checkmark when checked */
input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "✔";
    font-size: 20px;
    color: var(--primary-color);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Select2 Customization */
.select2-container .select2-selection--single {
    background-color: var(--primary-light-color);
    height: 60px;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.select2-container .select2-selection--single .select2-selection__clear {
    font-size: 20px;
    padding-bottom: 25px;
    font-weight: 600;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.select2-container .select2-selection--multiple {
    background-color: var(--primary-light-color);
    border: 2px solid var(--primary-color);
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

.select2-container--default .select2-search--inline .select2-search__field{
    font-size: 15px;
    font-weight: 600;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: white;
    color: var(--primary-color);
    font-weight: 600;
}
    



/* Flexbox Layout for Inputs */
.row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.col {
    display: flex;
    flex-direction: column;
}

@media (min-width: 600px) {
    .row {
        flex-direction: row;
        justify-content: center;
    }
    .col {
        width: 48%;
    }
}
