/* =========================================================
   MyWealthCare Elegant Multi-Step Loan Application Form
   Softer + Business Ready + Mobile Friendly
   File: assets/css/apply-wizard.css
========================================================= */

:root {
    --mfc-blue: #123f91;
    --mfc-blue-dark: #0b2b68;
    --mfc-orange: #f47b20;
    --mfc-gold: #f4b23f;

    --mfc-heading: #1f2f55;
    --mfc-ink: #344054;
    --mfc-muted: #6f7d95;

    --mfc-border: #edf1f7;
    --mfc-soft: #f8fbff;
    --mfc-white: #ffffff;
    --mfc-green: #039855;
    --mfc-red: #b42318;

    --mfc-shadow-sm: 0 8px 22px rgba(18, 63, 145, 0.055);
    --mfc-shadow-md: 0 14px 34px rgba(18, 63, 145, 0.08);
    --mfc-shadow-lg: 0 22px 54px rgba(18, 63, 145, 0.11);
}

.mfc-wizard-page {
    font-family: "Inter", Arial, sans-serif;
    background: #ffffff;
    color: var(--mfc-ink);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.65;
}

.mfc-wizard-page *,
.mfc-wizard-page *::before,
.mfc-wizard-page *::after {
    box-sizing: border-box;
}

.mfc-wizard-container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

/* -----------------------------
   Hero
----------------------------- */
.mfc-wizard-hero {
    position: relative;
    padding: 58px 0 52px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 15%, rgba(244, 123, 32, 0.075), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(18, 63, 145, 0.10), transparent 30%),
        linear-gradient(180deg, #fbfdff, #ffffff);
}

.mfc-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(18, 63, 145, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 63, 145, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent);
}

.mfc-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: center;
}

.mfc-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid var(--mfc-border);
    border-radius: 999px;
    background: var(--mfc-white);
    color: var(--mfc-blue);
    box-shadow: var(--mfc-shadow-sm);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.mfc-badge span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mfc-orange);
    box-shadow: 0 0 0 5px rgba(244, 123, 32, 0.10);
}

.mfc-hero-inner h1 {
    max-width: 660px;
    margin: 0 0 12px;
    color: var(--mfc-heading);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 760;
    line-height: 1.15;
    letter-spacing: -0.75px;
}

.mfc-hero-inner p {
    max-width: 660px;
    margin: 0;
    color: var(--mfc-muted);
    font-size: 14.5px;
    line-height: 1.75;
    font-weight: 400;
}

.mfc-hero-card {
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(145deg, #123f91, #0d2f73);
    color: #ffffff;
    box-shadow: var(--mfc-shadow-lg);
}

.mfc-hero-card h3 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 760;
}

.mfc-hero-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.105);
    margin-bottom: 10px;
}

.mfc-hero-row span {
    color: #dce7ff;
    font-size: 12px;
    font-weight: 650;
}

.mfc-hero-row strong {
    color: #ffe0c7;
    font-size: 12.5px;
    font-weight: 760;
    text-align: right;
}

