/**
 * Assessment Modal Styles - Additional styles for modal display
 */

/* Modal Loading Overlay */
.modal-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-loading-content {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-loading-content .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #223246;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.modal-loading-content p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Assessment Modal Overlay */
.assessment-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 99999;  /* ← YE ALREADY THEEK HAI */
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.3s ease;
}

/* Modal Container */
.assessment-modal-container {
    background: white;
    border-radius: 12px;
    width: 95%;
    max-width: 950px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

/* Modal Header */
.assessment-modal-header {
    padding: 20px 30px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #223246, #2c4057);
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.assessment-modal-header h2 {
    color: white;
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* Modal Close Button */
.assessment-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.assessment-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.assessment-modal-close span {
    display: block;
    line-height: 1;
}

/* Modal Body */
.assessment-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: calc(90vh - 80px);
}

/* Modal Assessment Container Overrides */
.assessment-container-modal {
    border: none;
    box-shadow: none;
    margin: 0;
    border-radius: 0;
    max-width: 100%;
}

.assessment-container-modal .form-header {
    display: none; /* Hide duplicate header in modal */
}

.assessment-container-modal .form-content {
    padding: 30px;
    background: white;
}

/* Adjust form styling in modal */
.modal-assessment .form-step {
    border: none;
    box-shadow: none;
    padding: 0;
}

.modal-assessment .form-step h3 {
    border-bottom: 2px solid #223246;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

/* Download Progress Overlay */
.download-progress-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.download-progress-content {
    background: white;
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.download-icon {
    font-size: 60px;
    color: #223246;
    margin-bottom: 25px;
    animation: pulse 1.5s infinite;
}

.download-progress-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.progress-bar-download {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin: 25px 0;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill-download {
    height: 100%;
    background: linear-gradient(90deg, #223246, #2c4057);
    width: 0;
    animation: progressFill 2s ease-in-out forwards;
    border-radius: 4px;
}

.download-progress-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Download Notifications */
.download-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: relative;
}

.download-notification.success .notification-content {
    border-left: 5px solid #28a745;
}

.download-notification.error .notification-content {
    border-left: 5px solid #dc3545;
}

.notification-content i {
    font-size: 28px;
    flex-shrink: 0;
}

.download-notification.success i {
    color: #28a745;
}

.download-notification.error i {
    color: #dc3545;
}

.notification-text {
    flex: 1;
}

.notification-text strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-size: 16px;
}

.notification-text p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
}

.notification-close:hover {
    background: #f5f5f5;
    color: #333;
}

/* Modal Scrollbar */
.assessment-modal-body::-webkit-scrollbar {
    width: 8px;
}

.assessment-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.assessment-modal-body::-webkit-scrollbar-thumb {
    background: #223246;
    border-radius: 4px;
}

.assessment-modal-body::-webkit-scrollbar-thumb:hover {
    background: #1a2530;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .assessment-modal-container {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .assessment-modal-header {
        border-radius: 0;
        padding: 15px 20px;
    }
    
    .assessment-modal-header h2 {
        font-size: 20px;
    }
    
    .assessment-modal-close {
        width: 36px;
        height: 36px;
        font-size: 28px;
    }
    
    .assessment-modal-body {
        max-height: calc(100vh - 70px);
    }
    
    .assessment-container-modal .form-content {
        padding: 20px;
    }
    
    .download-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .notification-content {
        flex-direction: row;
        padding: 15px;
    }
    
    .download-progress-content {
        padding: 30px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .download-icon {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .assessment-modal-header {
        padding: 12px 15px;
    }
    
    .assessment-modal-header h2 {
        font-size: 18px;
    }
    
    .assessment-container-modal .form-content {
        padding: 15px;
    }
    
    .notification-content {
        gap: 10px;
        padding: 12px;
    }
    
    .notification-text strong {
        font-size: 14px;
    }
    
    .notification-text p {
        font-size: 12px;
    }
}

/* Form adjustments for modal */
.modal-assessment .button-group {
    padding-top: 20px;
    margin-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.modal-assessment .form-group {
    margin-bottom: 18px;
}

.modal-assessment .radio-group {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.modal-assessment .radio-group::-webkit-scrollbar {
    width: 6px;
}

.modal-assessment .radio-group::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Thank you page in modal */
.modal-assessment .thank-you {
    padding: 30px;
    text-align: center;
}

.modal-assessment .thank-you h3 {
    color: #223246;
    margin-bottom: 20px;
}

.modal-assessment .download-success-info {
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid #28a745;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.modal-assessment .download-success-info i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
}

.modal-assessment .download-success-info p {
    color: #333;
    font-size: 16px;
    margin: 0;
}

.modal-assessment .download-success-info a {
    color: #223246;
    text-decoration: underline;
    font-weight: 600;
}

.modal-assessment .download-success-info a:hover {
    color: #1a2530;
}
#assessmentMainForm_callbackRequestForm{
    padding: 30px;
}