/* General body styling */
body {
    font-family: 'Inter', sans-serif;
    background-color: #FFFFFF;
    color: #333745;
}

/* --- HEADER-SPECIFIC STYLES --- */

/* Rotates the arrow icon on the "For Lenders" dropdown when it's open */
#main-header .dropdown-toggle.open > i {
    transform: rotate(180deg);
}


/* --- FOOTER-SPECIFIC STYLES --- */

/* Inverts SVG colors to white for the logo in the dark footer */
#main-footer .svg-to-white {
    filter: brightness(0) invert(1);
}

/* Hides the accordion content by default in the mobile footer */
#main-footer .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

/* Reveals the accordion content when the <details> element is open */
#main-footer details[open] .accordion-content {
    max-height: 500px; /* Adjust height as needed */
}

/* Hides the default marker/arrow for the accordion summary element */
#main-footer details summary::-webkit-details-marker {
    display: none;
}



/* =========== HOME PAGE ============ */





/* Home Page Hero Image Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out, filter 0.7s ease-in-out;
    opacity: 0; /* Hide by default */
    filter: blur(4px); /* Blur by default */
    transform: scale(0.7); /* Scale down by default */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.is-center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 20;
    filter: blur(0px);
}

.is-left {
    transform: translateX(-45%) scale(0.8);
    opacity: 0.5;
    z-index: 10;
    filter: blur(4px);
}

.is-right {
    transform: translateX(45%) scale(0.8);
    opacity: 0.5;
    z-index: 10;
    filter: blur(4px);
}

/* Utility to convert a colored SVG to white, used in the footer */
.svg-to-white {
    /*
        This filter combination is a reliable way to make any non-transparent
        part of an image white.
        1. brightness(0) makes the image entirely black.
        2. invert(1) flips the black to white.
    */
    filter: brightness(0) invert(1);
}


/* =========== LOAN CALCULATOR PAGE ============ */

/* --- Hero Section Background --- */
.hero-bg {
    background-image: linear-gradient(rgba(0, 99, 105, 0.85), rgba(0, 99, 105, 0.85)), url('img-calc-bg.png');
    background-size: cover;
    background-position: center;
}

/* --- Calculator Card Styling --- */
.calculator-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- Custom Range Slider Styles --- */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #e2e8f0; /* bg-gray-300 */
    border-radius: 5px;
    outline: none;
    opacity: 0.9;
    transition: opacity .2s;
}

input[type="range"]:hover {
    opacity: 1;
}

/* --- Slider Thumb (the draggable handle) --- */
/* Webkit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #006369; /* bridged-teal */
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Mozilla (Firefox) */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #006369; /* bridged-teal */
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid #FFFFFF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Active state for Loan Purpose Buttons --- */
.loan-purpose-btn.active {
    border-color: #006369; /* border-bridged-teal */
    background-color: #E6F6F5; /* A light teal */
    box-shadow: 0 0 0 2px rgba(0, 99, 105, 0.2); /* Ring effect */
}





/* --- ============================================== ---*/



/* Styles for loan-calculator.html body */
body.loan-calculator-page {
    background-color: #F4F7F5; /* Brand Guideline: Cloud */
}

/* Animation for elements fading in and moving up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Home Page Hero Image Carousel */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    perspective: 1000px;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out, filter 0.7s ease-in-out;
    opacity: 0; /* Hide by default */
    filter: blur(4px); /* Blur by default */
    transform: scale(0.7); /* Scale down by default */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.is-center {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 20;
    filter: blur(0px);
}

.is-left {
    transform: translateX(-45%) scale(0.8);
    opacity: 0.5;
    z-index: 10;
    filter: blur(4px);
}

.is-right {
    transform: translateX(45%) scale(0.8);
    opacity: 0.5;
    z-index: 10;
    filter: blur(4px);
}

/* Utility to convert a colored SVG to white, used in the footer */
.svg-to-white {
    /*
       This filter combination is a reliable way to make any non-transparent
       part of an image white.
       1. brightness(0) makes the image entirely black.
       2. invert(1) flips the black to white.
    */
    filter: brightness(0) invert(1);
}


/* Loan Calculator Page Specific Styles */
.hero-bg {
    background-image: linear-gradient(rgba(0, 99, 105, 0.85), rgba(0, 99, 105, 0.85)), url('img-calc-bg.png');
    background-size: cover;
    background-position: center;
}

.calculator-card {
    background-color: #FFFFFF; /* Brand Guideline: Canvas White */
}

/* Section for showing application choices, hidden by default */
.choice-section {
    transition: opacity 0.7s ease-in-out, max-height 0.7s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.choice-section.visible {
    max-height: 1000px; /* Adjust as needed */
    opacity: 1;
}

/* Custom styles for range slider thumbs */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #006369; /* Brand Guideline: Bridged Teal */
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #006369; /* Brand Guideline: Bridged Teal */
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Modal styles for the basic inquiry form */
.modal-overlay {
    transition: opacity 0.3s ease;
}

.modal-container {
    transition: transform 0.3s ease;
}



/* -------------------------------------------------------------------------- */
/* --- #5: MARKETPLACE PAGE-SPECIFIC STYLES --- */
/* -------------------------------------------------------------------------- */

/* --- Floating Label Effect for Form Fields --- */
.form-field {
    position: relative;
}

.form-field label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    transition: all 0.2s ease-out;
    pointer-events: none;
    color: #64748B; /* slate-blue */
    font-size: 0.875rem;
}

/* State when the input is focused or has content */
.form-field select:focus + label,
.form-field select:not(:placeholder-shown) + label,
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.65rem;
    color: #006369; /* bridged-teal */
    background-color: #FFFFFF; /* canvas-white */
    padding: 0 0.25rem;
}

/* --- Custom Select Dropdown Arrow --- */
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%2364748B' class='w-6 h-6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25em 1.25em;
}

/* --- Pulsing Animation for Chat Bubble --- */
@keyframes pulse-teal {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 99, 105, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 99, 105, 0);
    }
}

.animate-pulse-teal {
    animation: pulse-teal 2s infinite;
}

/* --- Chat Window Transition --- */
.chat-window {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* --- Hide Scrollbar Utility --- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}


/* -------------------------------------------------------------------------- */
/* --- #6: SECURE APPLICATION PAGE-SPECIFIC STYLES --- */
/* -------------------------------------------------------------------------- */

/*
   Note: The following body rule is specifically for the application page.
   It sets a different background color ('Cloud') and may override the
   general body style at the top of this file if this stylesheet is linked
   directly.
*/
body {
    font-family: 'Inter', sans-serif; /* Brand Guideline: Inter Font */
    background-color: #F4F7F5; /* Brand Guideline: Cloud */
}

/* Hides all form steps by default */
.form-step {
    display: none;
}

/* Shows only the currently active form step */
.form-step.active {
    display: block;
}

/* Adds a smooth transition for changes to the progress bar steps */
.progress-bar-step {
    transition: all 0.3s ease;
}

/* Styles for the info tooltip, hidden by default */
.tooltip {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Shows the tooltip when hovering over its parent element */
.has-tooltip:hover .tooltip {
    visibility: visible;
    opacity: 1;
}







/* -------------------------------------------------------------------------- */
/* --- #7: LOGIN PAGE-SPECIFIC STYLES --- */
/* -------------------------------------------------------------------------- */



        
.auth-form {
	display: none;
}
.auth-form.active {
        display: block;
}
.auth-tab.active {
        color: #006369; /* Brand Guideline: Bridged Teal */
        border-bottom-color: #006369;
}