

/* <editor-fold desc="1. Tokens"> */

:root {
    /* Palette — Figma style guide → "Color Palette" */
    --green: #488D14;           /* Primary */
    --ink: #1A1C1C;             /* Dark — headings, footer bg */
    --purple: #C77DFF;          /* Purple Accent — decorative blobs, badges */
    --cream: #F6F6EE;           /* Background — alternating sections, soft cards */

    /* Palette — sampled from the style-guide/page renders (not in the chip row) */
    --green-dark: #3A7310;      /* derived: primary hover/active */
    --green-soft: #A5D87D;      /* step numbers on the page frames */
    --green-pale: #BDF393;      /* hero check-badge fill */
    --magenta: #C029AC;         /* accent link + list-item check icons */
    --ink-body: #272E42;        /* body / UI text */
    --ink-muted: #4A5565;       /* secondary copy on the contact page */
    --ink-nav: #292F2C;         /* header nav links */
    --grey: #7E7E7E;            /* muted text, placeholders, helper text */
    --grey-line: #E5E7EB;       /* accordion borders */
    --divider: #E2E2E2;         /* vertical rules between steps */
    --grey-border: #D1D5DB;     /* input + outline-button borders */
    --card-border: #F3F4F6;     /* white card border */
    --white: #FFFFFF;
    --page-bg: #FAFAFA;
    --footer-bg: var(--ink);
    --footer-line: #8A8B8B;     /* rates-table hairlines in the dark footer */
    --overlay: rgba(255, 255, 255, .5);
    --error: #C64242;           /* NOT in the style guide — carried over from sibling feeds */

    /* Type scale — style guide → "Typography" */
    --h1: 54px;                 /* Epilogue Black, 54–72 */
    --h2: 48px;                 /* Epilogue Black, 42–48 */
    --h3: 28px;                 /* Epilogue Bold,  28–34 */
    --h4: 22px;                 /* Epilogue Bold,  18–22 */
    --body-lg: 18px;            /* Epilogue Medium */
    --body: 16px;               /* Epilogue Medium */
    --caption: 14px;            /* Epilogue Regular */
    --eyebrow: 12px;            /* Epilogue Medium, uppercase, +1.2px tracking */

    /* Spacing scale — style guide → "Design Tokens Reference" */
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    /* Radius scale — style guide → "Design Tokens Reference" */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    /* Layout */
    --content-width: 1110px;
    --gutter: 39px;
    --header-h: 116px;
    --section-pad: 90px;

    --font: 'Epilogue', sans-serif;
    --shadow-btn: 0 1px 1.5px rgba(0, 0, 0, .1), 0 1px 1px rgba(0, 0, 0, .1);
    --shadow-header: 0 4px 7px rgba(0, 0, 0, .15);
    --shadow-card: 0 4px 30px rgba(0, 0, 0, .06);
    --transition: .2s ease;
}

/* Tablet — Figma frames are 755 wide */
@media (max-width: 1199px) {
    :root {
        --h1: 46px;
        --h2: 36px;
        --h3: 24px;
        --h4: 20px;
        --header-h: 72px;
        --section-pad: 60px;
    }
}

@media (max-width: 767px) {
    :root {
        --gutter: 16px;
    }
}

/* Mobile — Figma frames are 320 wide */
@media (max-width: 575px) {
    :root {
        --h1: 42px;
        --h2: 36px;
        --h3: 22px;
        --h4: 18px;
        --gutter: 16px;
        --section-pad: 48px;
    }
}

@media (min-width: 1921px) {
    body {
        zoom: calc(100vw / 1920px);
    }
}

/* </editor-fold> */

/* <editor-fold desc="2. Elements"> */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--page-bg);
    color: var(--ink-body);
    font-family: var(--font);
    font-size: var(--body);
    font-weight: 500;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), opacity var(--transition);
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

