@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

/* Fixed body - no page scroll */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    height: 100vh;
    transition: all 0.3s ease;
}

body.rtl {
    font-family: "Cairo", sans-serif;
    direction: rtl;
}

/* Fixed quiz section - no scroll */
.product-picker-quiz-section {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

body.rtl .language-switcher {
    right: auto;
    left: 30px;
}

.lang-label {
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.lang-label.inactive {
    opacity: 0.5;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: #000;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Left Content */
.content {
    flex: 1;
    flex-direction: column;
    background: #f5f5f5;
    z-index: 2;
    padding-top: 5rem;
    padding-left: 5rem;
    transition: padding 0.3s ease;
}

body.rtl .content {
    padding-left: 0;
    padding-right: 5rem;
}

.main-heading {
    font-size: 4.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #000;
}

.sub-heading {
    font-size: 2.6rem;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.02em;
    margin-bottom: 150px;
}

.question-divider {
    border: 0;
    height: 0.12rem;
    background-color: #707070;
    width: 100%;
    margin-bottom: 15px;
}

/* Quiz Container with scroll */
.quiz-container {
    width: 52%;
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
    margin-left: auto;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    transition: all 0.3s ease;
}

body.rtl .quiz-container {
    margin-left: 0;
    margin-right: auto;
    padding-right: 0;
    padding-left: 10px;
}

/* Custom scrollbar for quiz container */
.quiz-container::-webkit-scrollbar {
    width: 8px;
}

.quiz-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.quiz-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.quiz-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.question-header {
    margin-bottom: 10px;
}

.question-text {
    font-size: 1.8rem;
    font-weight: 500;
    color: #000;
    line-height: 1.4;
}

/* Updated Quiz Navigation */
.quiz-navigation {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
    transition: opacity 0.3s ease;
}


/* Back Button Styles */
.back-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
}

.back-button img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

body.rtl .back-button img {
    transform: scaleX(-1);
}

/* Next Button Styles */
.next-button {
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.next-button:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

.next-button img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

body.rtl .next-button img {
    transform: scaleX(-1);
}

/* Options Container with scroll */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
    transition: padding 0.3s ease;
}

body.rtl .options-container {
    padding-right: 0;
    padding-left: 5px;
}

/* Custom scrollbar for options */
.options-container::-webkit-scrollbar {
    width: 6px;
}

.options-container::-webkit-scrollbar-track {
    background: transparent;
}

.options-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.options-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.option {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.option-label {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 1px solid #707070;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

body.rtl .custom-checkbox {
    margin-right: 0;
    margin-left: 15px;
}

.option input[type="checkbox"]:checked ~ .option-label .custom-checkbox::after {
    content: '✓';
    color: #000;
    font-weight: bold;
    font-size: 14px;
}

.multiple-choice-instruction {
    color: #666;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 15px;
}

.multiple-choice-instruction i {
    margin-right: 8px;
}

body.rtl .multiple-choice-instruction i {
    margin-right: 0;
    margin-left: 8px;
}

/* Completion Message */
.completion-message {
    text-align: center;
    margin-top: 60px;
    animation: fadeIn 0.6s ease-in;
}

.completion-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

.completion-text {
    font-size: 1.2rem;
    color: #666;
}

/* Video Container */
.video-container {
    position: absolute;
    z-index: -1;
    width: 25%;
    height: 150vh;
    top: 50%;
    left: 16%;
    transform: translateY(-50%) rotate(20deg);
    pointer-events: none;
}

body.rtl .video-container {
    left: auto;
    right: 16%;
    transform: translateY(-50%) rotate(-20deg);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 50%;
    left: 50%;
    height: auto;
    object-fit: cover;
    transform: translate(-50%, -50%) rotate(-20deg);
    width: 60em;
}

body.rtl .video-wrapper video {
    transform: translate(-50%, -50%) rotate(20deg);
}

/* Results Section */
.results-container {
    max-width: 700px;
}

.results-header {
    margin-bottom: 40px;
}

.results-title {
    font-size: 3rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
}

.results-list {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.result-item {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-question {
    font-weight: 500;
    color: #000;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.result-answer {
    color: #666;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-container {
        width: 30%;
        left: 15%;
    }

    body.rtl .video-container {
        left: auto;
        right: 15%;
    }

    .quiz-container {
        max-height: 450px;
    }

    .options-container {
        max-height: 300px;
    }

    .quiz-navigation {
        gap: 10px;
    }

    .back-button,
    .next-button {
        width: 45px;
        height: 45px;
    }

    .back-button img,
    .next-button img {
        width: 45px;
        height: 45px;
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .content {
        padding: 3rem 2rem;
        padding-top: 4rem;
        z-index: 1;
        display: flex;
        justify-content: flex-start; 
    }

    body.rtl .content {
        padding: 3rem 2rem;
        padding-top: 4rem;
    }

    .main-heading {
        font-size: 4rem;
        text-align: left; 
        width: 100%; 
    }

    body.rtl .main-heading {
        text-align: right;
    }

    .sub-heading {
        font-size: 1.8rem;
        margin-bottom: 80px;
        text-align: left; 
        width: 100%; 
    }

    body.rtl .sub-heading {
        text-align: right;
    }

    .quiz-container {
        width: 60%; 
        opacity: 0;
        margin: 0; 
        animation: fadeIn 0.6s ease-in forwards;
        padding-left: 0;
        max-height: 400px;
    }

    body.rtl .quiz-container {
    margin-right: 0;
}

    .options-container {
        max-height: 280px;
    }

    .question-text {
        font-size: 1.5rem;
        text-align: left;
        width: 100%; 
    }

    body.rtl .question-text {
        text-align: right;
    }

    .back-button,
    .next-button {
        width: 40px;
        height: 40px;
    }

    .back-button img,
    .next-button img {
        width: 40px;
        height: 40px;
    }

    .video-container {
        width: 90%;
        left: 50%;
        transform: translateY(-50%) rotate(35deg);
        height: 250vh;
        overflow: hidden;
    }

body.rtl .video-container {
    left: auto;
    right: 50%;
    transform: translateY(-50%) rotate(-35deg);
}

    .video-wrapper {
        position: relative;
        width: 150%;
        height: 150%;
        overflow: hidden;
    }

    .video-wrapper video {
        position: absolute;
        top: 50%;
        left: 50%;
        object-fit: cover;
        transform: translate(-85%, -70%) rotate(-35deg);
    }

body.rtl .video-wrapper video {
    left: auto;
    right: 50%;
    transform: translate(85%, -70%) rotate(35deg);
}

    
}

@media (max-width: 480px) {
    .content {
        padding: 3rem 2rem;
        padding-top: 4rem;
        z-index: 1;
        display: flex;
        justify-content: flex-start; 
    }

    body.rtl .content {
        padding: 3rem 2rem;
        padding-top: 4rem;
    }

    .main-heading {
        font-size: 3rem;
        text-align: left; 
        width: 100%; 
    }

    body.rtl .main-heading {
        text-align: right;
    }

    .sub-heading {
        font-size: 1.8rem;
        margin-bottom: 30px;
        text-align: left; 
        width: 100%; 
    }

    body.rtl .sub-heading {
        text-align: right;
    }

    .quiz-container {
        width: 55%; 
        opacity: 0;
        margin: 0; 
        animation: fadeIn 0.6s ease-in forwards;
        padding-left: 0;
        max-height: 450px;
    }


body.rtl .quiz-container {
    margin-right: 0;
}

    .options-container {
        max-height: 250px;
    }

    .question-text {
        font-size: 1.2rem;
        text-align: left;
        width: 100%; 
    }

    body.rtl .question-text {
        text-align: right;
    }

    .back-button,
    .next-button {
        width: 35px;
        height: 35px;
    }

    .back-button img,
    .next-button img {
        width: 35px;
        height: 35px;
    }

    .video-container {
        width: 100%;
        left: 50%;
        transform: translateY(-45%) rotate(30deg);
        height: 250vh;
        overflow: hidden;
    }

body.rtl .video-container {
    left: auto;
    right: 50%;
    transform: translateY(-45%) rotate(-30deg);
    
}

    .video-wrapper {
        position: relative;
        width: 150%;
        height: 150%;
        overflow: hidden;
    }

    .video-wrapper video {
        position: absolute;
        top: 50%;
        left: 50%;
        object-fit: cover;
        transform: translate(-85%, -70%) rotate(-30deg);
    }

body.rtl .video-wrapper video {
    left: auto;
    right: 50%;
    transform: translate(85%, -70%) rotate(30deg);
}
}