/* Terms and Conditions Modal Styles */
.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.terms-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90%;
    width: 800px;
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.terms-modal-header {
    
    color: white;
    padding: 20px 30px;
    position: relative;
}

.terms-modal-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 2.125rem;
    line-height: 2.625rem;
    text-transform: uppercase;
    color: #3B5563;
}

.terms-modal-header .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    display: none; /* Hidden for unskippable modal */
}

.terms-modal-header .close-btn:hover {
    opacity: 1;
}

.terms-modal-content {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
}

.terms-modal-content h3 {
    color: #3B5563;
    margin-bottom: 15px;
    font-size: 18px;
}

.terms-modal-content p {
    margin-bottom: 15px;
    color: #333;
}

.terms-modal-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.terms-modal-content li {
    margin-bottom: 8px;
}

.terms-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.terms-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}

.terms-modal-btn.primary {
    background: #3B5563;
    color: white;
}

.terms-modal-btn.primary:hover {
    background: #3B5563;
    transform: translateY(-1px);
}

.terms-modal-btn.secondary {
    background: #6c757d;
    color: white;
    display: none; /* Hidden for unskippable modal */
}

.terms-modal-btn.secondary:hover {
    background: #5a6268;
}

.terms-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #e9ecef;
}

.terms-modal-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2c5aa0;
}

.terms-modal-checkbox label {
    font-weight: 500;
    color: #333;
    cursor: pointer;
    margin: 0;
    position: static !important;
}

/* Scrollbar styling */
.terms-modal-content::-webkit-scrollbar {
    width: 8px;
}

.terms-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.terms-modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.terms-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive design */
@media (max-width: 768px) {
    .terms-modal {
        width: 95%;
        max-height: 95%;
    }
    
    .terms-modal-header {
        padding: 15px 20px;
    }
    
    .terms-modal-header h2 {
        font-size: 20px;
    }
    
    .terms-modal-content {
        padding: 20px;
        max-height: 300px;
    }
    
    .terms-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .terms-modal-btn {
        width: 100%;
    }
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden;
} 

#acceptBtn:disabled,
#acceptBtn.disabled {
    background-color: #ccc !important;
    cursor: not-allowed;
    opacity: 0.7;
    border-color: #bbb !important;
}