strong,
b {
    font-weight: 700;
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* </editor-fold> */

/* <editor-fold desc="3. Layout"> */

.container {
    width: 100%;
    max-width: calc(var(--content-width) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.container--sm {
    --content-width: 768px;
}

.container--lg {
    --content-width: 1280px;
}

.main {
    position: relative;
}

.section {
    position: relative;
    padding: var(--section-pad) 0;
}

.section--cream {
    background: var(--cream);
}

.section--dark {
    background: var(--ink);
    color: var(--white);
}

.section--tight {
    padding: calc(var(--section-pad) / 2) 0;
}

.section > .container {
    position: relative;
    z-index: 2;
}

.deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 1;
}

/* </editor-fold> */

/* <editor-fold desc="4. Typography"> */

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
    font-family: var(--font);
    color: var(--ink);
    margin: 0;
}

h1, .h1 {
    font-size: var(--h1);
    font-weight: 900;
    line-height: 1.05;
}

h2, .h2 {
    font-size: var(--h2);
    font-weight: 900;
    line-height: 1.15;
}

h3, .h3 {
    font-size: var(--h3);
    font-weight: 700;
    line-height: 1.2;
}

h4, .h4 {
    font-size: var(--h4);
    font-weight: 700;
    line-height: 1.4;
}

.section-title {
    font-size: var(--h2);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2.4px;
    margin: 0 0 var(--space-xl);
}

/* Some page frames set the section heading in caps (FAQ, WHY US), others don't
   (Cash in 3 simple steps) — opt in per section instead of globally. */
.section-title--upper {
    text-transform: uppercase;
}

.section-title--center {
    text-align: center;
}

.lead {
    font-size: var(--body-lg);
    line-height: 1.6;
}

p {
    margin: 0 0 var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

.caption {
    font-size: var(--caption);
    font-weight: 400;
    line-height: 1.5;
    color: var(--grey);
}

.eyebrow {
    font-size: var(--eyebrow);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.text-green { color: var(--green); }
.text-purple { color: var(--purple); }
.text-magenta { color: var(--magenta); }
.text-ink { color: var(--ink); }
.text-muted { color: var(--grey); }
.text-white { color: var(--white); }
.text-center { text-align: center; }

/* In-content links — style guide → "Accordion / Links" */
.link {
    font-size: var(--eyebrow);
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--magenta);
}

.link--default { color: var(--ink-body); }
.link--muted { color: var(--grey); }

.link:hover {
    opacity: .75;
}

.link-inline {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-inline:hover {
    color: var(--green-dark);
}

/* </editor-fold> */

/* <editor-fold desc="5. Buttons"> */
/* Style guide → "Buttons". Hover/active states are NOT specified in the design —
   the values below are derived and should be confirmed with the designer. */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    text-align: center;
    font-family: var(--font);
    font-size: var(--body);
    font-weight: 500;
    line-height: normal;
    padding: 14px 33px 11px;
    min-height: 47px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition),
                border-color var(--transition), opacity var(--transition);
}

.btn svg {
    flex-shrink: 0;
}

/* --- Variants --- */

.btn--primary {
    background: var(--green);
    color: var(--white);
    box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
    background: var(--green-dark);
}

.btn--secondary {
    background: var(--white);
    color: var(--ink-body);
    border: 2px solid var(--green);
}

.btn--secondary:hover {
    background: var(--green);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    color: var(--ink-body);
    border: 1px solid var(--grey-border);
}

.btn--outline:hover {
    border-color: var(--green);
    color: var(--green);
}

.btn--text {
    background: transparent;
    color: var(--ink-body);
    padding-left: 0;
    padding-right: 0;
}

.btn--text:hover {
    color: var(--green);
}

/* Header / hero CTA — uppercase pill, style guide → "Navigation" */
.btn--cta {
    background: var(--page-bg);
    color: var(--green);
    border: 2px solid var(--green);
    font-size: var(--body-lg);
    font-weight: 500;
    text-transform: uppercase;
    line-height: normal;
}

.btn--cta:hover {
    background: var(--green);
    color: var(--white);
}

.btn--primary.btn--cta {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
}

.btn--primary.btn--cta:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

/* --- Sizes --- */

.btn--sm {
    font-size: var(--caption);
    min-height: 41px;
    padding: 10px 24px;
}

.btn--lg {
    font-size: var(--body-lg);
    min-height: 63px;
    padding: 18px 40px;
}

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

/* --- States --- */

.btn[disabled],
.btn.is-disabled {
    opacity: .5;
    pointer-events: none;
}

@media (max-width: 1199px) {
    .btn {
        display: flex;
        max-width: 670px;
    }
}

@media (max-width: 575px) {
    .btn {
        padding: 13px 26px;
    }

    .btn--lg {
        min-height: 56px;
        padding: 16px 30px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="6. Header"> */

.site-header {
    position: relative;
    z-index: 30;
    background: var(--page-bg);
    padding: 34px 0 0;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding-bottom: 30px;
    border-bottom: 1px solid var(--grey-line);
}

/* Logo lockup — icon + wordmark (the wordmark is live text in the design) */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.logo__icon {
    width: 52px;
    height: 52px;
}

.logo__text {
    font-size: 27px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.8px;
    color: var(--ink-body);
    white-space: nowrap;
}

.logo__text span {
    color: var(--green);
}

.logo--white .logo__text {
    color: var(--white);
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 55px;
    margin-left: auto;
}

.site-header__nav-list {
    display: flex;
    align-items: center;
    gap: 42px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__nav-link {
    font-size: var(--body);
    font-weight: 500;
    color: var(--ink-nav);
    white-space: nowrap;
}

.site-header__nav-link:hover,
.site-header__nav-link.active {
    color: var(--green);
}

.site-header__cta {
    flex-shrink: 0;
    font-weight: 600;
}

.site-header__burger {
    display: none;
    width: 24px;
    height: 24px;
    padding: 5px 4px;
    flex-direction: column;
    justify-content: space-between;
}

.site-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.site-header__burger.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.site-header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.site-header__burger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-header__overlay {
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(26, 28, 28, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.site-header__overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1199px) {
    .site-header {
        padding: 0;
        background: var(--white);
        box-shadow: var(--shadow-header);
    }

    .site-header__inner {
        min-height: var(--header-h);
        padding-bottom: 0;
        border-bottom: 0;
    }

    .logo__icon {
        width: 36px;
        height: 36px;
    }

    .logo__text {
        font-size: 19px;
        letter-spacing: -.55px;
    }

    .site-header__burger {
        display: flex;
        position: relative;
        z-index: 31; /* keeps the close (X) state above the open menu panel */
    }

    .site-header__nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 30;
        width: 300px;
        max-width: 85vw;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
        padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
        background: var(--white);
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
    }

    .site-header__nav.is-open {
        transform: none;
    }

    .site-header__nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
        width: 100%;
    }

    .site-header__cta {
        width: 100%;
    }
}

/* </editor-fold> */

/* <editor-fold desc="7. Footer"> */

.site-footer {
    background: var(--footer-bg);
    color: var(--white);
    padding: 74px 0 58px;
    font-size: var(--caption);
    font-weight: 400;
    line-height: 1.45;
}

.site-footer__top {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.site-footer .logo__icon {
    width: 40px;
    height: 40px;
}

.site-footer .logo__text {
    font-size: 22px;
    letter-spacing: -.65px;
}

.site-footer__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer__nav a {
    font-size: var(--caption);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--page-bg);
}

.site-footer__nav a:hover,
.site-footer__nav a.active {
    color: var(--green-soft);
}

/* --- Material disclosure ---------------------------------------------------
   The markup is client-supplied and must not be edited: headings arrive as
   <strong class="title">, the rates table as div.table/div.tr/div.td, and the
   parser emits a phantom empty <p> on each side of that table because a <div>
   cannot live inside a <p>. Style around it. */

.site-footer__material {
    color: var(--page-bg);
    font-size: var(--caption);
    font-weight: 400;
    line-height: normal;
}

.site-footer__material h2,
.site-footer__material h3 {
    display: block;
    color: var(--white);
    font-size: 24px;
    font-weight: 800;
    line-height: normal;
    margin: 0 0 var(--space-md);
}

.site-footer__material p {
    margin: 0 0 var(--space-md);
}

.site-footer__material p:empty {
    display: none;
}

.site-footer__material strong {
    font-weight: 400;
}

/* used as a heading by the client copy — force its own line */
.site-footer__material strong.title {
    display: block;
    font-weight: 800;
}

.site-footer__material a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.site-footer__material a:hover {
    color: var(--green-soft);
}

/* rates table — re-declares everything the generic `.table` utility sets */
.site-footer__material .table {
    display: table;
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
    font-size: var(--caption);
    margin: var(--space-lg) 0;
}

.site-footer__material .tr {
    display: table-row;
}

.site-footer__material .td {
    display: table-cell;
    border: 1px solid var(--footer-line);
    padding: 10px 14px;
    font-weight: 400;
    text-align: left;
    vertical-align: top;
    color: var(--white);
}

.site-footer__material .tr:first-child .td {
    font-weight: 800;
}

.site-footer__copyright {
    margin: 28px 0 0;
    font-weight: 400;
    color: var(--white);
}

@media (max-width: 1199px) {
    .site-footer {
        padding: 40px 0 32px;
    }

    .site-footer__top {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xl);
        margin-bottom: var(--space-xl);
    }

    .site-footer__nav {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
    }

    /* the 5-column rates table cannot shrink to a phone width, so it becomes a
       single horizontally scrollable block. Rows are flex with a shared
       min-width so the columns stay aligned while the parent scrolls. */
    .site-footer__material .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-footer__material .tr {
        display: flex;
        min-width: 620px;
    }

    .site-footer__material .tr + .tr {
        margin-top: -1px;
    }

    .site-footer__material .td {
        display: block;
        flex: 1 0 124px;
        padding: 8px 10px;
    }

    .site-footer__material .td + .td {
        margin-left: -1px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="8. Cards"> */
/* Style guide → "Cards" */

.card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.card--cream {
    background: var(--cream);
}

.card--overlay {
    background: var(--overlay);
}

.card--shadow {
    box-shadow: var(--shadow-card);
}

.card__title {
    font-size: var(--h4);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 var(--space-xs);
}

.card__text {
    color: var(--grey);
    margin: 0;
}

/* Circle card — used by the loan-type tiles on the home page.
   Desktop 4-up, tablet 2×2, mobile stacked — sizes taken from the three frames. */
.card-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-sm);
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    aspect-ratio: 1;
    padding: var(--space-lg);
    border: 1px solid var(--green);
    border-radius: 50%;
    background: transparent;
    transition: background-color var(--transition), border-color var(--transition);
}

.card-circle:hover {
    background: var(--white);
}

.card-circle__title {
    font-size: var(--h4);
    font-weight: 700;
    color: var(--ink);
}

.card-circle__text {
    font-size: var(--caption);
    color: var(--grey);
}

@media (max-width: 1199px) {
    .card-circle {
        max-width: 205px;
    }
}

@media (max-width: 575px) {
    .card-circle {
        max-width: 145px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="9. Icon badges"> */
/* Style guide → "Icon Badges" */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
}

.badge svg {
    width: 20px;
    height: 20px;
}

.badge--sm {
    width: 20px;
    height: 20px;
}

.badge--sm svg {
    width: 12px;
    height: 12px;
}

.badge--lg {
    width: 55px;
    height: 55px;
}

.badge--lg svg {
    width: 26px;
    height: 26px;
}

.badge--white {
    background: transparent;
    color: var(--green);
}

.badge--purple {
    background: var(--purple);
}

.badge--magenta {
    background: var(--magenta);
}

.badge--pale {
    background: var(--green-pale);
    color: var(--green);
}

/* </editor-fold> */

/* <editor-fold desc="10. List items"> */
/* Style guide → "List Items" */

.list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.list__item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    column-gap: var(--space-sm);
}

.list__item .badge {
    grid-row: span 2;
    margin-top: 2px;
}

.list__title {
    font-size: var(--body);
    font-weight: 500;
    color: var(--ink-body);
}

.list__text {
    font-size: var(--caption);
    font-weight: 400;
    color: var(--grey);
}

/* Larger variant — the "Why Us" style list on the home page */
.list--lg {
    gap: var(--space-lg);
}

.list--lg .list__item {
    column-gap: var(--space-md);
    align-items: center;
}

.list--lg .list__title {
    font-size: var(--h4);
    font-weight: 700;
    color: var(--ink);
}

/* </editor-fold> */

/* <editor-fold desc="11. Step indicators"> */
/* Style guide → "Step Indicators" */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.step {
    padding: 0 var(--space-xl);
    text-align: left;
}

.step + .step {
    border-left: 1px solid var(--grey-line);
}

.step__num {
    font-size: 84px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--green-soft);
    margin-bottom: var(--space-lg);
}

.step__title {
    font-size: var(--h4);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 var(--space-xs);
}

.step__text {
    font-size: var(--caption);
    color: var(--grey);
    margin: 0;
}

@media (max-width: 1199px) {
    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .step {
        padding: 0;
    }

    .step + .step {
        border-left: 0;
    }

    .step__num {
        font-size: 56px;
        margin-bottom: var(--space-xs);
    }
}

/* </editor-fold> */

/* <editor-fold desc="12. Accordion (FAQ)"> */
/* Style guide → "Accordion" */

.accordion {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Page frames use a translucent white fill and a green hairline, not the
   style guide's solid white + #E5E7EB. Following the page frames. */
.accordion__item {
    background: var(--overlay);
    border: 1px solid var(--green-soft);
    border-radius: 48px;
    overflow: hidden;
    transition: border-radius var(--transition), border-color var(--transition);
}

.accordion__item:hover {
    border-color: var(--green);
}

/* NOTE: the style-guide frame draws the question Bold, every page frame draws it
   Regular. Following the page frames — they are what ships. */
.accordion__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    width: 100%;
    min-height: 67px;
    padding: var(--space-lg);
    text-align: left;
    font-size: var(--body-lg);
    font-weight: 600;
    line-height: 28px;
    color: var(--ink-body);
}

.accordion__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--ink-body);
    transition: transform var(--transition);
}

