/* MCQ Test Section - Professional Design with Gradient Borders */

.mcq-test-section {
    background: var(--secondary-color, #f2f1ed);
    padding: 100px 0;
    margin: 0;
    scroll-margin-top: 100px;
}

.mcq-test-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Section Title */
.mcq-section-title {
    text-align: center;
    margin-bottom: 70px;
}

.mcq-section-title h3 {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color, #011e2d);
    background: url("../images/icon-sub-heading.svg") no-repeat;
    background-position: left center;
    background-size: auto;
    padding-left: 24px;
    margin-bottom: 20px;
}

.mcq-section-title h2 {
    font-size: 50px;
    font-weight: 300;
    line-height: 1.1em;
    color: var(--primary-color, #011e2d);
    margin-bottom: 20px;
}

.mcq-section-title h2 span {
    font-weight: 700;
    background-image: linear-gradient(267.43deg, var(--accent-color, #df8a1b) 4.95%, var(--dark-color, #bf7310) 97.92%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mcq-section-title p {
    color: var(--text-color, #8f8f8f);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7em;
}

/* Test Landing Page */
.test-landing {
    background: transparent;
    border: 3px solid transparent;
    background-image:
        linear-gradient(var(--secondary-color, #f2f1ed), var(--secondary-color, #f2f1ed)),
        linear-gradient(135deg, var(--accent-color, #df8a1b) 0%, var(--dark-color, #bf7310) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 30px;
    padding: 80px 60px;
    text-align: center;
}

.test-landing-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.test-logo {
    display: none;
    /* Hide the logo emoji */
}

.test-landing h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color, #011e2d);
    margin-bottom: 20px;
    line-height: 1.2em;
    text-align: center;
}

.test-landing>p {
    color: var(--text-color, #8f8f8f);
    font-size: 18px;
    margin-bottom: 50px;
    line-height: 1.7em;
    text-align: center;
}

.test-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.test-feature {
    background: transparent;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.test-feature:hover {
    transform: translateY(-5px);
}

.test-feature-icon {
    font-size: 64px;
    margin-bottom: 15px;
    line-height: 1;
}

.test-feature h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #011e2d);
    margin-bottom: 8px;
}

.test-feature p {
    color: var(--text-color, #8f8f8f);
    font-size: 14px;
    margin: 0;
    line-height: 1.5em;
}

/* Buttons */
.btn-test {
    position: relative;
    display: inline-block;
    background-image: linear-gradient(to right, var(--dark-color, #bf7310) 0%, var(--accent-color, #df8a1b) 50%, var(--dark-color, #bf7310) 100%);
    background-size: 200% auto;
    border-radius: 100px;
    color: var(--white-color, #ffffff);
    font-size: 16px;
    font-weight: 700;
    line-height: 1em;
    text-transform: capitalize;
    border: none;
    padding: 17px 54px 17px 20px;
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    overflow: hidden;
}

.btn-test:hover {
    background-position: right center;
}

.btn-test::before {
    content: "";
    position: absolute;
    top: -1px;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: url("../images/arrow-white.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transform: translate(-20px, 50%);
    transition: all 0.4s ease-in-out;
}

.btn-test:hover::before {
    transform: translate(-20px, 50%) rotate(45deg);
}

.btn-test:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-test-center {
    display: table !important;
    margin: 0 auto !important;
}

/* User Info Form */
.test-info-form {
    background: transparent;
    border: 3px solid transparent;
    background-image:
        linear-gradient(var(--secondary-color, #f2f1ed), var(--secondary-color, #f2f1ed)),
        linear-gradient(135deg, var(--accent-color, #df8a1b) 0%, var(--dark-color, #bf7310) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 30px;
    padding: 80px 60px;
}

.test-info-form-content {
    max-width: 700px;
    margin: 0 auto;
}

.test-info-form h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color, #011e2d);
    text-align: center;
    margin-bottom: 15px;
}

.test-info-form>p {
    text-align: center;
    color: var(--text-color, #8f8f8f);
    font-size: 16px;
    margin-bottom: 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color, #011e2d);
    margin-bottom: 12px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #ddd;
    background: var(--white-color, #ffffff);
    border-radius: 15px;
    font-size: 16px;
    font-family: var(--default-font, 'Fustat', sans-serif);
    color: var(--primary-color, #011e2d);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color, #df8a1b);
}

.form-note {
    font-size: 13px;
    color: var(--text-color, #8f8f8f);
    margin-top: 8px;
    margin-bottom: 0;
}

/* Questions Section */
.test-questions {
    background: transparent;
    border: 3px solid transparent;
    background-image:
        linear-gradient(var(--secondary-color, #f2f1ed), var(--secondary-color, #f2f1ed)),
        linear-gradient(135deg, var(--accent-color, #df8a1b) 0%, var(--dark-color, #bf7310) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 30px;
    padding: 60px;
}

.test-questions-content {
    max-width: 900px;
    margin: 0 auto;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(1, 30, 45, 0.1);
}

.question-number {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color, #011e2d);
}

.question-progress {
    font-size: 16px;
    font-weight: 700;
    background-image: linear-gradient(267.43deg, var(--accent-color, #df8a1b) 4.95%, var(--dark-color, #bf7310) 97.92%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(1, 30, 45, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 40px;
}

.progress-bar {
    height: 100%;
    background-image: linear-gradient(to right, var(--dark-color, #bf7310), var(--accent-color, #df8a1b));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.question-card {
    margin-bottom: 40px;
}

.question-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color, #011e2d);
    margin-bottom: 30px;
    line-height: 1.5;
}

.question-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    min-height: 100px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: none;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    border: 1px solid rgba(1, 30, 45, 0.1);
}

.options-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.option-item {
    margin-bottom: 15px;
}

.option-input {
    display: none;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    background: var(--white-color, #ffffff);
    border: 2px solid #ddd;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    color: var(--primary-color, #011e2d);
    font-weight: 500;
}

.option-label:hover {
    border-color: var(--accent-color, #df8a1b);
    transform: translateX(5px);
}

.option-input:checked+.option-label {
    border-color: var(--accent-color, #df8a1b);
    background: linear-gradient(90deg, rgba(223, 138, 27, 0.1) 0%, rgba(191, 115, 16, 0.05) 100%);
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 3px solid #ddd;
    border-radius: 50%;
    margin-right: 18px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.option-input:checked+.option-label .option-radio {
    border-color: var(--accent-color, #df8a1b);
    background: var(--accent-color, #df8a1b);
}

.option-input:checked+.option-label .option-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--white-color, #ffffff);
    border-radius: 50%;
}

/* Results Section */
.test-results {
    background: transparent;
    border: 3px solid transparent;
    background-image:
        linear-gradient(var(--secondary-color, #f2f1ed), var(--secondary-color, #f2f1ed)),
        linear-gradient(135deg, var(--accent-color, #df8a1b) 0%, var(--dark-color, #bf7310) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 30px;
    padding: 100px 60px;
    text-align: center;
}

.test-results h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color, #011e2d);
    margin-bottom: 20px;
}

.test-results p {
    color: var(--text-color, #8f8f8f);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .mcq-test-section {
        padding: 80px 0;
    }

    .mcq-section-title h2 {
        font-size: 40px;
    }

    .test-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .test-landing,
    .test-info-form,
    .test-questions,
    .test-results {
        padding: 60px 40px;
    }

    .test-landing h1 {
        font-size: 38px;
    }

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

@media (max-width: 768px) {
    .mcq-test-section {
        padding: 60px 0;
    }

    .mcq-test-container {
        padding: 0 20px;
    }

    .mcq-section-title h2 {
        font-size: 32px;
    }

    .test-landing,
    .test-info-form,
    .test-questions,
    .test-results {
        padding: 50px 30px;
        border-radius: 20px;
    }

    .test-landing h1 {
        font-size: 32px;
    }

    .test-features {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .test-feature-icon {
        font-size: 52px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .test-results h2 {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .mcq-section-title h2 {
        font-size: 26px;
    }

    .test-landing h1 {
        font-size: 26px;
    }

    .test-landing,
    .test-info-form,
    .test-questions,
    .test-results {
        padding: 40px 20px;
    }

    .test-features {
        grid-template-columns: 1fr;
    }

    .test-feature-icon {
        font-size: 48px;
    }

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

    .option-label {
        font-size: 15px;
        padding: 16px 20px;
    }

    .btn-test {
        padding: 15px 50px 15px 18px;
        font-size: 15px;
    }
}

/* Side-by-side test links on landing cards */
.test-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.btn-test-link {
    display: inline-block;
    padding: 10px 20px;
    background-image: linear-gradient(to right, var(--dark-color, #bf7310) 0%, var(--accent-color, #df8a1b) 50%, var(--dark-color, #bf7310) 100%);
    background-size: 200% auto;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-test-link:hover {
    background-position: right center;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .test-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Level Selector */
.level-selector {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-level {
    padding: 12px 30px;
    border: 2px solid var(--accent-color, #df8a1b);
    background: transparent;
    color: var(--primary-color, #011e2d);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-level.active {
    background: var(--accent-color, #df8a1b);
    color: #fff;
    box-shadow: 0 4px 15px rgba(223, 138, 27, 0.3);
}

.btn-level:hover {
    transform: translateY(-2px);
}

/* Quiz Feedback Styles */
.option-label.correct,
.option-input:checked+.option-label.correct {
    border-color: #28a745 !important;
    background: rgba(40, 167, 69, 0.1) !important;
}

.option-label.wrong,
.option-input:checked+.option-label.wrong {
    border-color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.1) !important;
}

.option-label.correct .option-radio,
.option-input:checked+.option-label.correct .option-radio {
    border-color: #28a745 !important;
    background: #28a745 !important;
}

.option-label.wrong .option-radio,
.option-input:checked+.option-label.wrong .option-radio {
    border-color: #dc3545 !important;
    background: #dc3545 !important;
}

.option-label.correct .option-radio::after,
.option-label.wrong .option-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
}