/**
 * Happen Custom Styles & Modern Enhancements
 */

:root {
    --primary-color: var(--brand-primary, #0e6e63);
    --primary-hover: #0a5a50;
    --secondary-color: #10b981;
    --dark-color: #0f172a;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* Header & Apply Button */
.custom-apply-btn {
    display: inline-block;
    background: var(--brand-primary, #0e6e63);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(14, 110, 99, 0.25);
    white-space: nowrap;
}

.custom-apply-btn:hover {
    background: #0a5a50;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 110, 99, 0.35);
    color: #ffffff !important;
}

.custom-apply-btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

/* Mobile Nav Drawer */
#mobile-nav-drawer {
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

#mobile-nav-drawer ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

#mobile-nav-drawer ul li a {
    display: block;
    padding: 12px 24px;
    color: #333333;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f7f7f7;
    transition: background 0.2s ease, color 0.2s ease;
}

#mobile-nav-drawer ul li a:hover,
#mobile-nav-drawer ul li.current-menu-item a {
    color: var(--brand-primary, #0e6e63);
    background: #eef7f5;
}

/* Modern Loan Application Card Container */
.loan-app-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    padding: 36px 40px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 640px) {
    .loan-app-card {
        padding: 24px 18px;
    }
}

/* Trust Header Bar */
.form-trust-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    font-size: 12.5px;
    color: #475569;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.trust-badge-item i {
    color: #10b981;
}

/* Multi-Step Progress Indicator */
.wizard-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    position: relative;
    padding: 0;
    list-style: none;
}

.wizard-progress-bar::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
}