.accordion__item.is-open .accordion__icon {
    transform: rotate(180deg);
}

.accordion__a {
    display: none;
    padding: 0 var(--space-lg) var(--space-lg);
    font-size: var(--body);
    font-weight: 500;
    line-height: 32px;
    color: var(--grey);
}

.accordion__item.is-open .accordion__a {
    display: block;
}

/* </editor-fold> */

/* <editor-fold desc="13. Forms"> */
/* Style guide → "Form Elements".
   Validation comes from js/validate.js (jQuery Validation) — it toggles .error / .valid
   on the fields themselves; do not introduce parallel state classes. */

.form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field__label {
    font-size: var(--body);
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink-body);
}

.field__hint {
    font-size: var(--caption);
    font-weight: 400;
    color: var(--grey);
}

.field__error,
label.error {
    display: block;
    font-size: var(--caption);
    font-weight: 400;
    color: var(--error);
}

.input,
.select,
.textarea {
    width: 100%;
    font-family: var(--font);
    font-size: var(--body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink-body);
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-md);
    padding: 12px var(--space-md);
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
}

.input,
.select {
    height: 50px;
}

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

.input::placeholder,
.textarea::placeholder {
    color: var(--grey);
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--green);
}

.input.error,
.select.error,
.textarea.error {
    border-color: var(--error);
}