/* -----------------------------
   Wizard Layout
----------------------------- */
.mfc-wizard-section {
    padding: 50px 0 66px;
    background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.mfc-wizard-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.mfc-wizard-top h2 {
    margin: 0 0 7px;
    color: var(--mfc-heading);
    font-size: clamp(24px, 2.75vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.45px;
    font-weight: 760;
}

.mfc-selected-bank {
    margin: 0;
    color: var(--mfc-muted);
    font-size: 13px;
}

.mfc-selected-bank strong {
    color: var(--mfc-blue);
    font-weight: 760;
}

.mfc-back-link {
    color: var(--mfc-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.mfc-step-label {
    margin-bottom: 12px;
    color: var(--mfc-heading);
    font-size: 13.5px;
    font-weight: 650;
}

.mfc-step-label strong {
    color: var(--mfc-blue);
    font-weight: 760;
}

.mfc-progress {
    width: 100%;
    height: 26px;
    margin-bottom: 28px;
    border-radius: 999px;
    background: #e8eef8;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(18, 63, 145, 0.08);
}

.mfc-progress-fill {
    width: 0;
    height: 100%;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mfc-blue), var(--mfc-orange));
    color: #ffffff;
    transition: width 0.28s ease;
    font-size: 12px;
    font-weight: 800;
}

.mfc-alert {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff5f5;
    border: 1px solid #ffc9c9;
    color: var(--mfc-red);
    font-size: 13px;
    font-weight: 750;
}

.mfc-alert.show {
    display: block;
}

.mfc-wizard-form {
    position: relative;
}

.mfc-step {
    display: none;
    min-height: 320px;
    padding: 28px 34px 88px;
    border: 1px solid var(--mfc-border);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--mfc-shadow-lg);
}

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

.mfc-step h2 {
    margin: 0 0 28px;
    text-align: center;
    color: var(--mfc-heading);
    font-size: clamp(24px, 2.75vw, 34px);
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: -0.45px;
}

/* -----------------------------
   Option Cards
----------------------------- */
.mfc-option-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.mfc-option-grid.two-options {
    grid-template-columns: repeat(2, minmax(170px, 220px));
    justify-content: center;
}

.mfc-option-card {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 132px;
    padding: 18px 14px;
    border: 1px solid var(--mfc-border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    box-shadow: var(--mfc-shadow-sm);
    cursor: pointer;
    text-align: center;
    color: var(--mfc-heading);
    transition: 0.22s ease;
}

.mfc-option-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--mfc-shadow-md);
}

.mfc-option-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mfc-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(145deg, #eff5ff, #ffffff);
    border: 1px solid #e4ecfb;
    color: var(--mfc-blue);
    font-size: 28px;
    line-height: 1;
    transition: 0.22s ease;
}

.mfc-option-card strong {
    position: relative;
    padding-left: 20px;
    color: var(--mfc-heading);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.35;
}

.mfc-option-card strong::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 13px;
    height: 13px;
    border: 1.5px solid #a5afc0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: #fff;
}

.mfc-option-card input:checked + .mfc-icon {
    background: linear-gradient(135deg, var(--mfc-blue), var(--mfc-blue-dark));
    color: #fff;
    transform: scale(1.035);
    box-shadow: 0 10px 22px rgba(18, 63, 145, 0.18);
}

.mfc-option-card:has(input:checked) {
    border-color: rgba(244, 123, 32, 0.38);
    box-shadow: 0 14px 34px rgba(244, 123, 32, 0.11);
}

.mfc-option-card input:checked ~ strong::before {
    border-color: var(--mfc-orange);
    background: radial-gradient(circle, var(--mfc-orange) 45%, #fff 48%);
}

/* City Options */
.city-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.city-card {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 13px 15px;
    text-align: left;
}

.city-card strong {
    padding-left: 20px;
}

.mfc-city-dot {
    display: none;
}

/* -----------------------------
   Inputs
----------------------------- */
.mfc-input-box {
    max-width: 540px;
    margin: 0 auto;
    display: grid;
    gap: 8px;
}

.mfc-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 840px;
    margin: 0 auto;
}

.mfc-input-box label {
    color: var(--mfc-heading);
    font-size: 12.5px;
    font-weight: 750;
}

.mfc-input-box input,
.mfc-input-box select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #dfe6f2;
    border-radius: 13px;
    outline: none;
    background: #ffffff;
    color: var(--mfc-ink);
    font: inherit;
    font-size: 13.5px;
    transition: 0.22s ease;
}

.mfc-input-box input:focus,
.mfc-input-box select:focus {
    border-color: var(--mfc-blue);
    box-shadow: 0 0 0 4px rgba(18, 63, 145, 0.07);
}

.mfc-input-box input.mfc-error-field {
    border-color: var(--mfc-red);
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.07);
}

.mfc-help {
    color: var(--mfc-muted);
    font-size: 12px;
    font-weight: 650;
}

.mfc-amount-words {
    min-height: 18px;
    color: var(--mfc-blue);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

.other-city-box {
    margin-top: 18px;
}

.coapplicant-fields {
    margin-top: 22px;
}

.mfc-consent {
    display: flex;
    gap: 10px;
    max-width: 840px;
    margin: 22px auto 0;
    padding: 14px;
    border: 1px solid var(--mfc-border);
    border-radius: 16px;
    background: #f8fbff;
    color: var(--mfc-muted);
    font-size: 12.5px;
    line-height: 1.6;
}

.mfc-consent input {
    margin-top: 4px;
    flex: 0 0 auto;
}

/* -----------------------------
   Actions
----------------------------- */
.mfc-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: -66px;
    padding: 0 28px 28px;
    position: relative;
    z-index: 5;
}

