/* Terms and Conditions Section Styling - Matching Deposit/Withdrawal exactly */
.terms-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(27, 46, 75, 0.5);
    border-radius: 10px;
    border-left: 4px solid #009688;
}

.terms-section h5 {
    color: #009688;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.terms-section h5 i {
    margin-right: 8px;
}

.terms-section p {
    line-height: 1.6;
    color: #c1c3d1;
    margin-bottom: 0;
}

.terms-section ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.terms-section li {
    color: #c1c3d1;
    margin-bottom: 8px;
    line-height: 1.5;
}

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

/* Dark theme adjustments */
.dark .terms-section {
    background: rgba(27, 46, 75, 0.3);
}

.dark .terms-section h5 {
    color: #00d4aa;
}

.dark .terms-section p,
.dark .terms-section li {
    color: #e0e6ed;
}

/* Terms Modal Styling - Matching Deposit/Withdrawal exactly */
.terms-modal-content {
    background: linear-gradient(135deg, #0e1726 0%, #1b2e4b 100%);
    border: 2px solid #009688;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 9999;
}

/* Ensure modal dialog is above blurred content */
.modal-dialog {
    z-index: 10000;
}

/* Ensure modal backdrop doesn't blur the modal itself */
.modal-backdrop {
    z-index: 9998;
}

.terms-modal-header {
    background: linear-gradient(135deg, #009688 0%, #00695c 100%);
    border-bottom: 2px solid #004d40;
    border-radius: 15px 15px 0 0;
    padding: 20px 30px;
}

.terms-modal-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.terms-modal-title i {
    color: #ffffff;
    margin-right: 10px;
}

.terms-modal-header .close {
    color: #ffffff;
    opacity: 1;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.terms-modal-header .close:hover {
    color: #00d4aa;
    transform: scale(1.1);
}

.terms-modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    color: #ebedf2;
}

.terms-modal-footer {
    background: linear-gradient(135deg, #1b2e4b 0%, #0e1726 100%);
    border-top: 2px solid #004d40;
    border-radius: 0 0 15px 15px;
    padding: 20px 30px;
}

.terms-modal-footer .btn {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.terms-modal-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form check styling */
.terms-modal-body .form-check {
    margin-top: 25px;
    padding: 15px;
    background: rgba(0, 150, 136, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 150, 136, 0.2);
}

.terms-modal-body .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
}

.terms-modal-body .form-check-label {
    color: #c1c3d1;
    font-size: 1rem;
    font-weight: 500;
    margin-left: 10px;
    cursor: pointer;
}

.terms-modal-body .form-check-input:checked {
    background-color: #009688;
    border-color: #009688;
}

.terms-modal-body .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 136, 0.25);
}

/* Custom Scrollbar - Matching Deposit/Withdrawal exactly */
.terms-modal-body::-webkit-scrollbar {
    width: 8px;
}

.terms-modal-body::-webkit-scrollbar-track {
    background: rgba(27, 46, 75, 0.3);
    border-radius: 10px;
}

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

.terms-modal-body::-webkit-scrollbar-thumb:hover {
    background: #00695c;
}

/* Modal Backdrop Effects - Default styling */
.modal-backdrop.show {
    background-color: rgba(0, 0, 0, 0.5);
}