.input.valid,
.select.valid,
.textarea.valid {
    border-color: var(--green);
}

.select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5' stroke='%23272E42' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: 44px;
}

.input:disabled,
.select:disabled,
.textarea:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* </editor-fold> */

/* <editor-fold desc="14. Tables (rates / disclosure)"> */

.table,
.site-footer__material table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--caption);
    margin: var(--space-lg) 0;
}

.table th,
.table td,
.site-footer__material th,
.site-footer__material td {
    border: 1px solid currentColor;
    padding: 10px var(--space-sm);
    text-align: left;
    vertical-align: top;
}

.table th,
.site-footer__material th {
    font-weight: 700;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

/* </editor-fold> */

/* <editor-fold desc="15. Hero band (hero + loan types / intro)"> */
/* The cream shape behind the hero and the block under it is one full-bleed SVG
   anchored to the bottom of the band, exactly as it is drawn in Figma. */

.hero-band {
    position: relative;
    padding-bottom: 166px;
    overflow: hidden;
}

.hero-band--debt {
    padding-bottom: 25px;
}

.hero-band--hiw {
    padding-bottom: 117px;
}

.hero-band--contact {
    padding-bottom: 114px;
}

.hero-band__bg {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1920px;
    height: 913px;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.hero-band--hiw .hero-band__bg {
    height: 335px;
}

.hero-band--contact .hero-band__bg {
    width: 100%;
    right: 0;
    left: 0;
    height: auto;
    object-fit: cover;
    transform: scale(-1);
}

.hero {
    padding-top: 61px;
    position: relative;
    z-index: 1;
}

.hero__inner {
    display: flex;
    align-items: center;
    gap: 29px;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 33px;
    flex: 1 1 auto;
    max-width: 679px;
}

.hero__title {
    margin: 0;
    font-size: var(--h1);
    font-weight: 900;
    line-height: 1.05;
    text-transform: capitalize;
    color: var(--ink);
}

.hero__list {
    list-style: none;
    margin: 0;
    padding: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.hero__list-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--body-lg);
    font-weight: 500;
    line-height: 28px;
    color: var(--ink-body);
}

.hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green-pale);
    color: var(--green);
}

.hero__check svg {
    width: 10px;
    height: 8px;
}

.hero__cta {
    min-height: 0;
    padding: 24px 50px;
}

/* Media box: purple disc pinned to the bottom, cut-out figure overlapping it.
   Every hero frame is a variation of this — only the photo box changes, so the
   per-page numbers live in custom properties instead of duplicated rules. */
