/* Modal Header */
.modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.modal-icon-container {
    padding-right: 10.5px;
}

.modal-icon-overlay {
    background-color: rgba(3, 2, 19, 0.1);
    padding: 7px;
    border-radius: 8.75px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-overlay svg {
    width: 16px;
    height: 16px;
}

.modal-title-container h3 {
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 31.5px;
    color: #0a0a0a;
    margin: 0 0 4px 0;
}

.modal-title-container p {
    font-family: 'SF Pro Text', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 21px;
    color: #717182;
    margin: 0;
    margin-top: -2%;
}

/* Payment Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    max-width: 588px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Modal Content */
.modal-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    padding-top: 21.7px;
}

.dismiss-btn {
    background-color: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    padding: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 12.25px;
    color: #1f232c;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dismiss-btn:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.add-btn {
    background-color: #2e6b51;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 12.25px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-btn:hover {
    background-color: #245a43;
    transform: translateY(-1px);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .payment-modal {
        width: 95%;
        padding: 24px;
        margin: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .dismiss-btn,
    .add-btn {
        width: 100%;
    }
}

/* Terms and Conditions Modal Styles */
.terms-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.terms-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.terms-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

.terms-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.terms-modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #0a0a0a;
    margin: 0;
}

.terms-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.terms-modal-close:hover {
    background-color: #f3f4f6;
}

.terms-modal-close svg {
    width: 24px;
    height: 24px;
    stroke: #6b7280;
}

.terms-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.terms-content {
    font-family: 'Inter', sans-serif;
    color: #0A241C;
    line-height: 1.6;
}

.terms-content p {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 500;
    color: #0A241C;
}

.terms-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #1f2937;
    margin: 24px 0 12px 0;
}

.terms-content h3:first-of-type {
    margin-top: 0;
}

.terms-content ul {
    margin: 12px 0 16px 0;
    padding-left: 24px;
}

.terms-content ul li {
    margin: 8px 0;
    font-size: 15px;
}

.terms-content strong {
    color: #0A241C;
    font-weight: 700;
}

.terms-footer {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 24px;
}

.terms-footer em {
    color: #92400e;
    font-size: 14px;
}

.terms-modal-footer {
    padding: 20px 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.terms-modal-footer .btn-secondary {
    padding: 12px 24px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.terms-modal-footer .btn-secondary:hover {
    background: #e5e7eb;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .terms-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .terms-modal-header {
        padding: 20px;
    }
    
    .terms-modal-header h2 {
        font-size: 20px;
    }
    
    .terms-modal-body {
        padding: 20px;
    }
    
    .terms-content h3 {
        font-size: 16px;
    }
    
    .terms-content p,
    .terms-content ul li {
        font-size: 14px;
    }
    
    .terms-modal-footer {
        padding: 16px 20px;
    }
}

/* Custom Scrollbar for Terms Modal Body */
.terms-modal-body::-webkit-scrollbar {
    width: 8px;
}

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

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

.terms-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}
