/* ============================================
   TERMS & CONDITIONS MODAL
   ============================================ */

.sgn-terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sgn-terms-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sgn-terms-modal {
    background: #fff;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sgn-terms-modal-overlay.active .sgn-terms-modal {
    transform: translateY(0) scale(1);
}

/* Header */
.sgn-terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid #e8e8e8;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
}

.sgn-terms-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: "Poppins", sans-serif;
    letter-spacing: 0.5px;
}

.sgn-terms-modal-close {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.sgn-terms-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: rotate(90deg);
}

/* Body */
.sgn-terms-modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.sgn-terms-modal-body ol {
    margin: 0;
    padding-left: 20px;
}

.sgn-terms-modal-body li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    font-family: "Poppins", sans-serif;
    margin-bottom: 12px;
    padding-left: 8px;
}

.sgn-terms-modal-body li::marker {
    color: #2e7d32;
    font-weight: 700;
}

/* Scrollbar styling */
.sgn-terms-modal-body::-webkit-scrollbar {
    width: 6px;
}

.sgn-terms-modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.sgn-terms-modal-body::-webkit-scrollbar-thumb {
    background: #4caf50;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 575.98px) {
    .sgn-terms-modal {
        width: 95%;
        max-height: 85vh;
    }

    .sgn-terms-modal-header {
        padding: 16px 20px;
    }

    .sgn-terms-modal-header h2 {
        font-size: 17px;
    }

    .sgn-terms-modal-body {
        padding: 20px;
    }

    .sgn-terms-modal-body li {
        font-size: 14px;
    }
}