﻿/* ---------------- QUIZ SECTION ---------------- */
.quiz-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    background: #fff;
}

.quiz-wrapper {
    width: 100%;
    /* max-width: 600px; */
    text-align: center;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
}

.quiz-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ff6600;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #ff6600;
    border-radius: 24px;
    padding: 0.4rem 1.2rem;
    background: #fff;
    z-index: 1;
}

    .quiz-title::before,
    .quiz-title::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 600px; /* adjust this to control line length */
        height: 1px;
        background: #ff6600;
        transform: translateY(-50%);
        z-index: 0;
    }

    .quiz-title::before {
        right: 100%;
        margin-right: 15px;
    }

    .quiz-title::after {
        left: 100%;
        margin-left: 15px;
    }

/* Quiz Box */
.quiz-box {
    border: 1px solid #c7bfff;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quiz-question {
    display: flex;
    align-items: center; /* vertically center badge + text */
    justify-content: center; /* center them horizontally */
    gap: 10px; /* space between badge and text */
    margin-bottom: 1.5rem;
}

.quiz-badge {
    display: inline-block;
    background: #fde8e8;
    color: #ff6600;
    font-weight: 600;
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.quiz-question p {
    margin: 0; /* remove default paragraph margin */
    font-size: 1rem;
    color: #333;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers all buttons horizontally */
    gap: 12px; /* Spacing between buttons */
    margin-top: 1rem;
}

.quiz-option {
    background: #fde8e8;
    border: none;
    border-radius: 10px;
    padding: 0.8rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    width: 60%; /* Medium width (adjust 50–70% as you like) */
    max-width: 350px; /* Prevents overly wide buttons on large screens */
    text-align: center;
}

    .quiz-option:hover {
        background: #ff9900;
    }

    .quiz-option.active {
        background: #ff9900;
        color: #fff;
    }

.quiz-footer {
    display: flex;
    justify-content: space-between; /* LEFT text, RIGHT buttons */
    align-items: center;
    margin-top: 1.5rem;
}

/* Move Question X of Y slightly right */
.quiz-progress {
    margin-left: 250px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

/* Put prev + next side-by-side on the right */
.quiz-nav {
    display: flex;
    gap: 12px;
    margin-right:200px;
}

/* Both buttons same styling */
.nav-btn {
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

    .nav-btn:hover {
        background: #e65900;
    }

    /* Disabled state */
    .nav-btn:disabled {
        background: #ffc199;
        cursor: not-allowed;
    }


@media (max-width: 600px) {
    .quiz-option {
        width: 90%;
    }
}

/* ---------------- RESULT SECTION ---------------- */
.result-section {
    text-align: center;
    padding: 3rem 1rem;
    background: #fafafa;
}

    .result-section h2 {
        font-size: 1.6rem;
    }

    .result-section .highlight {
        color: #ff6600;
    }

.consult-card {
    background: #f6edf7;
    padding: 2rem 1rem;
    margin: 2rem auto;
    border-radius: 10px;
    max-width: 1280px;
}

    .consult-card h3 {
        margin-bottom: 1rem;
    }

.book-btn {
    background: #c14989;
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

    .book-btn:hover {
        background: #a33772;
    }

/* ---------------- SUBSCRIBE SECTION ---------------- */
.subscribe-section {
    text-align: center;
    padding: 3rem 1rem;
    background: #f4f4f4;
}

    .subscribe-section h2 {
        font-size: 1.5rem;
    }

    .subscribe-section h3 {
        font-size: 1.3rem;
        margin: 0.5rem 0;
    }

    .subscribe-section .highlight {
        color: #ff6600;
    }
.subscribe-action-btn {
    background-color: #ff9500;
    color: #000;
    border: none;
    padding: 8px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

    .subscribe-action-btn:hover {
        background: #e68a00;
    }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
    .quiz-box {
        padding: 1.5rem;
    }

    .quiz-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .quiz-title::before,
    .quiz-title::after {
        width: 50px;
    }

    .result-section h2,
    .subscribe-section h2 {
        font-size: 1.3rem;
    }

    .subscribe-section h3 {
        font-size: 1.1rem;
    }
}


