/* Quiz Styles */
:root {
    --primary-color: #4352dd;
    --primary-dark: #1f10ee;
    --primary-light: #7274f7;
    --text-dark: #1F1F1F;
    --text-light: #666666;
    --white: #ffffff;
    --background: #9499e0;
    --success: #28a745;
    --border-color: #EEEEEE;
}

.quiz-section {
    position: relative;
    padding: 60px 0;
    background: var(--background);
    z-index: 1;
}

.quiz-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/website/images/banner_2_slider_1.jpg') no-repeat center center;
    background-size: cover;
    /* opacity: 0.6; */
    z-index: -1;
}

.quiz-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
    padding: 40px;
    position: relative;
}

.quiz-title {
    color: var(--text-dark);
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.quiz-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

.question-content {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.question-text {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 600;
}

.custom-radio label,
.custom-checkbox label {
    display: block;
    padding: 15px 20px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 10px;
}

.custom-radio label:hover,
.custom-checkbox label:hover {
    border-color: var(--primary-color);
    background: rgba(67, 82, 221, 0.05);
}

.custom-radio input:checked + label,
.custom-checkbox input:checked + label {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Steps Header Styling */
.wizard > .steps {
    display: none !important;
}

.wizard > .content {
    background: var(--white);
    margin: 0;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.wizard > .content > .body {
    width: 100%;
    height: 100%;
    padding: 15px;
    position: relative;
}

/* Hide all sections by default */
.wizard > .content > .body section {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    width: 100%;
    height: auto;
    left: 0;
    top: 0;
    transform: translateX(30px);
    transition: visibility 0s 0.3s, opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Only show current section */
.wizard > .content > .body section.current {
    visibility: visible;
    opacity: 1;
    position: relative;
    transform: translateX(0);
    transition-delay: 0s;
    pointer-events: all;
    z-index: 1;
}

.wizard > .actions {
    margin-top: 30px;
}

.wizard > .actions > ul {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wizard > .actions > ul > li > a {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.wizard > .actions > ul > li > a:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.wizard > .actions > ul > li.disabled > a {
    background: var(--border-color);
    color: var(--text-light);
    border-color: var(--border-color);
    cursor: not-allowed;
}

.submit-quiz {
    background: var(--primary-color) !important;
    color: var(--white);
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 180px;
    cursor: pointer;
}

.submit-quiz:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark);
}

/* Progress bar styling */
.progress-wrapper {
    margin-bottom: 30px;
}

.question-number {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.progress {
    height: 8px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.finish-content {
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.finish-icon {
    color: var(--primary-color);
    font-size: 60px;
    margin-bottom: 20px;
}

.finish-content h4 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.finish-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.custom-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-radio input,
.custom-checkbox input {
    display: none;
}

/* Add fade transition */
.fade-transition {
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(-30px) !important;
}

@media (max-width: 768px) {
    .quiz-section {
        padding: 40px 0;
    }

    .quiz-container {
        padding: 20px;
    }

    .quiz-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .question-text {
        font-size: 18px;
    }

    .custom-radio label,
    .custom-checkbox label {
        padding: 12px 15px;
        font-size: 14px;
    }

    .wizard > .actions > ul > li > a {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Error States */
.radio-group.error,
.checkbox-group.error {
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 10px;
    background: rgba(220, 53, 69, 0.05);
}

.custom-input.error,
textarea.error {
    border: 2px solid #dc3545 !important;
    background: rgba(220, 53, 69, 0.05);
}

.custom-input.error:focus,
textarea.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.radio-group.error .custom-radio label,
.checkbox-group.error .custom-checkbox label {
    border-color: #dc3545;
}

.combined-follow-up textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
}

.combined-follow-up textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(67, 82, 221, 0.25);
}
