#form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 2px; /* minor tweak to align better with inputs */
}

#form-check .form-check-input {
    margin-top: 0.35rem;
    transform: scale(1.2); /* Optional: Makes checkbox a bit larger */
}

@import url('https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css');

body {
    padding: 20px;
    background: #f5f5f5;
    font-family: Arial, sans-serif;
}

#email, #phone {
    height: 50px; /* adjust this to your liking */
}

/* Margin between form groups */
.form-group {
    margin-bottom: 1.3rem;  /* Adjust as necessary */
}


#loanForm {
    max-width: 500px;
    margin: auto;
    background: #ffffff;
    padding: 10px;
    border-radius: 10px;
}


#loanForm .form-group label {
    font-size: 1.2rem;
    font-weight: bold;
}

#loanForm .form-group input,
#loanForm .form-group button {
    font-size: 1.2rem;
    height: auto;
}

#loanForm .form-control {
    border-radius: 0;
    border: solid 1px #ccc;
}

#loanForm .btn {
    width: 100%;
    border-radius: 0;
    background-color: #007bff;
    border-color: #007bff;
    font-family: "Inter", sans-serif;
    font-size: 1.2em;
    padding: 10px 20px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

#loanForm .form-check-label {
    font-size: 0.9rem;
}

/* SLIDER STYLING STARTS */
.slider-container {
    position: relative;
}

.min-max {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #888;
    padding: 0 10px;
}

/* Slider handle and track styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #eeeeee;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 1px solid #007bff;
    margin-top: -15px;
    margin-bottom: -15px;
}

input[type=range]::-moz-range-thumb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: 1px solid #007bff;
}

#loan_result {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
}

input:invalid {
    border-color: red;
}

input:valid {
    border-color: green;
}

/* Error message styling */
.error-message {
    position: absolute;
    z-index: 9999;
    background-color: #f8d7da;
    color: #721c24;
    padding: 8px 16px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

.error-message.show {
    display: block;
}

.error-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/‌​img/bootstrap-icons.s‌​vg#exclamation-circl‌​e') center/contain no-repeat;
    margin-right: 5px;
    vertical-align: middle;
}

.is-invalid {
    border-color: #dc3545 !important;
}


.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 5px;
}

.card-body {
    padding: 40px;
}

#loading-indicator {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    text-align: center;
    padding-top: 20%;
}

#loading-indicator .spinner {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.was-validated .form-control:invalid {
    border-color: red;
    background-image: url('https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/‌​img/bootstrap-icons.s‌​vg#exclamation-circl‌​e');
    background-repeat: no-repeat;
    background-position: right;
}

.was-validated .form-control:valid {
    border-color: green;
    background-image: url('https://cdn.jsdelivr.net/npm/bootstrap@4.3.1/dist/‌​img/bootstrap-icons.s‌​vg#exclamation-circl‌​e');
    background-repeat: no-repeat;
    background-position: right;
}