/* ===================================
   Payment Modal Styles
   Enhanced Payment Modal Styles with Tabler Design
   =================================== */

.payment-method {
    border: 1px solid rgba(32, 107, 196, 0.15);
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
    background: #fff;
}

.payment-method:hover {
    border-color: #3d4f22;
    background-color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 107, 196, 0.1);
}

.payment-method.selected {
    border-color: #3d4f22 !important;
    background-color: #e7f3ff !important;
    box-shadow: 0 4px 12px rgba(32, 107, 196, 0.15) !important;
    transform: translateY(-1px);
}

.payment-method.selected .fw-semibold {
    color: #3d4f22 !important;
}

.payment-method.selected .text-muted {
    color: #6c757d !important;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.course-preview {
    background: linear-gradient(45deg, #3d4f22 0%, #4a5d2a 100%);
    border-radius: 12px;
    padding: 10px;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.course-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.price-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.security-badge {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    border: 1px solid #e9ecef;
}

.modal-content {
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
}

.btn-purchase {
    background: linear-gradient(45deg, #3d4f22 0%, #4a5d2a 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    color: white;
}

.btn-purchase:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-purchase:disabled {
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.payment-provider-icon {
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.guarantee-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.price-breakdown {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.modal-footer {
    background: #f8f9fa;
    border: none;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-input:focus {
    border-color: #3d4f22;
    box-shadow: 0 0 0 0.2rem rgba(61, 79, 34, 0.25);
}

.form-check-input:checked {
    background-color: #3d4f22;
    border-color: #3d4f22;
}

.form-check-label {
    line-height: 1.5;
    font-size: 0.9rem;
}

.form-check-label a {
    color: #3d4f22;
    font-weight: 500;
}

.form-check-label a:hover {
    text-decoration: underline !important;
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    border-radius: 0.5rem;
    outline: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(45deg, #3d4f22 0%, #4a5d2a 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    color: #fff;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.btn-close {
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    padding: 0;
    cursor: pointer;
    opacity: 0.5;
}

.btn-close:hover {
    opacity: 1;
}

.modal-open {
    overflow: hidden;
}
.btn-outline-secondary .icon {
    margin-right: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-preview {
        padding: 10px;
    }
    .price-tag {
        padding: 0.5rem 0.75rem;
    }
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}
