.traffic-light-quiz {
    max-width: 1640px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: inherit;
}

.loading,
.error {
    text-align: center;
    padding: 40px;
    font-size: 18px;
}

.error {
    color: #cf2e2e;
    border-radius: 4px;
}

.quiz-title {
    font-size: 35px;
    font-weight: bold;
    margin-bottom: 30px;
    color: #333;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.question-item {
    border: none;
    border-bottom: 1px solid #EDD780;
    border-radius: 0;
    background: white;
    transition: all 0.2s ease;
}

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

.question-item:hover {
    border-color: #999;
}

.question-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.traffic-light-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    background-color: transparent;
    border-radius: 25px;
    padding: 10px 16px;
    border: 1px solid #dee2e6;
}

.traffic-light-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: transparent;
    transition: all 0.2s ease;
}

.traffic-light-dot.green {
    border-color: #4CAF50;
}

.traffic-light-dot.green.active {
    background-color: #4CAF50;
}

.traffic-light-dot.yellow {
    border-color: #FFC107;
}

.traffic-light-dot.yellow.active {
    background-color: #FFC107;
}

.traffic-light-dot.red {
    border-color: #F44336;
}

.traffic-light-dot.red.active {
    background-color: #F44336;
}

.question-header:hover {
    background-color: #f8f9fa;
}

.question-item h3 {
    padding-top: 0;
}

.question-item  .question-title {
    flex: 1;
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: #333;
    transition: color 0.2s ease;
}

.question-item:not(.collapsed) .question-title {
    color: #537BFF;
}

.toggle-icon {
    font-size: 16px;
    color: #666;
    transition: all 0.2s ease;
    margin-right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.question-content {
    border-top: 1px solid #EDD780;
    padding: 20px;
    padding-left: 36px;
}

.traffic-light-options {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.option {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.option:hover {
    background-color: #f8f9fa;
}

.radio-input, .elementor-kit-6 .radio-input  {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    width: 32px !important;
    height: 32px !important;
    border: 2px solid #DEE3D9 !important;
    border-radius: 50% !important;
    background: white !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    position: relative !important;
    opacity: 1 !important;
    display: inline-block !important;
    visibility: visible !important;
    z-index: 1 !important;
    padding: 0;
}

.elementor-kit-6 input:not([type="button"]):not([type="submit"]), .elementor-kit-6 textarea, .elementor-kit-6 .elementor-field-textual {
    padding: 0;
}

.radio-input:checked {
    border-color: #DEE3D9 !important;
    background: #DEE3D9 !important;
}

.radio-input:checked::after {
    content: '✓' !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: black !important;
    font-size: 18px !important;
    font-weight: bold !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2 !important;
}

.option-text {
    flex: 1;
    line-height: 1.5;
    color: #333;
}

/* Collapsed state */
.question-item.collapsed .question-content {
    display: none;
}

/* Progress Section */
.progress-section {
    margin-top: 40px;
    padding: 30px 0;
    border-top: 1px solid #EDD780;
}

.progress-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.progress-label {
    font-size: 16px;
    color: #666;
    text-align: left;
}

.elementor-kit-6 .traffic-light-quiz button,
.elementor-kit-6 .traffic-light-quiz input[type="button"],
.elementor-kit-6 .traffic-light-quiz input[type="submit"],
.elementor-kit-6 .traffic-light-quiz .elementor-button {
    background: #DEE3D9;
}

.elementor-kit-6 .traffic-light-quiz .btn {
    background: #DEE3D9;
    border-radius: 100px;
    border: none;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    color: #000000;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover:not(:disabled) {
    background-color: #c8d1c0;
}

.btn:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* Summary Section */
.summary-section {
    margin-top: 60px;
    padding-top: 40px;
}

.summary-subtitle {
    font-size: 20px;
    color: #537BFF;
    margin: 20px 0 10px 0;
    font-weight: normal;
}

.summary-separator {
    height: 1px;
    background-color: #EDD780;
    margin-bottom: 40px;
}

.results-title {
    font-size: 28px;
    color: #333;
    margin: 0 0 30px 0;
    font-weight: normal;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.result-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    border: 2px solid;
}

.result-circle.red {
    background-color: #F44336;
    border-color: #F44336;
}

.result-circle.yellow {
    background-color: #FFC107;
    border-color: #FFC107;
    color: black;
}

.result-circle.green {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.result-circle.empty {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
    color: #666;
}

.result-label {
    font-size: 18px;
    color: #333;
    line-height: 1.4;
}

.elementor-kit-6 label {
    font-family: "Fraunces", sans-serif;
}

/* Responsive design */
/* Mobile phones - align with main quiz responsive patterns */
@media (max-width: 767px) {
    .traffic-light-quiz {
        padding: 16px 0;
    }

    .quiz-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .question-header {
        padding: 12px 0;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .question-content {
        padding: 16px 0;
    }

    .question-item .question-title {
        font-size: 18px;
    }

    /* Vertical traffic lights on mobile - header stays horizontal */
    .traffic-light-indicator {
        flex-direction: column;
        gap: 3px;
        margin-left: auto;
        padding: 6px 8px;
    }

    .traffic-light-dot {
        width: 18px;
        height: 18px;
    }

    .toggle-icon {
        font-size: 14px;
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }


    .option-text {
        font-size: 16px;
    }

    .progress-label {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 0.4rem 1.2rem;
    }

    .summary-section {
        margin-top: 40px;
        padding-top: 20px;
    }

    .results-title {
        font-size: 20px;
    }

    .result-circle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .result-label {
        font-size: 14px;
    }

    .summary-subtitle {
        font-size: 18px;
    }
}

/* Tablets and smaller desktops - align with main quiz breakpoints */
@media (max-width: 1199px) {
    .quiz-title {
        font-size: 28px;
    }

    .question-item .question-title {
        font-size: 20px;
    }

    .option-text {
        font-size: 14px;
    }

    .results-title {
        font-size: 24px;
    }

    .summary-subtitle {
        font-size: 18px;
    }
}