/* Quiz Styles */
#esd-quiz-wrapper {
    /* Isolation Reset */
    all: initial;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #ffffff;
    
    /* Re-establish box-sizing */
    *, *::before, *::after {
        box-sizing: border-box;
    }
}

#esd-quiz-wrapper .quiz-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
    position: relative;
    z-index: 1;
    display: block;
}

#esd-quiz-wrapper h1, 
#esd-quiz-wrapper h2, 
#esd-quiz-wrapper h3, 
#esd-quiz-wrapper h4, 
#esd-quiz-wrapper h5, 
#esd-quiz-wrapper h6 {
    margin: 0;
    padding: 0;
    font-weight: normal;
    color: inherit;
    line-height: 1.2;
}

#esd-quiz-wrapper p {
    margin: 0;
    padding: 0;
}

#esd-quiz-wrapper button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
}

#esd-quiz-wrapper .quiz-header {
    margin-bottom: 50px;
}

#esd-quiz-wrapper .quiz-subtitle {
    font-size: 16px;
    color: #a8b8c0;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

#esd-quiz-wrapper .quiz-title {
    font-size: 48px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
}

#esd-quiz-wrapper .quiz-title .highlight {
    color: #f4a732;
}

#esd-quiz-wrapper .start-over-btn {
    position: absolute;
    top: 60px;
    right: 40px;
    background: #ffffff;
    color: #3d4f59;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Plus Jakarta Sans", sans-serif;
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 8px;
}

#esd-quiz-wrapper .start-over-btn.visible {
    display: flex;
}

#esd-quiz-wrapper .progress-section {
    margin-bottom: 60px;
}

#esd-quiz-wrapper .progress-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

#esd-quiz-wrapper .progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

#esd-quiz-wrapper .progress-fill {
    height: 100%;
    background: #f4a732;
    width: 0%;
    transition: width 0.4s ease;
}

#esd-quiz-wrapper .question {
    display: none;
}

#esd-quiz-wrapper .question.active {
    display: block;
}

#esd-quiz-wrapper .question-title {
    font-size: 48px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 50px;
    line-height: 1.3;
}

#esd-quiz-wrapper .options {
    display: grid;
    gap: 20px;
    margin-bottom: 60px;
}

#esd-quiz-wrapper .options.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

#esd-quiz-wrapper .options.grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

#esd-quiz-wrapper .options.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

#esd-quiz-wrapper .option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#esd-quiz-wrapper .option::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

#esd-quiz-wrapper .option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

#esd-quiz-wrapper .option.selected {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

#esd-quiz-wrapper .option.selected::after {
    background: #f4a732;
    border-color: #f4a732;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14'%3E%3Cpath fill='%23fff' d='M6 11.17L1.83 7l-1.42 1.41L6 14 18 2l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

#esd-quiz-wrapper .option-title {
    font-size: 20px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

#esd-quiz-wrapper .option-description {
    font-size: 14px;
    color: #a8b8c0;
    line-height: 1.6;
}

#esd-quiz-wrapper .navigation {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

#esd-quiz-wrapper .esd-quiz-btn {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    font-family: "Plus Jakarta Sans", sans-serif;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

#esd-quiz-wrapper .esd-quiz-btn-back {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: none;
}

#esd-quiz-wrapper .esd-quiz-btn-back.visible {
    display: inline-flex;
}

#esd-quiz-wrapper .esd-quiz-btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

#esd-quiz-wrapper .esd-quiz-btn-next {
    background: #ffffff;
    color: #3d4f59;
}

#esd-quiz-wrapper .esd-quiz-btn-next:hover:not(:disabled) {
    background: #f4a732;
    color: #ffffff;
}

#esd-quiz-wrapper .esd-quiz-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#esd-quiz-wrapper .results {
    display: none;
}

#esd-quiz-wrapper .results.active {
    display: block;
}

#esd-quiz-wrapper .results-header {
    font-size: 24px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#esd-quiz-wrapper .results-divider {
    height: 2px;
    background: #f4a732;
    margin-bottom: 40px;
}

#esd-quiz-wrapper .recommended-product {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 60px;
}

#esd-quiz-wrapper .product-header {
    display: grid;
    grid-template-columns: 40% 60%;
}

#esd-quiz-wrapper .product-image {
    height: 300px;
    background: #2a3842;
    background-size: cover;
    background-position: center;
}

#esd-quiz-wrapper .product-header-content {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#esd-quiz-wrapper .product-category {
    font-size: 24px;
    color: #a8b8c0;
    font-weight: 600;
    margin-bottom: 10px;
}

#esd-quiz-wrapper .product-name {
    font-size: 20px;
    color: #f4a732;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

#esd-quiz-wrapper .product-body {
    padding: 40px;
}

#esd-quiz-wrapper .product-description {
    font-size: 16px;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 30px;
}

#esd-quiz-wrapper .product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

#esd-quiz-wrapper .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 14px;
}

#esd-quiz-wrapper .feature-icon {
    width: 20px;
    height: 20px;
    background: #f4a732;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
}

#esd-quiz-wrapper .product-price {
    font-size: 14px;
    color: #a8b8c0;
    margin-bottom: 20px;
}

#esd-quiz-wrapper .explore-details {
    color: #f4a732;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

#esd-quiz-wrapper .alternatives-section {
    margin-bottom: 40px;
}

#esd-quiz-wrapper .alternatives-title {
    font-size: 20px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#esd-quiz-wrapper .alternatives-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

#esd-quiz-wrapper .alternatives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

#esd-quiz-wrapper .alt-product {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-right: none;
}

#esd-quiz-wrapper .alt-product:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

#esd-quiz-wrapper .alt-product-image {
    height: 200px;
    background: #2a3842;
}

@media (max-width: 1024px) {
    #esd-quiz-wrapper .quiz-container {
        padding: 40px 20px;
    }

    #esd-quiz-wrapper .quiz-title,
    #esd-quiz-wrapper .question-title {
        font-size: 36px;
    }

    #esd-quiz-wrapper .options.grid-4,
    #esd-quiz-wrapper .options.grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }

    #esd-quiz-wrapper .product-header {
        grid-template-columns: 1fr;
    }

    #esd-quiz-wrapper .alternatives-grid {
        grid-template-columns: 1fr;
    }

    #esd-quiz-wrapper .alt-product {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    #esd-quiz-wrapper .start-over-btn {
        position: static;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    #esd-quiz-wrapper .quiz-title,
    #esd-quiz-wrapper .question-title {
        font-size: 28px;
    }

    #esd-quiz-wrapper .options.grid-3 {
        grid-template-columns: 1fr;
    }

    #esd-quiz-wrapper .product-features {
        grid-template-columns: 1fr;
    }
}
