/* Corporate Form Fields Polish */
#loanApplicationForm .form-label {
    font-size: 0.92rem;
    font-weight: 600 !important;
    color: #344054 !important;
    margin-bottom: 8px;
    display: inline-block;
}

#loanApplicationForm .form-control,
#loanApplicationForm .form-select {
    padding: 12px 16px !important; /* Generous internal padding */
    height: auto !important;
    font-size: 0.95rem !important;
    color: #1D2939;
    background-color: #FFFFFF !important;
    border: 1px solid #D0D5DD !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition: all 0.2s ease-in-out;
}

/* Fix input group seams for the Identity select & input combo */
#loanApplicationForm .input-group {
    border-radius: 8px;
}

#loanApplicationForm .input-group > .form-select {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-right: none !important;
}

#loanApplicationForm .input-group > .form-control {
    border-top-left-radius: 0px !important;
    border-bottom-left-radius: 0px !important;
}

/* Beautiful Focus States */
#loanApplicationForm .form-control:focus,
#loanApplicationForm .form-select:focus {
    border-color: #1EA0D3 !important;
    box-shadow: 0 0 0 4px rgba(30, 160, 211, 0.12) !important;
    outline: none;
}

/* Spacing out the core layout grids */
#loanApplicationForm .row.g-3 {
    --bs-row-y: 1.5rem !important; /* Adds healthy breathing room between vertical fields */
    --bs-row-x: 1.25rem !important;
}

#loanApplicationForm .mb-4 {
    margin-bottom: 2.25rem !important; /* Clear separating gaps between section 1, 2, and 3 */
}

#loanApplicationForm h5.border-bottom {
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
    letter-spacing: -0.1px;
}

/* Custom file upload field styling to match */
#loanApplicationForm input[type="file"]::file-selector-button {
    background-color: #F2F4F7;
    border: none;
    border-right: 1px solid #D0D5DD;
    margin: -12px -16px;
    padding: 12px 16px;
    margin-right: 16px;
    color: #344054;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#loanApplicationForm input[type="file"]::file-selector-button:hover {
    background-color: #EAECF0;
}



/

/* Badge styling */
.hero-badge-pill {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #EAECF0;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

/* Script Signature font handler */
.hero-script-tag {
    font-family: 'Permanent Marker', 'Brush Script MT', cursive; /* Handles cursive script accent cleanly */
    color: #F5B027; /* Gold tone matches your brand accent */
    font-size: 2.25rem;
    display: block;
    margin-bottom: -10px;
    transform: rotate(-3deg);
    transform-origin: left bottom;
    letter-spacing: 1px;
}

.hero-main-heading {
    font-size: clamp(2.5rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    letter-spacing: -1px;
}

.text-gradient-blue {
    color: #1EA0D3 !important;
    background: linear-gradient(135deg, #1EA0D3 0%, #54D4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 620px;
}

/* Buttons Theme Elements */
.btn-hero-primary {
    background-color: #F5B027;
    border: 2px solid #F5B027;
    color: #121420 !important;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.btn-hero-primary:hover {
    background-color: #E09E1B;
    border-color: #E09E1B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 176, 39, 0.25);
}

.btn-hero-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF !important;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.btn-hero-outline:hover {
    border-color: #FFFFFF;
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Floating Interactive Display Feature Container */
.hero-interactive-card {
    background: linear-gradient(145deg, rgba(23, 26, 45, 0.6) 0%, rgba(18, 20, 32, 0.8) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.hero-interactive-card:hover {
    transform: perspective(800px) rotateY(-3deg) rotateX(2deg) translateY(-4px);
}

.x-small {
    font-size: 0.75rem;
}

.z-index-2 {
    z-index: 2;
}


/* Compact Hero with Static Background Image & Overlay */
.loan-hero-section {
    position: relative;
    min-height: 60vh;
    padding: 50px 0;
    display: flex;
    align-items: center;
    z-index: 1;

    /* Static Background Image Setup */
    background-image: url('../images/hero/bg-2.jpg'); /* Adjust relative path to your homepage hero image */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* Use 'fixed' if you want a subtle parallax effect */
}

/* Homepage-style Dark Brand Overlay */
.loan-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Dark gradient tint to ensure full readability over high-contrast images */
    background: linear-gradient(135deg, rgba(18, 20, 32, 0.99) 0%, rgba(23, 26, 45, 0.55) 100%);
    z-index: 0;
}

/* Ensure contents stay above the background overlay */
.loan-hero-section .container {
    position: relative;
    z-index: 2;
}

