/* Radio Button - Green Filled Style */
.quote-radio {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #6c757d !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    background-color: #fff !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 auto;
    display: inline-block;
}

.quote-radio:checked {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.quote-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
}

.quote-radio:hover {
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.5);
}

/* Selected Row Styling */
#quoteTable tbody tr.selected {
    background-color: #d4edda !important;
    border-left: 4px solid #28a745 !important;
}

#quoteTable tbody tr.selected td {
    background-color: #d4edda !important;
}

#quoteTable td:first-child {
    text-align: center !important;
    vertical-align: middle !important;
    padding: 10px !important;
}

/* KYC Button Container - Centered */
#kycButtonContainer {
    margin-top: 20px;
    padding: 15px 0;
    text-align: center !important; /* Center align */
    background-color: #f8f9fa;
    border-top: 2px solid #dee2e6;
    width: 100%;
    display: flex;
    justify-content: center; /* Center the button */
    align-items: center;
}

/* KYC Button Styling */
#verifyKycBtn {
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
}

#verifyKycBtn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#verifyKycBtn:active {
    transform: translateY(0);
}

/* ========== NEW: KYC Verification Modal Styles ========== */

/* Customer Type Selection Cards */
.form-check.p-3 {
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check.p-3:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd !important;
}

.form-check-input:checked ~ .form-check-label {
    color: #0d6efd;
    font-weight: 600;
}

/* Aadhaar Container Animation */
#aadhaarContainer {
    transition: all 0.3s ease;
}

/* Input Validation Styles */
.form-control.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: #28a745 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* KYC Modal Alert Box */
#kycVerificationModal .alert-info {
    background-color: #e7f3ff;
    border-color: #b6d4fe;
    border-left: 4px solid #0d6efd;
}

/* Submit Button Styling */
#submitKycBtn {
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#submitKycBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#submitKycBtn:active {
    transform: translateY(0);
}

/* Customer Type Radio Buttons */
input[name="customerType"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

/* Form Labels */
#kycVerificationModal .form-label {
    margin-bottom: 8px;
    font-size: 14px;
}

#kycVerificationModal .form-label .text-danger {
    font-size: 16px;
}

/* Input Fields */
#kycVerificationModal .form-control {
    padding: 10px 12px;
    font-size: 15px;
}

#kycVerificationModal .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Small text under inputs */
#kycVerificationModal small.text-muted {
    font-size: 12px;
    color: #6c757d;
}

/* Modal Header */
#kycVerificationModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

#kycVerificationModal .modal-title {
    font-weight: 600;
    color: #212529;
}

/* Modal Footer */
#kycVerificationModal .modal-footer {
    background-color: #f8f9fa;
    border-top: 2px solid #dee2e6;
}
/* ========== Sticky Table Header - WORKING SOLUTION ========== */
.modal-body {
    padding: 0 !important;
    overflow: hidden;
}

.table-container {
    max-height: 70vh;
    overflow: auto;
    position: relative;
}

#quoteTable {
    margin-bottom: 0 !important;
}

/* THIS IS THE KEY - Apply sticky to TH, not THEAD */

#quoteTable thead th {
    position: sticky !important;
    top: 0 !important;
    background-color: #f8f9fa !important;
    z-index: 100 !important;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
    padding: 12px 8px !important;
    text-align: center;
    font-weight: 600;
}

/* First column (Select) specific width */

#quoteTable tbody td:first-child {
    width: 80px;
    min-width: 80px;
}
/* Ensure thead itself doesn't interfere */
#quoteTable thead {
    position: relative;
    z-index: 100;
}

/* Remove any conflicting styles */
#quoteTable thead tr {
    background-color: transparent;
}