/* Leadership Quiz Modal Styles */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.3s ease-in-out;
}

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

.modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    background: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 10;
}

.modal-close:hover {
    color: #333;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90e2, #357abd);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.quiz-step {
    animation: fadeIn 0.3s ease-in-out;
}

.quiz-step h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Playfair Display', serif;
}

.quiz-step h3 {
    font-size: 18px;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.4;
}

.quiz-step p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.welcome-copy {
    background: #f8fbff;
    border: 1px solid #d9e7f5;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
}

.welcome-copy p {
    margin: 0 0 10px;
    color: #3a4a58;
}

.welcome-copy ul {
    margin: 0;
    padding-left: 18px;
}

.welcome-copy li {
    margin-bottom: 8px;
    color: #3a4a58;
    line-height: 1.45;
}

.quiz-step input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.quiz-step input:focus {
    outline: none;
    border-color: #4a90e2;
}

.phone-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#user-country-code-input {
    flex: 0 0 170px;
    padding: 12px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: white;
}

#user-country-code-input:focus {
    outline: none;
    border-color: #4a90e2;
}

#user-mobile-input {
    margin-bottom: 0;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.question-number {
    font-size: 13px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
}

.question-progress {
    width: 100px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    overflow: hidden;
    margin-left: 10px;
}

.question-progress-fill {
    height: 100%;
    background: #4a90e2;
    transition: width 0.3s ease;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.option-button {
    padding: 15px 18px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    color: #333;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

.option-button:hover {
    background: #efefef;
    border-color: #bbb;
}

.option-button.selected {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.quiz-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.report-content {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    line-height: 1.6;
    color: #333;
    font-size: 15px;
    border-left: 4px solid #4a90e2;
}

#report-title {
    color: #4a90e2;
    margin-bottom: 15px;
}

.executive-report-summary {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #d9e7f5;
    border-radius: 10px;
}

.executive-report-summary p {
    margin: 0 0 8px;
    color: #2d3a45;
}

.executive-report-summary p:last-child {
    margin-bottom: 0;
}

.executive-report-section {
    margin-bottom: 18px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(55, 84, 120, 0.06);
}

.executive-report-section h3 {
    margin: 0 0 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a6f91;
    font-family: 'Inter', sans-serif;
}

.executive-report-section p {
    margin: 0 0 10px;
    color: #2f3b46;
}

.executive-report-section p:last-child {
    margin-bottom: 0;
}

.report-signoff {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #ddd;
}

.signature-image {
    max-width: 190px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 8px;
}

.signature-name {
    margin: 0;
    font-weight: 600;
    color: #2f3b46;
}

.signature-role {
    margin: 2px 0 0;
    color: #4a6f91;
    font-size: 14px;
}

.report-next-step {
    margin-top: 16px;
}

.consultation-message {
    margin-top: 16px;
}

.consultation-message p {
    margin: 0 0 10px;
    color: #2f3b46;
}

.consultation-message p:last-child {
    margin-bottom: 0;
}

.report-actions-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.whatsapp-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 600px) {
    .modal-content {
        padding: 25px;
    }
    
    .quiz-step h2 {
        font-size: 20px;
    }
    
    .quiz-step h3 {
        font-size: 16px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .question-progress {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .quiz-actions {
        flex-direction: column;
    }

    .report-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .report-actions-row .btn {
        width: 100%;
        justify-content: center;
    }

    .phone-input-row {
        flex-direction: column;
    }

    #user-country-code-input {
        flex: 1 1 auto;
    }
    
    .quiz-actions .btn {
        width: 100%;
    }
}
