:root {
    --primary-color: #6cbcc4;
    --primary-dark: #3c5e60;
    --text-color: #333333;
    --secondary-text: #38526d;
    --light-text: #ffffff;
    --background-light: #ffffff;
    --background-gray: rgba(200, 200, 200, 0.8);
    --transition-standard: all 0.3s ease;
}

body {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1 0 auto;
}

/* Header & Navigation */
.navbar {
    background-color: var(--background-light) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
}

.navbar-brand img {
    max-height: 75px;
}

/* Navigation link color updates */
.navbar-nav .nav-link {
    color: var(--text-color) !important; /* Black/dark color to start */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.071em;
    padding: 0 14px;
    position: relative;
    transition: var(--transition-standard);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important; /* Primary color on hover and active */
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -4px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    color: var(--text-color);
}

/* Full white background for intro section */
.intro-section {
    background-color: white;
    width: 100%;
    padding: 30px 0;
}

.intro-heading {
    color: var(--secondary-text);
    font-size: 1.55rem;
    margin: 0 auto; /* Changed from 30px auto to 0 auto */
    text-align: center;
    width: 100%;
    max-width: 800px;
    background-color: white !important;
}

.intro-heading h3 {
    text-align: center;
    margin: 0 auto;
    width: 100%; /* Ensure the heading takes full width of container */
    display: block; /* Ensure block display */
}

/* Add this to ensure proper horizontal alignment */
.intro-heading .row,
.intro-heading .col-md-10 {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Hero section */
.hero-section {
    background-color: var(--background-light);
    padding: 20px 0;
}

.slider-container-bg {
    background-color: rgba(200, 200, 200, 0.3);
    border-radius: 15px;
    padding: 10px;
    text-align: center;
}

.loan-amount-heading {
    color: var(--secondary-text);
    font-size: 1.75rem;
    margin-bottom: 20px;
}

/* Loan amount buttons */
.loan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.loan-button {
    display: block;
    background-color: var(--primary-color);
    color: white !important;
    font-weight: 700;
    text-decoration: none;
    padding: 13px 10px;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .2);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    text-align: center;
}

.loan-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.tagline {
    margin-top: 20px;
    color: var(--secondary-text);
    font-style: italic;
    font-weight: bold;
    font-size: 2rem; /* Increase size to match the steps heading */
    text-align: center;
}

/* Steps section */
.steps-section {
    padding: 40px 0;
}

.steps-heading, .about-us-heading {
    margin-bottom: 40px;
    color: var(--primary-color); /* Change from var(--secondary-text) to var(--primary-color) */
    font-weight: 700; /* Add some weight to match the visual prominence */
}

.about-us-benefits {
    color: var(--secondary-text); /* Change from var(--secondary-text) to var(--primary-color) */
    font-weight: 500; /* Add some weight to match the visual prominence */
}

.secondary-text-color {
    color: var(--secondary-text);
}

.step-column {
    opacity: 0;
    transform: translate(100px, 0);
    transition: all 0.75s ease-in-out;
    padding: 15px;
}

.step-column.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.step-column:nth-child(2) {
    transition-delay: 0.2s;
}

.step-column:nth-child(3) {
    transition-delay: 0.4s;
}

.step-column img {
    max-width: 150px; /* Reduce from 120px to match original */
    height: 150px; /* Add specific height to maintain aspect ratio */
    margin-bottom: 25px; /* Increase from 15px for better spacing */
    object-fit: contain; /* Ensure image maintains aspect ratio */
}

/* Add specific dimensions for each step icon to match original exactly */
.step-column:nth-child(1) img {
    width: 150px;
    height: 150px;
}

.step-column:nth-child(2) img {
    width: 150px;
    height: 150px;
}

.step-column:nth-child(3) img {
    width: 150px;
    height: 150px;
}

.step-heading {
    font-size: 1.2rem;
    color: var(--secondary-text);
    min-height: 80px;
}

/* CTA section */
.cta-section {
    background-color: var(--background-gray);
    padding: 60px 0;
}

.cta-heading {
    color: var(--secondary-text);
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-style: italic;
}

.cta-heading a {
    color: var(--secondary-text);
    text-decoration: none;
}

