/* Loan Enquiry page – modern UI */
.loan-enquiry-section {
    background: linear-gradient(160deg, #f4f6f9 0%, #e9edf3 40%, #f8f9fb 100%);
    padding: 48px 0 64px;
}

.loan-enquiry-card.road-price {
    max-width: 920px;
    margin: -66px auto 60px;
    padding: 0 0 32px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Flat modern header – override legacy wave & global center align */
.loan-enquiry-card .form-head {
    margin: 0 !important;
    padding: 32px 32px 24px !important;
    border-radius: 0;
    position: relative;
    text-align: left;
}

.loan-enquiry-card .form-head:after {
    display: none !important;
}

.loan-enquiry-card .form-head h3 {
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.2px;
    margin: 0;
    padding: 0;
    line-height: 1.35;
    text-align: left;
    color: #fff;
}

.loan-enquiry-subtitle {
    font-size: 15px;
    opacity: 0.92;
    margin: 10px 0 0;
    padding: 0;
    font-weight: 400;
    line-height: 1.55;
    max-width: none;
    text-align: left;
    color: #fff;
}

/* Benefit chips */
.loan-benefit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 32px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.loan-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 6px 14px;
}

.loan-chip i {
    color: #16a34a;
    font-size: 11px;
}

/* Two-column layout */
.loan-enquiry-layout {
    margin: 0;
}

.loan-form-column {
    padding: 0;
}

.loan-benefits-side {
    background: linear-gradient(180deg, #fafbfc 0%, #f3f5f8 100%);
    border-left: 1px solid #eee;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    box-sizing: border-box;
}

.loan-benefits-side h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 20px;
    padding: 0 4px;
}

.loan-benefit-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0 4px;
}

.loan-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.45;
}

.loan-benefit-list li i {
    color: #d81416;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.loan-benefit-list li strong {
    display: block;
    color: #1a1a2e;
    font-size: 14px;
    margin-bottom: 2px;
}

.loan-social-proof {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 0 4px;
    text-align: center;
    box-sizing: border-box;
}

.loan-social-proof .stat-num {
    font-size: 28px;
    font-weight: 800;
    color: #d81416;
    line-height: 1;
}

