/* Custom Modal Styles (not for Bootstrap modals) */
.modal:not(.fade) {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.modal:not(.fade)[open] {
    opacity: 1;
    visibility: visible;
}

.modal:not(.fade) .modal-content {
    background: white;
    padding: 0;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.modal:not(.fade)[open] .modal-content {
    transform: scale(1);
}

.modal:not(.fade) .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: 8px 8px 0 0;
}

.modal:not(.fade) .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
}

.modal:not(.fade) .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal:not(.fade) .modal-close:hover {
    color: #333;
    background-color: #f5f5f5;
}

.modal:not(.fade) .modal-body {
    padding: 1.5rem;
}

.document-section {
    margin-bottom: 2rem;
}

.document-section:last-child {
    margin-bottom: 0;
}

.document-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.document-section h4 {
    color: #555;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.document-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.document-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.document-section ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
}

.info-link {
    color: #2196F3;
    text-decoration: none;
    font-size: 0.9em;
    cursor: pointer;
}

.info-link:hover {
    text-decoration: underline;
}

.modal-actions {
    margin-top: 2rem;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1976D2;
}

/* Requirements section styles */
.requirements {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.requirements.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .modal:not(.fade) .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .modal:not(.fade) {
        padding: 0;
    }
    
    .modal:not(.fade) .modal-header {
        padding: 1rem;
    }
    
    .modal:not(.fade) .modal-body {
        padding: 1rem;
    }
    
    .modal:not(.fade) .document-section {
        margin-bottom: 1.5rem;
    }
}

/* Focus Management - only for custom modals */
.modal:not(.fade):focus,
.modal:not(.fade) .modal-content:focus,
.modal:not(.fade) .modal-close:focus,
.modal:not(.fade) .btn-primary:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* Note: body.modal-open for Bootstrap modals is handled by Bootstrap itself */ 