.mfc-btn {
    min-width: 116px;
    min-height: 40px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    transition: 0.22s ease;
}

.mfc-btn-primary,
.mfc-btn-submit {
    background: linear-gradient(135deg, var(--mfc-orange), #ff9a48);
    color: #fff;
    box-shadow: 0 10px 22px rgba(244, 123, 32, 0.20);
}

.mfc-btn-primary:hover,
.mfc-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(244, 123, 32, 0.26);
}

.mfc-btn-light {
    background: #eef4ff;
    color: var(--mfc-blue);
}

.mfc-btn-light:hover {
    background: #dfe9ff;
}

#submitBtn {
    display: none;
}

/* -----------------------------
   Messages
----------------------------- */
.mfc-success-box,
.mfc-error-box {
    padding: 22px;
    border-radius: 18px;
    margin: 22px 0;
}

.mfc-success-box {
    background: #f0fff4;
    border: 1px solid #b7ebc6;
}

.mfc-success-box h2 {
    margin: 0 0 7px;
    color: var(--mfc-green);
    font-size: 22px;
    font-weight: 760;
}

.mfc-success-box p {
    margin: 0 0 16px;
    color: #475467;
    font-size: 13.5px;
}

.mfc-success-box a {
    display: inline-flex;
    padding: 10px 16px;
    background: var(--mfc-blue);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.mfc-error-box {
    background: #fff5f5;
    border: 1px solid #ffc9c9;
    color: var(--mfc-red);
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 750;
}

/* -----------------------------
   Responsive
----------------------------- */
@media (max-width: 980px) {
    .mfc-hero-inner {
        grid-template-columns: 1fr;
    }

    .mfc-option-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mfc-input-grid {
        grid-template-columns: 1fr;
    }

    .mfc-step {
        min-height: auto;
        padding: 26px 22px 96px;
    }

    .mfc-form-actions {
        margin-top: -72px;
        padding: 0 22px 28px;
    }
}

@media (max-width: 620px) {
    .mfc-wizard-container {
        width: min(100% - 24px, 1160px);
    }

    .mfc-wizard-hero {
        padding: 42px 0;
    }

    .mfc-hero-inner h1 {
        font-size: 27px;
        line-height: 1.18;
        letter-spacing: -0.4px;
    }

    .mfc-hero-inner p {
        font-size: 13.5px;
    }

    .mfc-hero-card {
        padding: 18px;
        border-radius: 22px;
    }

    .mfc-hero-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mfc-hero-row strong {
        text-align: left;
    }

    .mfc-wizard-section {
        padding: 42px 0 54px;
    }

    .mfc-wizard-top {
        display: block;
    }

    .mfc-wizard-top h2 {
        font-size: 23px;
    }

    .mfc-back-link {
        display: inline-flex;
        margin-top: 10px;
    }

    .mfc-step-label {
        font-size: 12.8px;
    }

    .mfc-progress {
        height: 24px;
        margin-bottom: 22px;
    }

    .mfc-progress-fill {
        font-size: 11.5px;
        min-width: 48px;
    }

    .mfc-step {
        padding: 22px 14px 116px;
        border-radius: 22px;
    }

    .mfc-step h2 {
        font-size: 23px;
        margin-bottom: 22px;
    }

    .mfc-option-grid,
    .city-grid,
    .mfc-option-grid.two-options {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mfc-option-card {
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        padding: 13px;
        border-radius: 16px;
        text-align: left;
    }

    .mfc-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 24px;
        flex: 0 0 auto;
    }

    .mfc-option-card strong {
        font-size: 12.8px;
    }

    .mfc-input-box input,
    .mfc-input-box select {
        min-height: 46px;
        font-size: 13px;
    }

    .mfc-form-actions {
        margin-top: -100px;
        padding: 0 14px 22px;
        flex-direction: column;
    }

    .mfc-btn {
        width: 100%;
    }
}
