/* ===================================
   QUIZ MODAL STYLES
   =================================== */
.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.quiz-modal.active {
    display: flex;
}

.quiz-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.quiz-container {
    position: relative;
    background: #f9f0f4;
    border-radius: 25px;
    max-width: 600px;
    width: 100%;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10001;
}

.quiz-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #d47fa6;
    transform: rotate(90deg);
}

/* Quiz Content Wrapper */
.quiz-content-wrapper {
    overflow: visible;
}

/* Quiz Header */
.quiz-header {
    text-align: center;
    margin-bottom: 20px;
}

.quiz-logo {
    height: 60px;
    margin-bottom: 15px;
}

.quiz-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.quiz-subtitle {
    font-size: 0.95rem;
    color: #666;
    font-weight: 300;
}

/* Progress Bar */
.quiz-progress {
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d183a7, #d47fa6);
    border-radius: 10px;
    transition: width 0.4s ease;
    width: 33.33%;
}

.progress-text {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Quiz Steps */
.quiz-form {
    min-height: 150px;
    position: relative;
    overflow: visible;
    margin-bottom: 10px;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content {
    text-align: center;
    overflow: visible;
}

.step-icon {
    display: none;
}

.step-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #2C2C2C;
    margin-bottom: 15px;
    letter-spacing: -0.3px;
}

/* Form Inputs */
.quiz-input,
.quiz-select {
    width: 100%;
    padding: 15px 20px;
    font-size: 1rem;
    border: 1px solid rgba(209, 131, 167, 0.3);
    border-radius: 12px;
    background: white;
    color: #2C2C2C;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.quiz-input:focus,
.quiz-select:focus {
    outline: none;
    border-color: #d47fa6;
    box-shadow: 0 0 0 4px rgba(212, 127, 166, 0.1);
}

.quiz-input::placeholder {
    color: #999;
}

.quiz-select {
    cursor: pointer;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: white;
    border: 1px solid rgba(209, 131, 167, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: #d47fa6;
}

.custom-select.open .custom-select-trigger {
    border-color: #d47fa6;
    box-shadow: 0 0 0 4px rgba(212, 127, 166, 0.1);
}

.custom-select-trigger span {
    font-size: 1rem;
    color: #2C2C2C;
}

.custom-select-trigger i {
    color: #d47fa6;
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-options {
    position: fixed;
    width: calc(100% - 40px);
    max-width: 540px;
    background: white;
    border: 1px solid rgba(209, 131, 167, 0.3);
    border-radius: 12px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 10000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.custom-select.open .custom-options {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.custom-options::-webkit-scrollbar-track {
    background: rgba(209, 131, 167, 0.1);
    border-radius: 3px;
}

.custom-options::-webkit-scrollbar-thumb {
    background: rgba(209, 131, 167, 0.4);
    border-radius: 3px;
}

.custom-options::-webkit-scrollbar-thumb:hover {
    background: rgba(209, 131, 167, 0.6);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-category {
    padding: 12px 0;
}

.option-category:not(:last-child) {
    border-bottom: 1px solid rgba(209, 131, 167, 0.15);
}

.category-label {
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d47fa6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.option-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #2C2C2C;
}

.option-item i {
    color: #d47fa6;
    font-size: 0.9rem;
    width: 20px;
}

.option-item:hover {
    background: rgba(212, 127, 166, 0.08);
}

.option-item.selected {
    background: rgba(212, 127, 166, 0.15);
    font-weight: 500;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 1px solid rgba(209, 131, 167, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #d47fa6;
    background: rgba(212, 127, 166, 0.05);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #d47fa6;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid rgba(209, 131, 167, 0.4);
    border-radius: 50%;
    outline: none;
    position: relative;
}

.radio-option input[type="radio"]:checked {
    border-color: #d47fa6;
}

.radio-option input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #d47fa6;
    border-radius: 50%;
}

.radio-label {
    font-size: 1rem;
    color: #2C2C2C;
    font-weight: 400;
}

.specialist-input {
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

/* Quiz Actions */
.quiz-actions {
    display: flex;
    gap: 12px;
    padding-top: 10px;
    background: #f9f0f4;
}

.btn-quiz {
    flex: 1;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #d183a7, #d47fa6);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 127, 166, 0.3);
}

.btn-back {
    background: white;
    color: #666;
    border: 1px solid rgba(209, 131, 167, 0.3);
    flex: 0 0 auto;
    padding: 15px 20px;
}

.btn-back:hover {
    border-color: #d47fa6;
    color: #d47fa6;
}

/* Responsive */
@media (max-width: 768px) {
    .quiz-container {
        padding: 30px 20px;
    }
    
    .quiz-title {
        font-size: 1.5rem;
    }
    
    .step-icon {
        font-size: 2.5rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .quiz-actions {
        flex-direction: column-reverse;
    }
    
    .btn-back {
        flex: 1;
    }
}
