.endolift-quiz-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 600px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
}

.quiz-card {
    padding: 40px;
}

@media (max-width: 480px) {
    .quiz-card {
        padding: 24px;
    }
}

/* Progress Bar */
.quiz-progress-wrapper {
    background: #f0f0f0;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: #b19453; /* Elegant Gold Accent fitting Vie Aesthetics brand direction */
    width: 33%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Steps Transition */
.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeInQuiz 0.4s ease-in-out;
}

@keyframes fadeInQuiz {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.quiz-question {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.3;
}

.quiz-instruction {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 24px;
}

/* Options */
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.quiz-option-label {
    display: flex;
    align-items: center;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.quiz-option-label:hover {
    background: #f5f5f5;
    border-color: #b19453;
}

.quiz-option-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom Checkbox / Radio */
.custom-checkbox, .custom-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.custom-radio {
    border-radius: 50%;
}

.quiz-option-label input:checked ~ .custom-checkbox {
    background: #b19453;
    border-color: #b19453;
}

.quiz-option-label input:checked ~ .custom-radio {
    border-color: #b19453;
}

.quiz-option-label input:checked ~ .custom-radio::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #b19453;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.quiz-option-label input:checked ~ .custom-checkbox::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.quiz-option-label input:checked {
    background-color: #fff9f0;
}

.quiz-option-label:has(input:checked) {
    background: #fdfaf4;
    border-color: #b19453;
}

.option-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

/* Actions */
.quiz-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.quiz-btn {
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quiz-btn.next-btn, .quiz-btn.submit-btn {
    background: #b19453;
    color: #ffffff;
    margin-left: auto;
}

.quiz-btn.next-btn:hover:not(:disabled), .quiz-btn.submit-btn:hover:not(:disabled) {
    background: #967d43;
}

.quiz-btn.prev-btn {
    background: transparent;
    border: 1px solid #ccc;
    color: #666;
}

.quiz-btn.prev-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.quiz-btn.restart-btn {
    background: #222;
    color: #fff;
}

.quiz-btn.restart-btn:hover {
    background: #444;
}

.quiz-btn:disabled {
    background: #e0e0e0;
    color: #a0a0a0;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

/* Results Formatting */
.result-content {
    text-align: center;
}

.result-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.result-badge.match {
    background: #e2f3e5;
    color: #1b5e20;
}

.result-badge.consultation {
    background: #fff3cd;
    color: #856404;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.result-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: #b19453;
    color: #ffffff;
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
    font-size: 1rem;
}

.cta-button:hover {
    background: #967d43;
    color: #ffffff;
}
