.felder-quiz-container {
    background-color: #f0f0f0;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
}

/* Progress Bar Styles */
.felder-quiz-progress-container {
    margin-bottom: 30px;
    width: 100%;
}

.felder-quiz-progress-bar {
    width: 100%;
    height: 12px;
    background-color: #ddd;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.felder-quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%; /* Will be updated by JavaScript */
    transition: width 0.4s ease;
    border-radius: 6px;
    position: relative;
}

.felder-quiz-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0) 50%, rgba(255,255,255,0.2));
    border-radius: 6px;
}

.felder-quiz-progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Mobile styles for progress bar */
@media (max-width: 768px) {
    .felder-quiz-progress-container {
        margin-bottom: 20px;
    }
    
    .felder-quiz-progress-text {
        font-size: 13px;
    }
}

.felder-quiz-question-option {
    width: 100%;
    flex: 1;
    cursor: pointer; /* Make the label also show as clickable */
    display: block; /* Make sure the label takes full width */
}

/* ------------------- */


/* Basic styles to start with */
.felder-quiz-question-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* spacing between each option */
}

.felder-quiz-question-option-container {
    flex: 1 1 calc(50% - 1rem); /* takes half of the container's width minus the gap */
    box-sizing: border-box; /* to make sure the padding and border are included in the width calculation */
    padding: 20px;
    background: white;
    border: solid 1px #ccc;
    border-radius: 12px;
    cursor: pointer; /* Show that the whole container is clickable */
    transition: all 0.2s ease; /* Smooth transition for hover effects */
}

.felder-quiz-question-option-container:hover {
    background: #f8f8f8;
    border-color: #999;
    transform: translateY(-1px); /* Slight lift effect on hover */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.felder-quiz-question-option-container:active {
    transform: translateY(0); /* Reset transform when clicked */
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.felder-quiz-question-option-container:has(input[type="radio"]:checked) {
    background: #e8f5e8;
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.felder-quiz-question-option-container input[type="radio"] {
    -webkit-appearance: none;  /* Safari and Chrome */
    -moz-appearance: none;     /* Firefox */
    appearance: none;          /* Modern browsers */
    outline: none;             /* Remove the blue outline in some browsers */
    margin: 0;
}

/* Mobile styles */
@media (max-width: 768px) { /* assuming 768px is the breakpoint between desktop and mobile */
    .felder-quiz-question-option-container {
        flex: 1 1 100%; /* each option takes full width on mobile */
    }
}


/* ------------------- */
.felder-quiz-question {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
}

.felder-quiz-options {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    font-size: 16px;
    margin-bottom: 5px;
}

.felder-quiz-button {
    margin-top: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

.felder-quiz-results {
    margin-top: 20px;
}

.felder-quiz-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.felder-quiz-results ul {
    font-size: 18px;
    margin-left: 20px;
}

.felder-quiz-results li {
    margin-bottom: 5px;
}


.felder-quiz-question-container.email-container label,
.felder-quiz-question-container.email-container input,
.felder-quiz-question-container.email-container .error {
    display: block;
    margin-bottom: 10px; /* Space between elements */
}

.felder-quiz-question-container.email-container input[type="email"] {
    width: 100%; /* occupy full width of the container */
    padding: 5px 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.1em;
    max-width: 400px; /* limit the width to 400px */
}

.felder-quiz-question-container.email-container .error {
    color: red;
    font-size: 1em;
}

.felder-quiz-question-container.email-container .info {
    font-size: smaller;
}

.felder-quiz-question-container.email-container .explain {
    color: #666;
}