/* Styles for progress bar */
.progress-bar {
    width: 100%;
    //margin-bottom: 20px;
    display: none;
    padding-top:1px;
}
.progress-bar.quiz-active {
    display: block;
    }
/* Show progress bar for other sections */
.question-section ~ .progress-bar,
.product-section ~ .progress-bar {
    display: block;
}

/* Progress bar styles */
.progress {
    height: 10px;
    background-color: #007BFF;
    transition: width 0.3s ease-in-out;
}

/* Step icons and arrows */
.step-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    column-gap: 30px;
}

.step-icons img {
    width: 30px;
    height: auto;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

.step-icons img.active {
    opacity: 1;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0.5;
    font-size: 40px;
    font-weight: bold;
    margin: 0 15px;
    transition: color 0.3s ease-in-out;
}

.arrow.active {
    opacity: 1;
}

.arrow::before {
    content: "→";
    font-weight: bold;
}
ul{
margin: 0 !important;
}
/* Quiz layout styles */
.quiz-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 70px; /* Adjust the size as needed */
    height: auto;
}

.quiz-body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    background-color: white;
}

.quiz-container {
    width: 100%;
    background-color: #f5f5f5;
    //padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.question-section,
.intro-section,
.product-section {
    display: none;
}

.quiz-active {
    display: block;
    padding:25px;
}

.quiz-options {
    display: flex;
    column-gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.quiz-card {
   // width: 15%;
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
    background-color: #E0E9FF;
    margin: 1px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-layout .quiz-card {
    //width: 80%;
}

.grid-layout .quiz-card img {
    height: 150px;
}

.grid-layout {
    display: inline-grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    grid-template-rows: repeat(2, auto); /* 2 rows */
    gap: 10px; /* Adjust the gap between grid items as needed */
    justify-content: center;
    column-gap: 10px;
}

.quiz-card img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
    border-radius: 5px;
    order: 1;
}

.quiz-card .quiz-card-text {
    order: 2;
}

.quiz-card .extra-details {
    order: 3;
}

.quiz-card .card-text {
    width: 95%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.intro-section img {
    width: auto;
    height: 400px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
    margin-bottom: 5px;
}

.quiz-card:hover {
    transform: scale(1.05);
}

.quiz-card .extra-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #007BFF;
    color: white;
    padding: 5px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
}

.highlighted-text {
    background-color: rgba(217, 217, 217, 0.85); /* #D9D9D9 with 85% opacity */
    padding: 10px; /* Adjust padding as needed */
    display: inline-block; /* Ensure padding is applied correctly */
}

.start-button,
.nav-button {
    background-color: #355199;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.start-button:hover,
.nav-button:hover {
    background-color: #355199;
}

.quiz-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* Two-column layout for the intro section */
.two-column-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding:25px;
}

.text-column {
    width: 50%;
    padding-right: 20px;
    text-align: left;
}

.image-column {
    width: 50%;
    text-align: center;
}

.image-column img {
    max-width: 100%;
    height: auto;
    padding-top: 50px;
}

.extra-details ul {
    text-align: left;
    padding-left: 20px; /* Optional: Add padding for better alignment */
}

.quiz-card.selected {
    border: 2px solid #355199;
    background-color: #EAF4FF;
}
#question2-section p {
	font-weight:bold;
}
#question3-section p {
    font-weight:bold;
}
/* Responsive Design Adjustments */
@media (max-width: 1024px) {
    .quiz-card {
        width: 30%;
    }

    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-column-layout {
        flex-direction: column;
        text-align: center;
    }

    .text-column,
    .image-column {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .quiz-card {
        width: 45%;
    }
    
    #question2-section > div.quiz-options.grid-layout {
    	width:100%;
    }
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }

    .quiz-navigation {
        flex-direction: column;
        align-items: center;
    }

    .nav-button {
        width: 100%;
        margin: 5px 0;
    }
    button.nav-button.next-button{
        order:-1;
    }
}

@media (max-width: 480px) {
	#question1-section .quiz-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 10px;
	justify-content: center;
    }
    #question2-section .quiz-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 10px;
    }
	#question3-section .quiz-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 10px;
	justify-content: center;
    }        
.quiz-card {
        width: 100%;
    }

    .grid-layout {
        grid-template-columns: repeat(1, 1fr);
    }

    .quiz-container {
        padding: 10px;
    }

    .quiz-card img {
        height: 200px;
    }

    .text-column {
        text-align: center;
    }
    button.nav-button.next-button{
        order:-1;
    }
    .image-column img {
        padding-top: 50px;
    }
}

/* Widget-specific styles */
.mini-quiz-container {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 12px; /* Smaller font size for the widget */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.mini-quiz-section {
    margin-bottom: 10px;
}

.mini-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mini-quiz-card {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    background-color: #fff;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.mini-quiz-card:hover {
    background-color: #e6f7ff;
    transform: scale(1.02);
}

.mini-quiz-card.selected {
    border: 2px solid #355199;
    background-color: #EAF4FF;
}

.mini-quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.mini-nav-button {
    padding: 5px 10px;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.mini-nav-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Responsive adjustments for the widget */
@media (max-width: 768px) {
    .mini-quiz-container {
        font-size: 11px;
    }

    .mini-quiz-card {
        padding: 6px;
    }

    .mini-nav-button {
        font-size: 10px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .mini-quiz-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
        gap: 5px;
    }

    .mini-quiz-card {
        font-size: 10px;
        padding: 5px;
    }

    .mini-nav-button {
        font-size: 9px;
        padding: 3px 6px;
    }
}