.hero__media {
    --hero-media-w: 440px;
    --hero-media-h: 515px;
    --hero-photo-w: 440px;
    --hero-photo-h: 515px;
    --hero-scale: 1;
    position: relative;
    flex-shrink: 0;
    width: calc(var(--hero-media-w) * var(--hero-scale));
    height: calc(var(--hero-media-h) * var(--hero-scale));
    transform: translateX(70px);
}

.hero__photo {
    position: absolute;
    left: 50%;
    top: 0;
    width: calc(var(--hero-photo-w) * var(--hero-scale));
    height: calc(var(--hero-photo-h) * var(--hero-scale));
    margin-left: calc(var(--hero-photo-w) * var(--hero-scale) / -2);
    object-fit: cover;
    object-position: top center;
}

.hero--debt .hero__media {
    --hero-media-w: 440px;
    --hero-media-h: 519px;
    --hero-photo-w: 440px;
    --hero-photo-h: 519px;
}

.hero--bad-credit .hero__media {
    --hero-media-w: 477px;
    --hero-media-h: 510px;
    --hero-photo-w: 477px;
    --hero-photo-h: 510px;
}

.hero--emergency .hero__media {
    --hero-media-w: 478px;
    --hero-media-h: 528px;
    --hero-photo-w: 478px;
    --hero-photo-h: 528px;
}

.hero--personal .hero__media {
    --hero-media-w: 463px;
    --hero-media-h: 499px;
    --hero-photo-w: 463px;
    --hero-photo-h: 499px;
}

/* --- Loan-type circles (home) --- */

.categories {
    padding-top: 73px;
    position: relative;
    z-index: 1;
}

.categories__grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 38px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1;
    padding: 32px;
    text-align: center;
    background: var(--overlay);
    border: 2px solid var(--green);
    border-radius: 50%;
    transition: background-color var(--transition), box-shadow var(--transition);
}

/* hover/active look is not specified in the design — derived */
.cat-card:hover,
.cat-card.is-active {
    background: var(--white);
}

.cat-card__icon {
    width: auto;
    height: 27px;
}

.cat-card__title {
    max-width: 179px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
}

.cat-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: -10px;
}

/* --- Centred intro block (loan-type pages) --- */

.intro {
    position: relative;
    z-index: 1;
    padding-top: 193px;
    text-align: center;
}

.intro__title {
    max-width: 550px;
    margin: 0 auto 14px;
    font-size: var(--h2);
    font-weight: 900;
    line-height: 56px;
    text-transform: capitalize;
    color: var(--ink);
}

.intro__text {
    max-width: 630px;
    margin: 0 auto;
    font-size: var(--body);
    font-weight: 500;
    color: var(--ink-body);
}

@media (max-width: 1199px) {
    .hero-band {
        padding-bottom: 48px;
    }

    .hero-band--debt {
        padding-bottom: 112px;
    }

    .hero-band--hiw {
        padding-bottom: 42px;
    }

    /* the swoosh is drawn for a 1920 canvas; on narrow frames it is stretched to
       cover the lower part of the band, keeping the curve at its top edge */
    .hero-band__bg {
        top: auto;
        bottom: 0;
        width: 1644px;
        height: 720px;
        max-width: 1644px;
    }

    .hero-band--debt .hero-band__bg {
        bottom: -60px;
    }
    .hero-band--hiw .hero-band__bg {
        display: none;
    }

    .hero-band--contact .hero-band__bg {
        height: 500px;
    }

    .hero {
        padding-top: 42px;
    }

    .hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .hero__copy {
        max-width: none;
    }

    .hero__cta {
        width: 100%;
        padding: 22px;
        margin: 0 auto;
    }

    .hero__media {
        --hero-scale: .82;
        align-self: center;
        margin-top: 29px;
        transform: none;
    }

    .categories {
        padding-top: 61px;
    }

    .categories__grid {
        gap: 14px;
    }

    .cat-card {
        max-width: 210px;
        gap: 14px;
        padding: 28px;
    }

    .cat-card__title {
        font-size: 20px;
    }

    .intro {
        padding-top: 64px;
    }

    .intro__title,
    .intro__text {
        max-width: 560px;
    }
}
@media (max-width: 960px) {
    .hero-band__bg {
        height: 972px;
        right: -90px;
    }

    .hero-band--debt .hero-band__bg {
        bottom: -290px;
    }

    .categories__grid {
        max-width: 540px;
    }
}

