:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 100px 0;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.loan-type-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.loan-type-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 10px;
    position: relative;
}

.step.active {
    background-color: var(--primary-color);
    color: white;
}

.step.completed {
    background-color: var(--success-color);
    color: white;
}

.step-connector {
    width: 60px;
    height: 2px;
}

/* FORCE NO RED BORDERS - OVERRIDE ALL BOOTSTRAP */
.form-control,
.form-control.is-invalid,
.form-select,
.form-select.is-invalid,
select.form-control,
select.form-control.is-invalid {
    border-color: #ced4da !important;
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.form-control:focus,
.form-select:focus,
select.form-control:focus {
    border-color: #86b7fe !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
    background-image: none !important;
}
    background-color: #e9ecef;
}

.step-connector.completed {
    background-color: var(--success-color);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.form-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    text-align: center;
}

.form-body {
    padding: 30px;
}

.employment-fields {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.employment-fields.show {
    display: block;
}

.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.processing-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.approval-card {
    background: linear-gradient(135deg, var(--success-color), #0f5132);
    color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
}

.bonus-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.bonus-option {
    padding: 15px 20px;
    border: 2px solid white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

.bonus-option:hover,
.bonus-option.selected {
    background: white;
    color: var(--success-color);
}

.agent-contact {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.3s ease;
}

.contact-method:hover {
    background-color: #e9ecef;
    color: inherit;
    text-decoration: none;
}

.stats-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.review-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin: 15px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.review-rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.security-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.security-notice .fas {
    color: #856404;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .bonus-options {
        flex-direction: column;
        align-items: center;
    }
    
    .step-indicator {
        flex-wrap: wrap;
    }
    
    .step-connector {
        width: 30px;
    }
}

/* Custom Checkbox Styling */
.custom-consent-wrapper {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.custom-consent-wrapper:hover {
    border-color: #007bff;
    background: #ffffff;
}

.custom-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.custom-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #6c757d;
    border-radius: 4px;
    background: #ffffff;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.custom-checkbox-icon {
    font-size: 14px;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-checkbox-input:checked + .custom-checkbox-label .custom-checkbox-box {
    background: #28a745;
    border-color: #28a745;
    transform: scale(1.1);
}

.custom-checkbox-input:checked + .custom-checkbox-label .custom-checkbox-icon {
    opacity: 1;
}

.custom-checkbox-input:focus + .custom-checkbox-label .custom-checkbox-box {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    border-color: #007bff;
}

.consent-text {
    font-size: 16px;
    font-weight: 500;
    color: #343a40;
    line-height: 1.4;
    user-select: none;
}

.validation-error {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.custom-consent-wrapper.error {
    border-color: #dc3545;
    background: #fff5f5;
    animation: shake 0.3s ease-in-out;
}

/* Mobile optimized checkbox for better touch targets */
@media (max-width: 768px) {
    .custom-checkbox-box {
        width: 28px;
        height: 28px;
    }
    
    .custom-checkbox-icon {
        font-size: 16px;
    }
    
    .consent-text {
        font-size: 15px;
    }
    
    .custom-consent-wrapper {
        padding: 12px;
    }
}
