/* /mca business funding page. Tokens come from lp-forms.css. */
.mca-page {
    padding: 120px 0 72px;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(63, 101, 119, .12), transparent 70%),
        var(--lp-bg);
}
.mca-shell {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--lp-line);
    box-shadow: var(--lp-card-shadow);
}

/* ---------- Pitch panel ---------- */
.mca-aside {
    position: relative;
    padding: 3.25rem 2.75rem;
    color: rgba(255, 255, 255, .78);
    background:
        radial-gradient(420px 300px at 0% 100%, rgba(23, 166, 127, .22), transparent 70%),
        radial-gradient(520px 360px at 100% 0%, rgba(63, 101, 119, .55), transparent 70%),
        var(--lp-slate);
    overflow: hidden;
}
.mca-aside::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 60px rgba(255, 255, 255, .02);
}
.mca-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .8rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
    color: #9fe3cd;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mca-title {
    margin: 1.25rem 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 3.1vw, 2.75rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.025em;
}
.mca-lead {
    margin-bottom: 2.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
}
.mca-steps {
    margin: 0 0 2.25rem;
    padding: 0;
    list-style: none;
}
.mca-steps li {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
}
.mca-steps li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 40px;
    bottom: 4px;
    border-left: 1.5px dashed rgba(255, 255, 255, .18);
}
.mca-step-num {
    flex: 0 0 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(23, 166, 127, .16);
    border: 1px solid rgba(23, 166, 127, .45);
    color: #9fe3cd;
    font-weight: 700;
    font-size: .95rem;
}
.mca-steps h3 {
    margin: .4rem 0 .25rem;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 600;
}
.mca-steps p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.55;
}
.mca-products {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.mca-products span {
    padding: .4rem .8rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .85);
    font-size: .8rem;
    font-weight: 500;
}

/* ---------- Form card ---------- */
.mca-card {
    display: flex;
    flex-direction: column;
    padding: 2.75rem 2.75rem 2rem;
}
#mcaForm {
    display: flex;
    flex: 1;
    flex-direction: column;
}
.mca-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.mca-card-title {
    margin: 0 0 .25rem;
    color: var(--lp-ink);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.02em;
}
.mca-card-sub {
    margin: 0;
    color: var(--lp-muted);
    font-size: .95rem;
}
.mca-step-pill {
    flex: none;
    padding: .35rem .75rem;
    border-radius: 99px;
    background: var(--lp-steel-soft);
    color: var(--lp-steel);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}
.mca-progress {
    height: 6px;
    margin: 1.25rem 0 1.75rem;
    border-radius: 99px;
    background: #e8edf2;
    overflow: hidden;
}
.mca-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lp-green), var(--lp-steel));
    transition: width .45s cubic-bezier(.2, .8, .2, 1);
}
.mca-step {
    animation: mcaIn .35s ease both;
}
@keyframes mcaIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.mca-field {
    min-width: 0;
    margin: 0 0 1.35rem;
    padding: 0;
    border: 0;
}
.mca-field legend,
.mca-label {
    display: block;
    float: none;
    width: auto;
    margin-bottom: .6rem;
    color: var(--lp-ink);
    font-size: .95rem;
    font-weight: 600;
}
.mca-hint {
    color: var(--lp-muted);
    font-weight: 400;
}
.mca-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
}

/* Chips */
.mca-chips {
    display: grid;
    gap: .6rem;
}
.mca-chips-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mca-chip {
    position: relative;
    margin: 0;
    cursor: pointer;
}
.mca-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.mca-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: .5rem .6rem;
    border: 1.5px solid var(--lp-line);
    border-radius: 12px;
    background: #fff;
    color: var(--lp-ink);
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mca-chip:hover span {
    border-color: var(--lp-steel);
    transform: translateY(-1px);
}
.mca-chip input:focus-visible + span {
    box-shadow: var(--lp-ring);
}
.mca-chip input:checked + span {
    border-color: var(--lp-steel);
    background: var(--lp-steel-soft);
    box-shadow: inset 0 0 0 1px var(--lp-steel);
}