@media (max-width: 575px) {
    .hero {
        z-index: 2!important;
    }
    .hero-band {
        padding-bottom: 20px;
    }

    .hero-band__bg {
        display: none;
    }

    .hero-band--contact .hero-band__bg {
        display: block;
    }

    .hero__media {
        --hero-scale: .655;
    }

    .hero__list-item {
        font-size: var(--body);
        line-height: 24px;
    }
    
    .categories:before {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 0;
        right: 0;
        top: -300px;
        display: block;
        border-radius: 300px 300px 0 0;
        background: #f6f6ee;
        z-index: -1;
    }

    .categories__grid {
        grid-template-columns: 1fr;
    }

    .cat-card__title {
        font-size: 18px;
    }

    .intro__title {
        font-size: 32px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="16. Steps section ("Cash in 3 simple steps")"> */

.steps-section {
    background: var(--white);
    padding: 82px 0;
    text-align: center;
}

.steps-section__title {
    text-transform: capitalize;
    margin: 0 0 80px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
}

.step-item {
    min-height: 314px;
    padding: 48px;
}

.step-item + .step-item {
    border-left: 1px solid var(--divider);
}

.step-item__num {
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    color: var(--green-soft);
    margin-bottom: 32px;
}

.step-item__title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-transform: capitalize;
    color: var(--ink);
}

.steps-section__cta {
    margin-top: 8px;
}

.steps-section__cta .btn {
    padding: 24px 42px;
    min-height: 0;
}

@media (max-width: 1199px) {
    .steps-section {
        padding: 46px 0 75px;
    }

    .steps-section__title {
        margin-bottom: 60px;
    }

    .steps-grid {
        gap: 60px;
    }

    .step-item {
        min-height: 0;
        padding: 0;
    }

    .step-item__num {
        margin-bottom: 14px;
    }

    /* the tablet frame drops the vertical rules */
    .step-item + .step-item {
        border-left: 0;
    }

    .steps-section__cta {
        margin-top: 48px;
    }

    .steps-section__cta .btn {
        width: 100%;
        padding: 24px;
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .steps-section {
        padding: 61px 0 66px;
    }
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .steps-section__cta {
        margin-top: 60px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="17. FAQ section"> */

.faq-section {
    padding: 112px 0;
}

.faq-section__title {
    font-size: 42px;
    margin: 0 0 var(--space-lg);
}

/* Home: cream band, heading in caps, soft-green hairlines */
.faq-section--home {
    background: var(--cream);
}

/* FAQ page: page background, title case, primary-green hairlines.
   The cream wave sits behind the tail of the list. */
.faq-section--page .accordion__item {
    border-color: var(--green);
}

.faq-band {
    position: relative;
}

.faq-band__bg {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    transform: scale(-1);
}

.faq-band > .faq-section {
    position: relative;
    z-index: 1;
    padding: 78px 0 128px;
}
.faq-band .faq-section__title {
    margin: 0 0 71px;
}

.faq-section__link {
    margin-top: var(--space-lg);
    text-align: center;
}

@media (max-width: 1199px) {
    .faq-section {
        padding: 60px 0;
    }

    .faq-section__title {
        margin-bottom: 64px;
    }

    .faq-band > .faq-section {
        padding: 60px 0 225px;
    }

    .faq-band .faq-section__title {
        margin-bottom: 64px;
    }

    .faq-section__link {
        margin-top: 12px;
    }
}

@media (max-width: 575px) {
    .faq-section__title {
        margin-bottom: var(--space-md);
    }

    .faq-band > .faq-section {
        padding: 60px 0 131px;
    }
}



/* The page frames use their own link style here, not the style guide's
   uppercase magenta `.link`. */
.faq-section__link .link {
    font-size: var(--body-lg);
    font-weight: 700;
    line-height: 24px;
    letter-spacing: normal;
    text-transform: none;
    color: var(--green-soft);
}

/* </editor-fold> */

/* <editor-fold desc="18. Why Us"> */
/* The cream continues past the FAQ as a wave-bottomed block; the card straddles it. */

.why-band {
    position: relative;
    padding-bottom: 105px;
}

.why-band__bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.why {
    position: relative;
    z-index: 1;
    padding-top: 98px;
}

.why__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "copy media"
        "cta  media";
    align-items: center;
    column-gap: 22px;
    row-gap: 53px;
    padding: 32px 80px;
    background: rgba(255, 255, 255, .4);
    border-radius: 10px;
}

.why__copy {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    min-width: 0;
}

.why__cta-wrap {
    grid-area: cta;
}

.why__title {
    font-size: 48px;
    text-transform: uppercase;
    margin: 0;
}

.why__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.why__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.why__icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.why__label {
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
    color: var(--ink);
}

.why__cta {
    min-height: 0;
    padding: 24px 42px;
}

.why__media {
    grid-area: media;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
}

/* --- shared: two overlapping circular photos over a green disc --- */

.photo-duo {
    position: relative;
    flex-shrink: 0;
    width: var(--duo-w);
    height: var(--duo-h);
}

.photo-duo__dot {
    position: absolute;
    left: var(--duo-dot-x);
    top: var(--duo-dot-y);
    width: var(--duo-dot-w);
    height: var(--duo-dot-h);
    border-radius: 50%;
    background: var(--duo-dot-color);
}

.photo-duo__img {
    position: absolute;
    width: var(--duo-photo-w);
    height: var(--duo-photo-h);
    object-fit: cover;
    border-radius: 300px;
}

.photo-duo__img--1 {
    left: 0;
    top: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
}

.photo-duo__img--2 {
    bottom: 0;
    right: 0;
    box-shadow: 0 4px 6px -4px rgba(0, 0, 0, .1);
}

.photo-duo--why {
    --duo-photo-w: 236px;
    --duo-photo-h: 300px;
    --duo-x2: 259px;
    --duo-y2: 189px;
    --duo-w: 464px;
    --duo-h: 489px;
    --duo-dot-w: 165px;
    --duo-dot-h: 165px;
    --duo-dot-x: 123px;
    --duo-dot-y: 228px;
    --duo-dot-color: var(--green-soft);
}

.photo-duo--hiw {
    --duo-photo-w: 300px;
    --duo-photo-h: 300px;
    --duo-x2: 266px;
    --duo-y2: 189px;
    --duo-w: 566px;
    --duo-h: 489px;
    --duo-dot-w: 202px;
    --duo-dot-h: 202px;
    --duo-dot-x: 150px;
    --duo-dot-y: 228px;
    --duo-dot-color: var(--green);
}

@media (max-width: 1199px) {
    .why-band {
        padding-bottom: 174px;
    }

    /* clears the cream wave: the tablet/mobile frames start Why Us on the
       page background, well below where the cream ends */
    .why {
        padding-top: 171px;
    }

    /* the tablet/mobile frames drop the card: the block sits straight on the page */
    .why__card {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "copy media"
            "cta  cta";
        align-items: flex-start;
        column-gap: 16px;
        row-gap: 32px;
        padding: 0;
        background: none;
        border-radius: 0;
    }

    .why__icon {
        width: 42px;
        height: 42px;
    }

    .why__label {
        font-size: 18px;
        line-height: 28px;
    }

    .why__item {
        gap: 8px;
    }

    .why__cta {
        width: 100%;
        padding: 24px;
    }

    .why-band__bg {
        display: none;
    }

    .why__cta-wrap .btn {
        margin: 0 auto;
    }

    .photo-duo--hiw {
        --duo-photo-w: 155px;
        --duo-photo-h: 155px;
        --duo-x2: 204px;
        --duo-y2: 145px;
        --duo-w: 320px;
        --duo-h: 252px;
        --duo-dot-w: 126px;
        --duo-dot-h: 104px;
        --duo-dot-x: 93px;
        --duo-dot-y: 118px;
    }
    .photo-duo--hiw .photo-duo__img {
        border-radius: 155px 52px 52px 155px;
    }
}

@media (max-width: 940px) {
    .photo-duo--why {
        margin-top: 70px;
        --duo-photo-w: 174px;
        --duo-photo-h: 213px;
        --duo-x2: 190px;
        --duo-y2: 140px;
        --duo-w: 328px;
        --duo-h: 347px;
        --duo-dot-w: 117px;
        --duo-dot-h: 143px;
        --duo-dot-x: 87px;
        --duo-dot-y: 162px;
        --duo-dot-color: var(--green);
    }
}

@media (max-width: 575px) {
    .why {
        padding-top: 94px;
    }
    .why-band {
        padding-bottom: 132px;
    }
    /* mobile stacks the photos under the button */
    .why__card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "cta"
            "media";
        row-gap: 32px;
    }

    .why__media {
        justify-content: center;
    }

    .why__list {
        gap: 24px;
    }

    .why__label {
        font-size: var(--body-lg);
    }

    .photo-duo--why {
        margin-top: 62px;
    }

    .photo-duo--why,
    .photo-duo--hiw {
        --duo-photo-w: 157px;
        --duo-photo-h: 213px;
        --duo-x2: 128px;
        --duo-y2: 118px;
        --duo-w: 296px;
        --duo-h: 347px;
        --duo-dot-w: 106px;
        --duo-dot-h: 144px;
        --duo-dot-x: 78px;
        --duo-dot-y: 162px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="19. How It Works"> */

.hiw {
    position: relative;
    padding: 63px 0;
    z-index: 1;
}

.hiw__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 51px;
}

.hiw__copy {
    flex: 0 0 537px;
    max-width: 537px;
}

.hiw__title {
    margin: 0 0 30px;
    font-size: 64px;
    font-weight: 900;
    line-height: 1.35;
    text-transform: capitalize;
    color: var(--ink);
}

.hiw__copy p {
    margin: 0 0 20px;
    font-size: var(--body-lg);
    font-weight: 400;
    line-height: 25px;
    color: var(--ink-body);
}

.hiw__copy p:last-child {
    margin-bottom: 0;
}

.hiw__media {
    flex: 0 0 auto;
}

@media (max-width: 1199px) {
    .hiw {
        padding: 24px 0 0;
    }

    .hiw__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hiw__copy {
        flex: 1 1 auto;
        max-width: none;
    }

    .hiw__title {
        margin-bottom: var(--space-lg);
        font-size: var(--h1);
        line-height: 1.15;
    }

    .hiw__copy p {
        margin: 0 0 24px;
        font-size: var(--body);
        line-height: 22px;
    }

    .hiw__media {
        align-self: center;
    }
}

/* </editor-fold> */

/* <editor-fold desc="20. Contact page"> */

.contact {
    position: relative;
    padding-top: 87px;
    z-index: 1;
}

.contact__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 58px;
}

.contact__intro {
    flex: 0 0 448px;
    max-width: 448px;
}

.contact__title {
    margin: 0 0 66px;
    font-size: 46px;
    font-weight: 900;
    line-height: 54px;
    letter-spacing: -1.5px;
    text-transform: capitalize;
    color: var(--ink);
	max-width: 350px;
}

.contact__text {
    margin: 0 0 32px;
    font-size: var(--body-lg);
    font-weight: 400;
    line-height: 28px;
    letter-spacing: -.44px;
    color: var(--ink-muted);
}

.contact__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
}

.contact__item-body {
    display: flex;
    flex-direction: column;
}

.contact__item-label {
    font-size: var(--body);
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -.31px;
    color: var(--ink);
}

.contact__item-value {
    font-size: var(--body);
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -.31px;
    color: var(--ink-muted);
}

a.contact__item-value:hover {
    color: var(--green);
}

/* --- form card --- */

.form-card {
    flex: 0 0 633px;
    max-width: 633px;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--green);
    border-radius: 30px;
    color: var(--ink-body);
}

