/* Questionnaire Modal Styles */

.questionnaire-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.questionnaire-container {
    position: relative;
    background: white;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 10001;
}

.questionnaire-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 10002;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.questionnaire-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
}

.questionnaire-progress {
    height: 6px;
    background-color: #e0e0e0;
    width: 100%;
}

.questionnaire-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #35B8E0 0%, #27a2c8 100%);
    transition: width 0.4s ease;
    width: 0%;
}

.questionnaire-content {
    padding: 40px;
    overflow-y: auto;
    flex: 1;
}

.questionnaire-question h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
}

.questionnaire-field {
    margin-bottom: 20px;
}

.questionnaire-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.questionnaire-field input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.questionnaire-field input:focus {
    outline: none;
    border-color: #35B8E0;
}

.questionnaire-option {
    margin-bottom: 12px;
}

.questionnaire-option input[type="radio"] {
    display: none;
}

.questionnaire-option label {
    display: block;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: #333;
}

.questionnaire-option label:hover {
    border-color: #35B8E0;
    background-color: #f0f9fa;
}

.questionnaire-option input[type="radio"]:checked + label {
    border-color: #35B8E0;
    background-color: #35B8E0;
    color: white;
    font-weight: 600;
}

.questionnaire-buttons {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.questionnaire-buttons .btn-primary,
.questionnaire-buttons .btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.questionnaire-buttons .btn-primary {
    background-color: #35B8E0;
    color: black;
}

.questionnaire-buttons .btn-primary:hover {
    background-color: #27a2c8;
}

.questionnaire-buttons .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.questionnaire-buttons .btn-secondary:hover {
    background-color: #5a6268;
}

/* Loading State */
.questionnaire-loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #35B8E0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.questionnaire-loading p {
    font-size: 18px;
    color: #666;
}

/* Results */
.questionnaire-results {
    text-align: center;
}

.questionnaire-results h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.result-score {
    margin: 40px 0;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #35B8E0 0%, #27a2c8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 30px rgba(23, 162, 184, 0.3);
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.score-max {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.score-label {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

.result-recommendation {
    text-align: left;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
}

.result-recommendation h3 {
    font-size: 24px;
    color: #35B8E0;
    margin-bottom: 15px;
}

.result-recommendation p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.result-benefits {
    margin: 20px 0;
}

.result-benefits h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 12px;
}

.result-benefits ul {
    list-style: none;
    padding: 0;
}

.result-benefits li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #555;
}

.result-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #35B8E0;
    font-weight: 700;
    font-size: 18px;
}

.result-recommendation .btn-primary {
    display: inline-block;
    margin-top: 20px;
}

/*
.mt-4 {
    margin-top: 1.5rem;
}

.btn-lg {
    padding: 14px 32px !important;
    font-size: 18px !important;
}
*/

/* Error State */
.questionnaire-error {
    text-align: center;
    padding: 60px 20px;
}

.questionnaire-error h2 {
    font-size: 28px;
    color: #dc3545;
    margin-bottom: 20px;
}

.questionnaire-error p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .questionnaire-container {
        width: 95%;
        max-height: 95vh;
    }

    .questionnaire-content {
        padding: 70px 20px 30px 20px;
    }

    .questionnaire-question h2 {
        font-size: 20px;
    }

    .questionnaire-option label {
        font-size: 14px;
        padding: 14px 16px;
    }

    .score-circle {
        width: 120px;
        height: 120px;
    }

    .score-number {
        font-size: 36px;
    }

    .result-recommendation {
        padding: 20px;
    }
}