/* Inputs */
.mca-input {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: .75rem 1rem;
    border: 1.5px solid var(--lp-line);
    border-radius: 12px;
    background-color: #fff;
    color: var(--lp-ink);
    font-size: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mca-input::placeholder {
    color: #a3abb4;
}
.mca-input:focus {
    outline: none;
    border-color: var(--lp-steel);
    box-shadow: var(--lp-ring);
}
.mca-select {
    appearance: none;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%233f6577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    cursor: pointer;
}
.mca-select:invalid,
.mca-select option[value=""] {
    color: #8a939d;
}
.mca-select option {
    color: var(--lp-ink);
}

/* Errors */
.mca-error {
    display: none;
    margin: .4rem 0 0;
    color: #c53030;
    font-size: .85rem;
    font-weight: 500;
}
.mca-field.is-invalid .mca-error {
    display: block;
}
.mca-field.is-invalid .mca-input,
.mca-field.is-invalid .mca-chip span {
    border-color: #e07a7a;
}
.mca-form-error {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-radius: 10px;
    background: #fff4f4;
    color: #b42318;
    font-size: .9rem;
}

/* Consent */
.mca-consent {
    margin: .25rem 0 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e8edf2;
    border-radius: 12px;
    background: #fafbfc;
    color: var(--lp-muted);
    font-size: .76rem;
    line-height: 1.6;
}
.mca-consent a {
    color: var(--lp-steel);
    font-weight: 600;
    text-decoration: underline !important;
}

/* Buttons */
.mca-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 12px;
    background: var(--lp-steel);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    box-shadow: 0 12px 26px -12px rgba(63, 101, 119, .9);
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mca-btn:hover {
    background: var(--lp-steel-dark);
    transform: translateY(-1px);
}
.mca-btn:disabled {
    cursor: progress;
    opacity: .85;
    transform: none;
}
.mca-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mcaSpin .7s linear infinite;
}
.mca-btn.is-loading .mca-spinner {
    display: inline-block;
}
.mca-btn.is-loading .mca-btn-label {
    display: none;
}
@keyframes mcaSpin {
    to { transform: rotate(360deg); }
}
/* Small Back link under the step's button */
.mca-back {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: .25rem;
    margin: .6rem auto 0;
    padding: 0 0 3px;
    border: 0;
    /* One line under the arrow and the word together */
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: none;
    color: var(--lp-muted);
    font-size: .85rem;
    font-weight: 500;
    line-height: 1;
}
.mca-back i {
    font-size: .8rem;
}
.mca-back:hover {
    color: var(--lp-ink);
}

.mca-card .lp-trust {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef1f4;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .mca-chips-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 991px) {
    .mca-page {
        padding: 96px 0 48px;
    }
    .mca-shell {
        grid-template-columns: minmax(0, 1fr);
    }
    /* Phones and tablets open straight on the form */
    .mca-aside {
        display: none;
    }
    .mca-card form {
        scroll-margin-top: 72px;
    }
    /* The shell clips only the pitch panel, which is hidden here; visible lets the button stick */
    .mca-shell {
        overflow: visible;
    }
    .mca-step > .mca-btn {
        position: sticky;
        bottom: 12px;
        z-index: 5;
    }
}
@media (max-width: 575px) {
    .mca-page {
        padding: 68px 0 32px;
    }
    .mca-page > .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .mca-shell {
        border-radius: 20px;
    }
    .mca-card {
        padding: 1.75rem 1.1rem 1.25rem;
    }
    .mca-card-title {
        font-size: 1.3rem;
    }
    .mca-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.mca-textarea {
    min-height: 96px;
    resize: vertical;
}

/* One-question steps */
.mca-chips-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.mca-question legend {
    margin-bottom: 1rem;
    font-size: 1.15rem;
}
.mca-question .mca-chip span {
    min-height: 60px;
}
.mca-btn[hidden] {
    display: none;
}

/* eConsent badge under the consent text */
.mca-econsent {
    display: block;
    width: auto;
    height: 34px;
    margin: .75rem auto 0;
}