.loan-social-proof .stat-label {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.loan-form-body {
    padding: 28px 32px 16px;
}

.loan-field {
    margin-bottom: 20px;
}

.loan-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.loan-input-wrap {
    position: relative;
}

.loan-input-wrap > i.fa {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
}

.loan-input-wrap .form-control {
    padding-left: 42px;
}

.loan-field .form-control {
    height: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.loan-field .form-control:focus {
    border-color: #d81416;
    box-shadow: 0 0 0 3px rgba(216, 20, 22, 0.1);
    outline: none;
}

.loan-field .field-error {
    display: block;
    font-size: 12px;
    color: #d81416;
    margin-top: 6px;
    min-height: 16px;
}

.loan-submit-wrap {
    margin-top: 8px;
    margin-bottom: 8px;
    position: relative;
}

.loan-submit-wrap .site-button {
    width: 100%;
    padding: 15px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    letter-spacing: 0.3px;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.loan-submit-wrap .site-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(216, 20, 22, 0.35);
}

.loan-submit-wrap .site-button:disabled,
.loan-submit-wrap .site-button.is-loading {
    opacity: 0.85;
    cursor: wait;
}

.loan-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loanSpin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

.loan-submit-wrap .site-button.is-loading .loan-btn-spinner {
    display: inline-block;
}

@keyframes loanSpin {
    to { transform: rotate(360deg); }
}

.loan-trust-note {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin-top: 16px;
    line-height: 1.6;
}

.loan-trust-note i.fa-lock {
    color: #16a34a;
    margin-right: 4px;
}

.loan-trust-note a {
    color: #d81416;
    text-decoration: underline;
}

.loan-field-hint {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
    color: #6b7280;
}

.loan-field-hint.is-success {
    color: #16a34a;
    font-weight: 600;
}

.loan-field-hint.is-error {
    color: #d81416;
}

.loan-client-error {
    display: block;
    font-size: 12px;
    color: #d81416;
    margin-top: 4px;
    min-height: 0;
}

.loan-field .form-control.is-valid {
    border-color: #16a34a;
}

.loan-field .form-control.is-invalid {
    border-color: #d81416;
    box-shadow: 0 0 0 3px rgba(216, 20, 22, 0.08);
}

.loan-contact-fallback {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

.loan-contact-fallback p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
}

.loan-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.loan-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: transform 0.15s, box-shadow 0.15s;
}

.loan-contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.loan-contact-btn.call-btn {
    background: #fff;
    color: #1a1a2e !important;
    border: 1px solid #e2e8f0;
}

.loan-contact-btn.whatsapp-btn {
    background: #25d366;
    color: #fff !important;
    border: 1px solid #25d366;
}

.loan-contact-btn i {
    font-size: 16px;
}

.loan-mobile-submit-spacer {
    display: none;
}

/* Thank you */
.loan-thanks {
    text-align: center;
    padding: 48px 32px 24px;
}

.loan-thanks-icon {
    width: 72px;
    height: 72px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: loanPopIn 0.4s ease;
}

.loan-thanks-icon i {
    font-size: 36px;
    color: #16a34a;
}

@keyframes loanPopIn {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.loan-thanks h3 {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 26px;
    margin-bottom: 8px;
}

.loan-thanks .thanks-msg {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 32px;
}

.loan-next-steps {
    text-align: left;
    background: #f9fafb;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.loan-next-steps h5 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loan-step {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.loan-step:last-child {
    margin-bottom: 0;
}

.loan-step-num {
    width: 28px;
    height: 28px;
    background: #d81416;
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loan-step-text {
    font-size: 14px;
    color: #4a5568;
    padding-top: 4px;
    line-height: 1.4;
}

.loan-thanks-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.loan-thanks-cta a {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.loan-thanks-cta a.btn-primary-cta {
    background: #d81416;
    color: #fff !important;
}

.loan-thanks-cta a.btn-primary-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(216, 20, 22, 0.35);
}

.loan-thanks-cta a.btn-secondary-cta {
    background: #fff;
    color: #374151 !important;
    border: 1px solid #e2e8f0;
}

/* Bank partners */
.loan-bank-partners {
    border-top: 1px solid #f0f0f0;
    padding: 28px 24px 16px;
    margin-top: 0;
}

.loan-bank-partners h4 {
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 20px;
}

.loan-bank-carousel .item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 72px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 12px 16px;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.loan-bank-carousel .item:hover {
    border-color: #d81416;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.loan-bank-carousel .item img {
    max-width: 100%;
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.25s;
}

.loan-bank-carousel .item:hover img {
    filter: grayscale(0%);
}

@media (max-width: 991px) {
    .loan-benefits-side {
        border-left: none;
        border-top: 1px solid #eee;
        padding: 28px 32px 32px;
    }

    .loan-benefit-chips {
        padding: 16px 24px 20px;
    }
}

/* ── Mobile UI/UX ── */
@media (max-width: 767px) {
    .loan-page-wrap {
        -webkit-text-size-adjust: 100%;
    }

    .loan-enquiry-section.m-t70 {
        margin-top: 32px !important;
        padding: 24px 0 48px;
    }

    .loan-enquiry-section .loan-enquiry-container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }

    .loan-enquiry-breadcrumb .breadcrumb-item.active {
        max-width: 52vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
        display: inline-block;
    }

    .loan-enquiry-card.road-price {
        max-width: 100%;
        width: 100%;
        margin: 0 auto 32px;
        border-radius: 12px;
    }

    .loan-enquiry-card .form-head {
        padding: 20px 16px 16px;
    }

    .loan-enquiry-card .form-head h3 {
        font-size: 19px;
        line-height: 1.35;
    }

    .loan-enquiry-subtitle {
        font-size: 14px;
        max-width: none;
    }

    /* Horizontally scrollable chips – no cramped wrap */
    .loan-benefit-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 8px;
        padding: 16px 16px 16px;
        margin: 0;
    }

    .loan-benefit-chips::-webkit-scrollbar {
        display: none;
    }

    .loan-chip {
        flex-shrink: 0;
        font-size: 11px;
        padding: 8px 12px;
        white-space: nowrap;
    }

    .loan-form-body {
        padding: 16px 16px 8px;
    }

    /* Full-width single column fields */
    .loan-enquiry-layout .col-md-6 {
        width: 100%;
        float: none;
    }

    .loan-field {
        margin-bottom: 16px;
    }

    .loan-field label {
        font-size: 14px;
        margin-bottom: 6px;
    }

    /* 16px prevents iOS auto-zoom on focus */
    .loan-field .form-control {
        height: 50px;
        font-size: 16px;
        border-radius: 10px;
    }

    .loan-input-wrap > i.fa {
        font-size: 16px;
        left: 16px;
    }

    .loan-input-wrap .form-control {
        padding-left: 44px;
    }

    /* Touch-friendly submit – fixed bottom bar */
    .loan-mobile-submit-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        margin: 0;
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .loan-mobile-submit-bar .site-button {
        min-height: 50px;
        font-size: 17px;
        border-radius: 10px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .loan-mobile-submit-spacer {
        display: block;
        height: 72px;
    }

    .loan-trust-note {
        font-size: 11px;
        padding: 0 4px;
        margin-top: 12px;
    }

    /* Full-width stacked contact buttons */
    .loan-contact-fallback {
        margin-top: 16px;
        padding-top: 16px;
    }

    .loan-contact-actions {
        flex-direction: column;
        gap: 10px;
    }

    .loan-contact-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 15px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .loan-benefits-side {
        padding: 24px 24px 28px;
    }

    .loan-benefits-side h4 {
        font-size: 15px;
        margin-bottom: 14px;
        padding: 0 8px;
    }

    .loan-benefit-list {
        padding: 0 8px;
    }

    .loan-social-proof {
        margin: 0 8px;
        padding: 16px 20px;
    }

    .loan-benefit-list li {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .loan-social-proof .stat-num {
        font-size: 24px;
    }

    .loan-bank-partners {
        padding: 20px 12px 12px;
    }

    .loan-bank-carousel .item {
        width: 110px;
        height: 58px;
        padding: 8px 10px;
    }

    .loan-bank-carousel .item img {
        max-height: 38px;
    }

    /* Thank you – full width CTAs */
    .loan-thanks {
        padding: 28px 16px 88px;
    }

    .loan-thanks h3 {
        font-size: 22px;
    }

    .loan-next-steps {
        padding: 16px;
        max-width: none;
    }

    .loan-thanks-cta {
        flex-direction: column;
    }

    .loan-thanks-cta a {
        width: 100%;
        text-align: center;
        min-height: 48px;
        line-height: 24px;
        padding: 12px 16px;
        box-sizing: border-box;
    }

    /* Hide fixed submit when thank-you panel is shown */
    .loan-page-wrap.loan-thanks-visible .loan-mobile-submit-bar,
    .loan-page-wrap.loan-thanks-visible .loan-mobile-submit-spacer {
        display: none;
    }
}

@media (max-width: 380px) {
    .loan-enquiry-card .form-head h3 {
        font-size: 17px;
    }

    .loan-chip {
        font-size: 10px;
        padding: 6px 10px;
    }

    .loan-contact-btn {
        font-size: 14px;
    }
}
