/* ========================================
   Terms & Conditions Modal Styles
   ======================================== */

.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.terms-modal {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    height: 95vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.terms-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #38BDF8 0%, #7DD3FC 100%);
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.terms-modal-header h2 {
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0;
}

.close-terms-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-terms-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.terms-modal-body {
    padding: 2.5rem 4rem;
    overflow-y: auto;
    flex: 1;
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

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

.terms-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.terms-modal-body::-webkit-scrollbar-thumb {
    background: #38BDF8;
    border-radius: 10px;
}

.terms-modal-body::-webkit-scrollbar-thumb:hover {
    background: #0EA5E9;
}

.terms-section {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 750px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0EA5E9;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    text-align: center;
}

.section-icon {
    font-size: 1.8rem;
}

.section-content {
    background: #f1f5f9;
    padding: 1.75rem;
    border-radius: 12px;
    border: 2px solid #38BDF8;
    text-align: center;
}

.section-content p {
    margin-bottom: 1rem;
    color: #1E293B;
    line-height: 2;
    font-size: 1.1rem;
    font-weight: 500;
}

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

.highlight-box {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border: 2px solid #38BDF8;
    width: 100%;
    max-width: 750px;
    text-align: center;
}

.highlight-box h4 {
    color: #0EA5E9;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.highlight-box p {
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 2;
    font-size: 1.1rem;
    font-weight: 500;
}

.highlight-box p:last-child {
    margin-bottom: 0;
}

.warning-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 2.5rem;
    margin: 1.5rem 0;
    text-align: center;
    width: 100%;
    max-width: 750px;
}

.warning-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.warning-box p {
    color: #92400e;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 2;
    margin: 0;
}



.terms-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}

.terms-modal-footer .btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-cancel {
    background: #6b7280;
    color: white;
}

.btn-cancel:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.3);
}

.btn-agree {
    background: linear-gradient(135deg, #38BDF8 0%, #7DD3FC 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-agree:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .terms-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }

    .terms-modal-header {
        padding: 1.25rem;
        border-radius: 0;
    }

    .terms-modal-header h2 {
        font-size: 1.3rem;
    }

    .terms-modal-body {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .terms-modal-footer {
        flex-direction: column;
        padding: 1rem;
        border-radius: 0;
    }

    .terms-modal-footer .btn {
        width: 100%;
    }
}