.wizard-progress-line {
    position: absolute;
    top: 24px;
    left: 15%;
    height: 3px;
    background: var(--brand-primary, #0e6e63);
    z-index: 2;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.wizard-step-item {
    position: relative;
    z-index: 3;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border: 3px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.wizard-step-item.active .step-circle {
    background: var(--brand-primary, #0e6e63);
    color: #ffffff;
    border-color: var(--brand-primary, #0e6e63);
    box-shadow: 0 0 0 5px rgba(14, 110, 99, 0.2);
    transform: scale(1.05);
}

.wizard-step-item.completed .step-circle {
    background: #10b981;
    color: #ffffff;
    border-color: #10b981;
}

.step-label {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.wizard-step-item.active .step-label {
    color: var(--brand-primary, #0e6e63);
    font-weight: 700;
}

.wizard-step-item.completed .step-label {
    color: #10b981;
}

/* Step Container Transitions */
.form-step {
    display: none;
    animation: stepSlideIn 0.35s ease forwards;
}

.form-step.active-step {
    display: block;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Form Inputs */
.form-group-custom {
    margin-bottom: 20px;
    position: relative;
}

.form-label-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
}

.form-label-custom .required-star {
    color: #ef4444;
    margin-left: 3px;
}

.form-label-custom .input-hint {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 16px;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 2;
}

.input-icon-right:hover {
    color: var(--brand-primary, #0e6e63);
}

.form-control-custom {
    width: 100% !important;
    padding: 13px 16px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: #0f172a !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.input-with-icon .form-control-custom {
    padding-left: 44px !important;
}

.input-with-right-icon .form-control-custom {
    padding-right: 44px !important;
}

.form-control-custom:focus {
    border-color: var(--brand-primary, #0e6e63) !important;
    box-shadow: 0 0 0 4px rgba(14, 110, 99, 0.15) !important;
}

.form-control-custom.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fffbfa !important;
}

.field-error-msg {
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
    display: none;
    align-items: center;
    gap: 4px;
}

.field-error-msg.visible {
    display: flex;
}

/* Quick Bank Selection Chips */
.bank-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.bank-chip-btn {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bank-chip-btn:hover {
    border-color: var(--brand-primary, #0e6e63);
    background: #eef7f5;
    color: var(--brand-primary, #0e6e63);
}

.bank-chip-btn.selected {
    border-color: var(--brand-primary, #0e6e63);
    background: #eef7f5;
    color: var(--brand-primary, #0e6e63);
    box-shadow: 0 0 0 2px rgba(14, 110, 99, 0.2);
}

.bank-chip-btn i {
    font-size: 18px;
    color: var(--brand-primary, #0e6e63);
}

/* Step Navigation Buttons */
.step-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn-wizard-prev {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-wizard-prev:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.btn-wizard-next, .btn-wizard-submit {
    background: linear-gradient(135deg, var(--brand-primary, #0e6e63) 0%, #0a5a50 100%);
    color: #ffffff;
    border: none;
    padding: 13px 34px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(14, 110, 99, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-wizard-next:hover, .btn-wizard-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 110, 99, 0.45);
}

/* Bank Form Card */
.bank-auth-card {
    max-width: 680px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    padding: 40px;
    border: 1px solid #e2e8f0;
}

.bank-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.bank-auth-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.bank-auth-header p {
    color: #64748b;
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.btn-bank-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--brand-primary, #0e6e63) 0%, #0a5a50 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(14, 110, 99, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-bank-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 110, 99, 0.45);
}

/* Services Interactive Tabs */
.sidebar-link {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-link.active {
    background-color: var(--brand-primary, #0e6e63) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.apply-button {
    background: var(--brand-primary, #0e6e63);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
}

.apply-button:hover {
    background: #0a5a50;
}

/* Alert Banners */
.alert-banner {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Submission Loading Overlay */
.submit-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    z-index: 100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    text-align: center;
    padding: 20px;
}

.submit-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: var(--brand-primary, #0e6e63);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== Responsive Form Helpers ==================== */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .form-row-2col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.form-row-city-state-zip {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
}
@media (max-width: 640px) {
    .form-row-city-state-zip {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==================== Native Loan Calculator Widget ==================== */
.loan-calc-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}
.loan-calc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    padding: 32px;
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    font-family: 'DM Sans', 'Inter', sans-serif;
}
.calc-group {
    margin-bottom: 22px;
}
.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.calc-label {
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}
.calc-label i {
    color: #64748b;
    font-size: 14px;
}
.calc-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-primary, #0e6e63);
}
.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 6px;
    outline: none;
    transition: background 0.2s;
    cursor: pointer;
    margin: 6px 0;
}
.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-primary, #0e6e63);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(14, 110, 99, 0.4);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}
.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-primary, #0e6e63);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(14, 110, 99, 0.4);
    border: 2px solid #ffffff;
}
.calc-range-limits {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}
.calc-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 20px 0;
}
.calc-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.calc-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.calc-result-label {
    font-size: 14.5px;
    color: #475569;
}
.calc-result-val {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}
.calc-cta-btn {
    display: block;
    width: 100%;
    background: #0f172a;
    color: #ffffff !important;
    text-align: center;
    padding: 14px 20px;
    margin-top: 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    transition: all 0.25s ease;
    box-sizing: border-box;
}
.calc-cta-btn:hover {
    background: var(--brand-primary, #0e6e63);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 110, 99, 0.35);
}
.calc-disclaimer {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    margin-top: 14px;
    line-height: 1.5;
}

/* ==================== Native Features Grid ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.feature-card:hover .feature-icon {
    background: var(--brand-primary, #0e6e63);
    color: #ffffff;
    transform: scale(1.08);
}
.feature-content h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}
.feature-content p {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
}

/* ==================== Native Services Layout ==================== */
.services-card-layout {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    display: flex;
    overflow: hidden;
    margin: 20px 0;
}
@media (max-width: 900px) {
    .services-card-layout {
        flex-direction: column;
    }
}
.services-sidebar-nav {
    width: 280px;
    flex-shrink: 0;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    padding: 20px 16px;
}
@media (max-width: 900px) {
    .services-sidebar-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        box-sizing: border-box;
    }
}
.services-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
@media (max-width: 900px) {
    .services-sidebar-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
}
.services-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
.services-nav-link:hover {
    background: #edf2f7;
    color: #0f172a;
}
.services-nav-link.active {
    background: #0f172a;
    color: #ffffff !important;
}
.services-main-content {
    flex-grow: 1;
    padding: 36px 40px;
}
@media (max-width: 640px) {
    .services-main-content {
        padding: 24px 18px;
    }
}
.services-hero-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}
.services-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 28px 0;
}
@media (max-width: 640px) {
    .services-detail-grid {
        grid-template-columns: 1fr;
    }
}
.services-detail-col {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}
.services-detail-col h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.services-detail-col ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13.5px;
    color: #475569;
    line-height: 1.8;
}
.services-apply-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-primary, #0e6e63);
    color: #ffffff !important;
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(14, 110, 99, 0.25);
}
.services-apply-cta:hover {
    background: #0a5a50;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(14, 110, 99, 0.35);
}

/* Privacy Policy Tables Responsive Formatting */
.privacy-table {
    width: 100% !important;
    max-width: 900px !important;
    margin: 2em auto !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
}

@media (max-width: 768px) {
    .privacy-table {
        display: block !important;
        width: 100% !important;
        border-right: 1px solid #cccccc !important;
    }
    .privacy-row, .privacy-header, .privacy-row-full {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .privacy-table .col,
    .privacy-col-1-1,
    .privacy-col-1-3,
    .privacy-col-1-3--medium,
    .privacy-col-2-3--medium,
    .privacy-col-1-4--small,
    .privacy-col-3-4--small {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-left: none !important;
        border-right: none !important;
        padding: 12px 14px !important;
    }
}

/* ========================================================
   Modern Native Hero Slider (Self-Contained & Responsive)
   ======================================================== */
.hero-slider-container {
    position: relative;
    width: 100%;
    min-height: 520px;
    background: #0f172a;
    overflow: hidden;
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero-slider-container {
        min-height: 460px;
    }
}

.hero-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 520px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-slide {
        min-height: 460px;
    }
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    z-index: 2;
}

.hero-slide-inner {
    max-width: 820px;
    padding: 60px 48px;
    margin: 0 auto 0 8%;
    position: relative;
    z-index: 3;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .hero-slide-inner {
        padding: 40px 20px;
        margin: 0 auto;
        text-align: center;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(14, 110, 99, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #2e8b7f;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 20px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
}

.hero-subtitle {
    font-size: 17px;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 640px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.hero-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero-features li {
        justify-content: center;
        font-size: 14.5px;
    }
}

.hero-features li i {
    color: #10b981;
    font-size: 18px;
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-actions {
        justify-content: center;
    }
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-primary, #0e6e63);
    color: #ffffff !important;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(14, 110, 99, 0.45);
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background: #0a5a50;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 110, 99, 0.6);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Arrow Navigation */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: var(--brand-primary, #0e6e63);
    border-color: var(--brand-primary, #0e6e63);
    transform: translateY(-50%) scale(1.08);
}

.hero-arrow-prev { left: 24px; }
.hero-arrow-next { right: 24px; }

@media (max-width: 640px) {
    .hero-arrow { display: none; }
}

/* Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: var(--brand-primary, #0e6e63);
    width: 32px;
    border-radius: 12px;
}

/* Home Section Layout Refinements */
.elementor-element-eb404c0 > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 32px !important;
}

@media (max-width: 900px) {
    .elementor-element-eb404c0 > .e-con-inner {
        flex-direction: column !important;
    }
    .elementor-element-548f237,
    .elementor-element-676d508 {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.calc-img-wrapper,
.elementor-element-676d508 img {
    border-radius: 16px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08) !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Services Grid on Homepage */
.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .home-services-grid {
        grid-template-columns: 1fr;
    }
}

.home-service-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.home-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.home-service-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.home-service-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-service-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.home-service-card-body p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}

.home-service-card-body a {
    color: var(--brand-primary, #0e6e63);
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.home-service-card-body a:hover {
    gap: 10px;
    color: #0a5a50;
}

/* SVGs constraint */
.elementor-widget-icon-box .elementor-icon svg {
    max-width: 48px !important;
    max-height: 48px !important;
    width: 48px !important;
    height: 48px !important;
}

/* Reviews Logos Equalization */
.trust-review-logo {
    max-height: 52px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

/* Personal Loan Options & Icon Boxes Styling */
.elementor-widget-icon-box .elementor-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.elementor-element-3bff0e8 .e-con-child {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px 18px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.elementor-element-3bff0e8 .e-con-child:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.elementor-element-3bff0e8 .elementor-icon-box-title {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 8px !important;
}

.elementor-element-3bff0e8 .elementor-icon-box-description {
    font-size: 13.5px !important;
    color: #64748b !important;
    line-height: 1.6 !important;
}

/* ------------------------------------------------------------------
   Elementor rating widget (Trustpilot / Consumer Affairs badges)
   This build shipped without the widget's base styles, so every star
   SVG expanded to the full column width and stacked vertically.
   ------------------------------------------------------------------ */
.e-rating {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.e-rating-wrapper {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.e-rating .e-icon {
    display: inline-flex;
    position: relative;
    width: 20px;
    height: 20px;
    margin: 0 3px 0 0;
}

.e-rating .e-icon-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
}

.e-rating .e-icon-wrapper svg {
    width: 100%;
    height: 100%;
    display: block;
}

.e-rating .e-icon-marked svg {
    fill: #facc15;
}

/* Only the filled layer is needed: every badge here is rated 5/5. */
.e-rating .e-icon-unmarked {
    display: none;
}

/* Centre the logo, stars and review count inside each badge */
.elementor-element-af2d8f5 .elementor-widget-image,
.elementor-element-af2d8f5 .elementor-widget-rating,
.elementor-element-af2d8f5 .elementor-widget-text-editor {
    text-align: center;
}

.elementor-element-af2d8f5 .elementor-widget-text-editor p {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
}

/* Keep the two badges together instead of pushed to the far edges */
.elementor-element-af2d8f5 .elementor-element-6506bda {
    width: 100%;
    justify-content: center;
    gap: 80px;
}

.elementor-element-af2d8f5 .elementor-element-b262589,
.elementor-element-af2d8f5 .elementor-element-c00e4f4 {
    justify-content: center;
    align-items: center;
}

/* The brand JPEG has a white background: soften it on the dark footer */
.site-footer img.wp-image-2595 {
    border-radius: 6px;
}

/* ------------------------------------------------------------------
   Footer contrast: the footer sits on a dark navy background
   (#1a3446) but the theme leaves body copy at #192730, which is
   almost invisible. Lighten the text that lives on the dark band.
   ------------------------------------------------------------------ */
.site-footer {
    color: #cbd5e1;
}

.site-footer h2.widget-title,
.site-footer h3.widget-title {
    color: #ffffff;
}

.site-footer .widget_block p,
.site-footer .footer-widget-area p,
.site-footer .ast-builder-html-element p {
    color: #cbd5e1;
}

/* WordPress preset colour classes ship with !important; override them in the footer */
.site-footer p.has-text-color,
.site-footer .has-ast-global-color-1-color {
    color: #cbd5e1 !important;
}

.site-footer .menu-link {
    color: #8fc9bd;
}

.site-footer .menu-link:hover,
.site-footer .menu-link:focus {
    color: #ffffff;
}

/* Keep the map block visible while the embed loads */
.site-footer iframe {
    background: #e2e8f0;
    border-radius: 8px;
}

/* The footer keeps its 3-column grid on small screens, which squeezes the
   text to a couple of characters per line. Stack the columns instead. */
@media (max-width: 921px) {
    .site-footer .ast-builder-footer-grid-columns.ast-builder-grid-row,
    .site-footer .ast-builder-grid-row-3-rheavy .ast-builder-grid-row {
        grid-template-columns: 1fr;
        grid-row-gap: 32px;
    }

    .site-footer .site-footer-section {
        width: 100%;
    }

    .site-footer .ast-builder-grid-row {
        overflow-wrap: normal;
    }

    .site-footer iframe {
        height: 220px;
    }
}

/* ------------------------------------------------------------------
   Desktop header: the 8 navigation links do not fit the 944px nav
   slot at 18px, so "Privacy Policy" used to wrap onto a second row and
   the whole header grew to 124px. Scale the menu to fit one row.
   ------------------------------------------------------------------ */
@media (min-width: 1400px) {
    .main-header-menu .menu-link {
        font-size: 16px;
    }
}

@media (min-width: 1280px) and (max-width: 1399px) {
    .main-header-menu .menu-link {
        font-size: 15px;
    }

    /* Still reachable from the footer; one clean row beats a second row. */
    #ast-hf-menu-1 .menu-item-privacy {
        display: none;
    }
}

@media (min-width: 1200px) and (max-width: 1279px) {
    .main-header-menu .menu-link {
        font-size: 14px;
    }

    #ast-hf-menu-1 .menu-item-privacy {
        display: none;
    }
}

/* Small laptops: shrink the logo a little and drop the two links that are
   duplicated in the footer so the desktop menu still fits on one row. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .main-header-menu .menu-link {
        font-size: 13.5px;
    }

    #ast-hf-menu-1 .menu-item-privacy,
    #ast-hf-menu-1 .menu-item-blog {
        display: none;
    }

    #ast-desktop-header .custom-logo {
        max-height: 52px;
        width: auto;
    }
}

/* Below 1024px the theme's mobile header (logo + Apply + hamburger) takes over. */
@media (max-width: 1023px) {
    #ast-desktop-header {
        display: none !important;
    }

    #ast-mobile-header {
        display: block !important;
    }
}

/* Centre the "How it works" CTA below the three steps instead of leaving it
   inside the step row (where it overflowed the page to the right). */
.elementor-element-1595235 {
    flex-wrap: wrap;
}

.elementor-element-1595235 > .how-it-works-cta {
    flex: 0 0 100%;
    width: 100% !important;
    max-width: 100%;
}

/* ------------------------------------------------------------------
   Elementor tabs widget (About page "Mission" block)
   This build has no Elementor JS to activate the first tab, so the panel
   stayed `hidden` and rendered as an empty white strip. Show it.
   ------------------------------------------------------------------ */
.elementor-tabs .elementor-tab-content,
.elementor-tabs .elementor-tab-content[hidden] {
    display: block !important;
    background: transparent;
    padding: 0;
}

.elementor-tabs .elementor-tabs-content-wrapper {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    min-height: 0;
}

.elementor-tabs .elementor-tab-desktop-title {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--brand-primary, #0e6e63);
}

/* Without Elementor's CSS both title variants render, so "Mission"
   appeared twice. The desktop title doubles as the heading. */
.elementor-tabs .elementor-tab-mobile-title {
    display: none !important;
}

/* Awards gallery: Elementor would lay the 3 items out in a row. */
.elementor-image-gallery .gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
}

.elementor-image-gallery .gallery-item {
    margin: 0;
    flex: 0 0 auto;
    width: auto;
}

.elementor-image-gallery .gallery-item img {
    display: block;
    max-width: 100%;
    height: auto;
}

.elementor-tabs .elementor-tab-content p {
    margin: 16px 0 0;
    font-size: 17px;
    line-height: 1.7;
    color: #475569;
}



/* ------------------------------------------------------------------
   Apply page trust badges: images are block-level in this theme, so the
   two logos stacked and left-aligned instead of sitting side by side.
   ------------------------------------------------------------------ */
.apply-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 4px;
}

.apply-trust-logo {
    display: block;
    height: 40px;
    width: auto;
    max-height: 40px;
}

/* The Consumer Affairs asset is a JPEG with a white background: blend it
   into the light card instead of showing a white rectangle. */
.apply-trust-logo--photo {
    mix-blend-mode: multiply;
}

@media (max-width: 640px) {
    .apply-trust-badges {
        gap: 12px;
    }

    .apply-trust-logo {
        height: 32px;
        max-height: 32px;
    }
}
/* ------------------------------------------------------------------
   Footer map: show the address behind the embed, so a blocked or slow
   Google Maps frame never leaves an empty grey rectangle.
   ------------------------------------------------------------------ */
.footer-map {
    position: relative;
    margin: 0;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

.footer-map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    text-align: center;
    background: #eef3f8;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.footer-map-fallback i {
    font-size: 22px;
    color: var(--brand-primary, #0e6e63);
}

.footer-map iframe {
    position: relative;
    z-index: 1;
    display: block;
    background: transparent;
}

@media (max-width: 921px) {
    .footer-map {
        height: 220px;
    }
}
/* Honeypot field for the public forms: invisible to people, visible to bots. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}