.form-card__title {
    margin: 0 0 7px;
    font-size: 35px;
    font-weight: 800;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--ink-nav);
}

.form-card__text {
    margin: 0 0 55px;
    font-size: var(--body);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -.3px;
    color: var(--ink-muted);
}

.form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
}

.form-card .field__label {
    font-size: var(--caption);
    font-weight: 600;
    line-height: 21px;
    color: var(--ink-nav);
}

.form-card .input,
.form-card .select,
.form-card .textarea {
    border-color: rgba(0, 0, 0, .15);
}

.form-card .textarea {
    min-height: 170px;
}

.form-card .form__button {
    min-height: 59px;
    font-size: var(--body-lg);
    font-weight: 600;
}

.form-card .form__button img {
    width: 19px;
    height: 19px;
}

.form-card + .contact__list {
    display: none;
}

.form__captcha {
    min-height: 0;
}

.feedCaptcha-error,
.form-card .field__error {
    display: block;
    font-size: var(--caption);
    font-weight: 400;
    color: var(--error);
}

.form__success {
    padding: var(--space-lg) 0;
    font-size: var(--body-lg);
    color: var(--ink-body);
}

@media (max-width: 1199px) {
    .hero-band--short {
        padding-bottom: 60px;
    }

    .contact {
        padding-top: 32px;
    }

    .contact__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .contact__intro {
        flex: 1 1 auto;
        max-width: none;
    }

    .contact__title {
        margin: 0;
        font-size: 40px;
        line-height: 1.35;
        text-align: center;
        letter-spacing: -1px;
    }
    .contact__intro .contact__list {
        display: none;
    }

    .contact__text {
        display: none;
        font-size: var(--body);
        line-height: 24px;
    }

    .form-card {
        flex: 1 1 auto;
        max-width: none;
        padding: 25px 24px 35px;
        border-radius: var(--radius-xl);
    }

    .form-card__title {
        margin: 0 0 12px;
        font-size: 28px;
        line-height: 1.5;
        text-transform: capitalize;
    }

    .form-card__text {
        margin: 0 0 36px;
        line-height: 1.5;
    }

    .form-card + .contact__list {
        display: flex;
    }
}

