.tooltip-range {
    position: absolute;
    background: #2c3e50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: -15px;
    opacity: 0.9;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
}

form div {
    margin-bottom: 10px; 
}    


form input[type="range"],
form input[type="file"],
form select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
}

form button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

form span {
    color: red;
    font-size: 12px;
}

.register .container {
    margin-top: 50px;
    margin-bottom: 50px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.register h2 {
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
}  

.register .card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
}

.register .card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.register .form-group {
    margin-bottom: 15px;
}

.register label {
    display: block;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.register input[type="text"],
.register input[type="email"],
.register input[type="password"],
.register input[type="date"],
.register select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #2c3e50;
}

.register input:focus,
.register select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.register input[type="file"] {
    padding: 10px;
    border: 2px dashed rgba(0, 123, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 123, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.register input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #007bff;
    border: none;
    color: white;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.register input[type="file"]::file-selector-button:hover {
    background-color: #0056b3;
}

@media only screen and (max-width: 1000px){
    .register .card {
        margin: 10px;
        padding: 10px;
    }
}

.register .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.register .form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background: #0066ff;
}

.progress .line {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #33cc33, #85e085);
    margin: 0;
    margin-top: 14px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.progress .iconify {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.progress .text-center:hover .iconify {
    transform: scale(1.1);
}

.register .btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(45deg, #ff9966, #ff6666);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.register .btn:hover {
    background: linear-gradient(45deg, #ff6666, #ff9966);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 102, 102, 0.3);
}

.register .btn:active {
    transform: translateY(0);
}

.register .error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    font-weight: 500;
}

.register .nav-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.register .nav-tabs a {
    padding: 10px 20px;
    margin: 0 5px;
    background: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
}

.register .nav-tabs a.active {
    background: #0056b3;
}

.amount {
    padding-top: 40px 40px 200px 40px;
}

.amount .card,
.affordability .card,
.upload .card,
.success .card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 30px;
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
    outline: none;
    transition: all 0.3s ease;
}

.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff9966;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.custom-range::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #ff6666;
}

.tooltip-range::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #2c3e50;
}

.fees p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fees span {
    color: #2090bd;
    font-weight: 600;
    font-size: 1.1rem;
}

#total-repayable {
    margin-top: 20px;
    padding: 15px;
    background: rgba(51, 204, 51, 0.1);
    border-radius: 8px;
    color: #2c3e50;
}

#total-repayable span {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2090bd;
}

.upload label {
    color: #2090bd;
}

.success strong {
    color: #333;
}

.success {
    color: #ff9966;
}

.error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table, th, td {
    border: 1px solid #ddd;
    color: #002b80;
}

th, td {
    padding: 0 8px;
    text-align: left;
    font-size: 12px;
}

th {
    background: #0099ff;
    color: #fff;
}

.status-approved {
    color: #2090bd;
    font-weight: bold;
}

.status-declined {
    color: red;
    font-weight: bold;
}

.status-pending {
    color: #ff9933;
    font-weight: bold;
}

.status-escalated {
    background: #b3ccff;
    color: #6699ff;
    font-weight: bold;
}

.status-fraud {
    background: #ff99c2;
    color: #ff0066;
    font-weight: bold;
}

.status-paid {
    background: #99c2ff;
    color: #0066ff;
    font-weight: bold;
}

.status-checked {
    background: #b3ecff;
    color: #33ccff;
    font-weight: bold;
}

.status-sent {
    background: #ddffcc;
    color: #44cc00;
    font-weight: bold;
}

.status-closed {
    background: #e6ccff;
    color: #8000ff;
    font-weight: bold;
}

.register select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #2c3e50;
    height: 45px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 1em;
    padding-right: 45px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.register select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.register select option {
    padding: 12px;
    font-size: 0.95rem;
    color: #2c3e50;
}

.range-slider-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.range-slider-section label {
    margin-bottom: 20px;
}

.applicant-profile input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #2c3e50;
    cursor: pointer;
}

.applicant-profile input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #007bff;
    border: none;
    color: white;
    cursor: pointer;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.applicant-profile input[type="file"]::file-selector-button:hover {
    background-color: #0056b3;
}

.applicant-profile input[type="file"]:hover {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.applicant-profile .form-group {
    margin-bottom: 20px;
}

.applicant-profile label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    border: 1px dotted #007bff;
    border-radius: 8px;
    background: rgba(0, 123, 255, 0.03);
    padding: 15px;
}

.register-file-input {
    width: 100%;
    color: #2c3e50;
    cursor: pointer;
}

.register-file-input::file-selector-button {
    padding: 8px 20px;
    margin-right: 15px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.register-file-input::file-selector-button:hover {
    background-color: #0056b3;
}

/* Style for the "No file chosen" text */
.register-file-input::after {
    content: attr(value);
    color: #6c757d;
}

/* Update card header styles */
.card-header h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.card-header small {
    opacity: 0.8;
}

/* Update button styles */
.btn-primary {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary i {
    font-size: 1.1rem;
}

/* Success step styles */
.success .card {
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 12px;
}

.success-icon {
    display: inline-block;
    margin-bottom: 1rem;
}

.section-title {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.info-item {
    margin-bottom: 1rem;
}

.info-item label {
    display: block;
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.info-item p {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

.info-item p.amount {
    color: #28a745;
    font-weight: 600;
}

.application-summary {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
}

.success .alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #e7f3ff;
    border-color: #b3d7ff;
    color: #004085;
}

.success .btn {
    padding: 12px 24px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.success .btn-track {
    background: linear-gradient(to right, #ff9966, #ff6666);
    color: white;
    border: none;
}

.success .btn-track:hover {
    background: linear-gradient(to right, #ff6666, #ff9966);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 102, 0.3);
}

.success .btn-done {
    background: linear-gradient(to right, #33cc33, #47d147);
    color: white;
    border: none;
}

.success .btn-done:hover {
    background: linear-gradient(to right, #47d147, #33cc33);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(51, 204, 51, 0.3);
}

/* Update the success card padding for mobile */
@media only screen and (max-width: 768px) {
    .success .card {
        padding: 1.5rem 1rem;
    }
    
    .application-summary {
        padding: 1rem 0.5rem;
    }
    
    .success .btn {
        width: 100%;
        margin: 8px 0;
        justify-content: center;
    }
}

/* Update button container spacing */
.success .button-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 2rem;
}

@media only screen and (max-width: 768px) {
    .success .button-container {
        flex-direction: column;
        padding: 0 1rem;
    }
}