.cta-heading a:hover {
    color: var(--primary-color);
}

/* Update CTA button size and hover state */
.cta-button {
    background-color: var(--primary-color);
    color: white !important; /* Force white color in all states */
    border: none;
    font-weight: 700;
    font-size: 1.5rem; /* Increased from 1.3rem */
    padding: 15px 40px; /* Increased from 12px 30px */
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    transition: var(--transition-standard);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    color: white !important; /* Force white color on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
}

/* Additional fix for responsive sizes */
@media (max-width: 767.98px) {
    .cta-button {
        font-size: 1.3rem; /* Still larger than original, but better for mobile */
        padding: 12px 30px;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: auto;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.footer-nav .nav-item {
    margin: 5px 10px;
}

.footer-nav .nav-link {
    color: white;
    text-decoration: none;
    transition: var(--transition-standard);
}

.footer-nav .nav-link:hover {
    text-decoration: underline;
}

.footer-content {
    text-align: center;
    font-size: 0.9rem;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-disclaimer {
    text-align: left;
    font-size: 0.8rem;
    margin-top: 20px;
}

.footer-disclaimer a {
    color: white;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .navbar-brand img {
        max-height: 40px;
    }
    
    .step-column {
        margin-bottom: 30px;
    }
    
    .step-heading {
        min-height: auto;
    }
    
    .cta-heading {
        font-size: 1.5rem;
    }
    
    .cta-button {
        font-size: 1.3rem;
        padding: 12px 30px;
    }
    
    .footer-nav .nav-item {
        margin: 2px 5px;
    }
}

/* Button hover styles for Get Started page */
.btn:hover,
.back:hover,
.next:hover,
.btn-success:hover,
.cta-button:hover {
    background-color: #7a7a7a !important;
    border-color: #7a7a7a !important;
}

/* For loan buttons on homepage */
.loan-button:hover {
    background-color: #7a7a7a !important;
    border-color: #7a7a7a !important;
}


    /* Button focus styles */
    .btn-success:focus {
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.5) !important;
    }
    
    /* Back button styling */
    .back:focus {
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
    }
    

    #submit-button:focus {
        background-color: var(--primary-color) !important;
        filter: brightness(110%);
    }


/* Progress bar styling - updated size */
.custom-progress {
    height: 30px; /* Increased from 20px */
    background-color: #f5f5f5;
    border-radius: 15px; /* Increased from 10px */
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
    overflow: hidden;
    margin-bottom: 25px; /* Increased from 20px */
}

.custom-progress .progress-bar {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    line-height: 30px; /* Increased from 20px to match height */
    font-size: 16px; /* Increased font size */
    font-weight: 500; /* Added for better visibility */
}

.custom-progress .custom-progress-text {
    display: block;
    font-size: 14px; /* Increased from default */
}

/* Add these rules at the end of your CSS file */

/* Mobile-only fix for horizontal scrolling */
@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden;
        position: relative;
    }

    /* Ensure the footer disclaimer text wraps properly on mobile */
    .footer-disclaimer {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Make sure images don't cause horizontal overflow on mobile */
    img {
        max-width: 100%;
    }
}

/* Ensure navbar doesn't overflow */
@media (max-width: 991.98px) {
    .navbar-brand img {
        max-width: 100%;
    }
}

.custom-progress .custom-progress-text {
    display: block;
    font-size: 14px; /* Increased from default */
}

/* Add this at the end of your stylesv2.css file */
/* Form validation styling - clean implementation */

/* Reset browser defaults */
input:invalid,
select:invalid,
textarea:invalid {
  box-shadow: none;
  border-color: #ced4da;
}

/* Default form field styling */
.form-control,
.form-select,
input, 
select, 
textarea {
  border: 1px solid #ced4da;
  box-shadow: none;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Error state styling */
.error-field {
  border: 2px solid #dc3545 !important;
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Error focus state styling */
.error-field:focus {
  border: 2px solid #dc3545 !important;
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Feedback message styling */
.invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875em;
  margin-top: 0.25rem;
}

.error-field + .invalid-feedback {
  display: block;
}

/* Form validation styling */
.error-field, 
.error-field:focus {
    border: 2px solid #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
    outline: none !important;
}