@media (max-width: 575px) {
    .contact__title {
        letter-spacing: -.5px;
    }

    .form__row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .form {
        gap: var(--space-md);
    }

    .form-card {
        padding: 25px 18px;
    }

    .form-card__text {
        margin: 0 0 15px;
    }

    .form-card .textarea {
        min-height: 130px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="21. Legal pages"> */
/* Terms / Privacy / Rates / Notice / Installment / CA reporting all share one
   wrapper. The inner markup is client-supplied and identical across feeds, so it
   is styled as-is: <strong> doubles as a heading, paragraphs carry a trailing
   <br>, and empty <p></p> pairs bracket the injected blocks. */

.legal {
    padding: 44px 0 130px;
}

/* no text-transform here: the client copy is already cased correctly and
   `capitalize` would turn "MyPressLoans.com" into "MyPressLoans.Com" */
.legal__title {
    margin: 0 0 60px;
    font-size: 40px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--ink);
}

.legal__content {
    font-size: var(--body-lg);
    font-weight: 400;
    line-height: normal;
    color: var(--ink);
}

/* the client copy repeats the page title inside the body — keep only ours */
.legal__content h1 {
    display: none;
}

.legal__content h2,
.legal__content h3 {
    margin: 30px 0 8px;
    font-size: var(--body-lg);
    font-weight: 700;
    line-height: normal;
    color: var(--ink);
}

.legal__content p {
    margin: 0 0 30px;
}

.legal__content p:empty {
    display: none;
}

/* every paragraph ends with a stray <br> in the source */
.legal__content p > br:last-child {
    display: none;
}

.legal__content strong {
    font-weight: 700;
}

/* a <strong> dropped straight into the content (not inside a <p>) is used as a
   standalone sub-heading line by the client copy */
.legal__content > strong {
    display: block;
    margin-bottom: 30px;
}

.legal__content em {
    font-style: italic;
}

.legal__content a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal__content a:hover {
    color: var(--green);
}

.legal__content ul,
.legal__content ol {
    margin: 0 0 30px;
    padding-left: 26px;
}

.legal__content ul {
    list-style: disc;
}

.legal__content ol {
    list-style: decimal;
}

.legal__content li {
    margin-bottom: 6px;
}

.legal__content li > br:last-child {
    display: none;
}

@media (max-width: 1199px) {
    .legal {
        padding: 32px 0 80px;
    }

    .legal__title {
        margin-bottom: 32px;
        font-size: 32px;
    }
}

@media (max-width: 575px) {
    .legal {
        padding: 24px 0 56px;
    }

    .legal__title {
        font-size: 26px;
    }

    .legal__content {
        font-size: var(--body);
    }

    .legal__content p,
    .legal__content ul,
    .legal__content ol {
        margin-bottom: 20px;
    }
}

/* </editor-fold> */

/* <editor-fold desc="22. UI kit (ui-kit.php — development only)"> */

.ui-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
}

.ui-swatch {
    height: 90px;
    border: 1px solid var(--grey-line);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
}

.ui-narrow {
    max-width: 768px;
}

/* </editor-fold> */

/* <editor-fold desc="23. Utilities"> */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.list-reset {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-xxl { margin-top: 40px; }

.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-xxl { margin-bottom: 40px; }

.stack {
    display: flex;
    flex-direction: column;
}

.stack--xs { gap: var(--space-xs); }
.stack--sm { gap: var(--space-sm); }
.stack--md { gap: var(--space-md); }
.stack--lg { gap: var(--space-lg); }
.stack--xl { gap: var(--space-xl); }

.grid {
    display: grid;
    gap: var(--space-lg);
}

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

@media (max-width: 1199px) {
    .grid--3,
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .grid--2,
    .grid--3,
    .grid--4 { grid-template-columns: 1fr; }
}

/* </editor-fold> */
