/* =============================================================================
   PICTURE GUIDES — storefront/how-to-apply.blade.php and how-it-works.blade.php
   Guides for first-time customers. Mobile first, in the "Credit by Avedson"
   green, with the numbered circles of the application form itself
   (loan-wizard.css), so the real pages look familiar when the shopper gets
   there. Screenshots live in public/img/how-to-apply (iPhone Safari, demo
   details); everything else is Font Awesome and CSS.
   ============================================================================= */

:root {
    --hta-blue: #0046be;
    --hta-navy: #001e73;
    --hta-yellow: #ffce00;
    --hta-ink: #0f172a;
    --hta-ink-2: #334155;
    --hta-ink-3: #475569;
    --hta-line: #e2e8f0;
    --hta-tint: #f5f7fb;
    --hta-green: #157347;
    /* The "Credit by Avedson" green, as on the application form's side panel
       (loan-wizard.css --lw-band). */
    --hta-band: linear-gradient(180deg, rgba(4, 64, 30, 0.3) 0%, rgba(4, 64, 30, 0.5) 100%),
        url('/img/credit-avedson-bg.avif') 0 0 / auto 400px repeat #0a7a34;
    --hta-band-solid: #075a29;
}

.hta {
    background: #fff;
    color: var(--hta-ink);
    font-size: 1.0625rem;
    line-height: 1.6;
}

.hta-wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.hta-wrap--narrow {
    max-width: 820px;
}

.hta a:not([class]) {
    color: var(--hta-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* style.css removes the outline from every focused link. */
.hta a:focus-visible {
    outline: 3px solid var(--hta-blue);
    outline-offset: 2px;
    border-radius: 3px;
}

/* -----------------------------------------------------------------------------
   Breadcrumb (the same trail as the BreadcrumbList JSON-LD)
   ----------------------------------------------------------------------------- */
.hta-crumbs {
    border-bottom: 1px solid var(--hta-line);
    background: #fff;
    font-size: 0.875rem;
}

.hta-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 10px;
    list-style: none;
}

.hta-crumbs li {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--hta-ink-3);
}

.hta-crumbs li + li::before {
    content: '\203A';
    color: #94a3b8;
}

.hta-crumbs a {
    color: var(--hta-blue);
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Hero
   ----------------------------------------------------------------------------- */
.hta-hero {
    overflow: hidden;
    padding: 36px 0 44px;
    background: var(--hta-band);
    color: #fff;
}

.hta-hero__grid {
    display: grid;
    gap: 32px;
    align-items: center;
}

.hta-eyebrow {
    margin: 0 0 8px;
    color: var(--hta-yellow);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hta-hero__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

.hta-hero__lead {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.125rem;
}

.hta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.hta-badges li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.9375rem;
    font-weight: 700;
}

.hta-badges i {
    color: var(--hta-yellow);
}

.hta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hta-actions--center {
    justify-content: center;
}

.hta-btn {
    flex: 1 1 220px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.hta-btn--yellow,
.hta-btn--yellow:hover {
    background: var(--hta-yellow);
    color: var(--hta-navy);
}

.hta-btn--yellow:hover {
    background: #f2c200;
}

.hta-btn--outline {
    border-color: rgba(255, 255, 255, 0.75);
    color: #fff;
}

.hta-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hta-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* The form's first screen in a phone frame, from 992px. */
.hta-hero__art {
    display: none;
    margin: 0;
}

.hta-device {
    width: 260px;
    padding: 10px;
    border-radius: 40px;
    background: #0b1530;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
    transform: rotate(-3deg);
}

.hta-device img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

/* -----------------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------------- */
.hta-section {
    padding: 44px 0;
}

.hta-section--tint {
    background: var(--hta-tint);
}

.hta-h2 {
    margin: 0 0 8px;
    color: var(--hta-ink);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.2;
}

.hta-lead {
    margin: 0 0 24px;
    color: var(--hta-ink-2);
}

.hta-more {
    margin: 20px 0 0;
}

/* Installment or layaway */
.hta-plans {
    display: grid;
    gap: 14px;
}

.hta-plan {
    padding: 20px;
    border: 2px solid var(--hta-line);
    border-radius: 18px;
    background: #fff;
}

.hta-plan__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.hta-plan__badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff8e1;
    color: #6b4f00;
    font-size: 0.8125rem;
    font-weight: 700;
}

.hta-plan__badge--alt {
    background: #eaf6ee;
    color: var(--hta-green);
}

/* A plan's three moments, in order (How It Works). */
.hta-way {
    display: grid;
    gap: 10px;
    margin: 4px 0 14px;
    padding: 0;
    list-style: none;
}

.hta-way li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--hta-ink-2);
    font-weight: 700;
    line-height: 1.3;
}

.hta-way__icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hta-navy);
    color: var(--hta-yellow);
}

.hta-plan__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: #eef4ff;
    color: var(--hta-blue);
    font-size: 1.5rem;
}

.hta-plan__name {
    margin: 0 0 4px;
    color: var(--hta-blue);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hta-plan__big {
    margin: 0 0 6px;
    color: var(--hta-ink);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.hta-plan__text {
    margin: 0 0 12px;
    color: var(--hta-ink-2);
}

.hta-plan__who {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--hta-line);
    color: var(--hta-ink-3);
    font-size: 0.9375rem;
}

.hta-plan__who i {
    color: var(--hta-blue);
}

/* -----------------------------------------------------------------------------
   The journey: a numbered timeline. From 768px a step's picture sits beside
   its words, the sides taking turns.
   ----------------------------------------------------------------------------- */
.hta-journey {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hta-journey::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 19px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(var(--hta-yellow), var(--hta-blue));
}

.hta-journey__step {
    position: relative;
    padding: 0 0 20px 56px;
    scroll-margin-top: 16px;
}

.hta-journey__step:last-child {
    padding-bottom: 0;
}

.hta-journey__num {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--hta-navy);
    box-shadow: 0 0 0 4px var(--hta-tint), 0 0 0 6px var(--hta-yellow);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
}

.hta-journey__card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--hta-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.hta-journey__title {
    margin: 0 0 6px;
    color: var(--hta-ink);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
}

.hta-journey__card p {
    margin: 0 0 8px;
    color: var(--hta-ink-2);
}

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

.hta-journey__card .hta-journey__tip {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff8e1;
    color: #5c4400;
    font-size: 0.9375rem;
}

.hta-journey__tip i {
    margin-top: 5px;
    color: #9a7400;
}

/* iPhone screenshots at the top of a card (public/img/how-to-apply). */
.hta-shot {
    max-width: 300px;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 1px solid var(--hta-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.hta-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* Drawings standing in for pages a guest can't be shown (How It Works). */
.hta-art-pay {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.hta-art-pay span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid var(--hta-line);
    border-radius: 12px;
    background: var(--hta-tint);
    color: var(--hta-ink);
    font-weight: 700;
}

.hta-art-pay i {
    color: var(--hta-blue);
}

.hta-art-schedule {
    max-width: 300px;
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--hta-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.hta-journey__card .hta-art-schedule__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--hta-ink);
    font-weight: 700;
}

.hta-art-schedule__title i {
    color: var(--hta-blue);
}

.hta-art-schedule ul {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hta-art-schedule li {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--hta-tint);
    color: var(--hta-ink-2);
    font-size: 0.875rem;
}

/* No room for the amount on a 320px phone: "Payment 1" would break in two. */
.hta-art-schedule__amount {
    display: none;
}

@media (min-width: 360px) {
    .hta-art-schedule li {
        grid-template-columns: 1fr auto auto;
    }

    .hta-art-schedule__amount {
        display: block;
    }
}

.hta-art-schedule__tag {
    min-width: 60px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef1f6;
    color: var(--hta-ink-3);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.hta-art-schedule li.is-paid .hta-art-schedule__tag {
    background: #eaf6ee;
    color: var(--hta-green);
}

.hta-art-schedule li.is-next {
    outline: 2px solid var(--hta-blue);
    outline-offset: -2px;
    background: #f2f6ff;
}

.hta-art-schedule li.is-next .hta-art-schedule__tag {
    background: var(--hta-yellow);
    color: var(--hta-navy);
}

/* The form's 5 steps, in miniature */
.hta-mini {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.hta-mini__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--hta-tint);
}

.hta-mini__dot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--hta-blue);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
}

.hta-mini__body {
    min-width: 0;
}

.hta-mini__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: var(--hta-ink);
    font-weight: 700;
}

.hta-mini__ask {
    display: block;
    color: var(--hta-ink-3);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.hta-tag {
    display: inline-flex;
    padding: 1px 8px;
    border-radius: 999px;
    background: #e8efff;
    color: var(--hta-navy);
    font-size: 0.75rem;
    font-weight: 700;
}

.hta-tag--optional {
    background: #eef1f6;
    color: var(--hta-ink-3);
}

/* Above a journey step's title: who the step is for, or what we recommend. */
.hta-tag--note {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 8px;
    padding: 3px 10px;
    background: var(--hta-yellow);
    color: var(--hta-navy);
    font-size: 0.8125rem;
}

/* Installment vs layaway, after approval */
.hta-split {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.hta-split__item {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--hta-tint);
}

.hta-journey__card .hta-split__item p {
    margin: 0;
    font-size: 0.9375rem;
}

.hta-journey__card .hta-split__name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    color: var(--hta-navy);
    font-weight: 700;
}

.hta-split__name i {
    color: var(--hta-blue);
}

/* -----------------------------------------------------------------------------
   Have these ready (partials/apply-checklist) and photo tips
   ----------------------------------------------------------------------------- */
.hta-ready {
    display: grid;
    gap: 36px;
}

.hta-card {
    padding: 20px;
    border: 2px solid var(--hta-line);
    border-radius: 18px;
    background: #fff;
}

.hta .apply-checklist {
    display: grid;
    gap: 16px;
}

.hta .apply-checklist__label {
    margin: 0 0 4px;
    color: var(--hta-ink-3);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hta .apply-checklist__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hta .apply-checklist__list li {
    display: flex;
    gap: 10px;
    padding: 4px 0;
    color: var(--hta-ink-2);
    line-height: 1.45;
}

.hta .apply-checklist__list i {
    flex: 0 0 auto;
    margin-top: 5px;
    color: var(--hta-green);
    font-size: 0.875rem;
}

.hta .apply-checklist__group--optional .apply-checklist__list i {
    color: var(--hta-ink-3);
}

.hta .apply-checklist__note {
    margin: 0;
    color: var(--hta-ink-3);
    font-size: 0.9375rem;
}

.hta-tips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.hta-tip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 14px;
    border-radius: 16px;
    background: var(--hta-tint);
}

.hta-tip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: #fff;
    color: var(--hta-blue);
    font-size: 1.25rem;
}

.hta-tip__title {
    color: var(--hta-ink);
    font-weight: 700;
    line-height: 1.3;
}

.hta-tip__text {
    color: var(--hta-ink-3);
    font-size: 0.9375rem;
    line-height: 1.45;
}

/* -----------------------------------------------------------------------------
   Installment and layaway compared (How It Works). Two answers side by side;
   on a phone each row stacks, with the plan's name over each answer.
   ----------------------------------------------------------------------------- */
.hta-compare {
    margin-top: 20px;
    overflow: hidden;
    border: 1px solid var(--hta-line);
    border-radius: 18px;
    background: #fff;
}

.hta-compare__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    padding: 14px 16px;
}

.hta-compare__row + .hta-compare__row {
    border-top: 1px solid var(--hta-line);
}

.hta-compare__row--head {
    display: none;
}

.hta-compare__q {
    grid-column: 1 / -1;
    color: var(--hta-ink);
    font-weight: 700;
}

.hta-compare__row [role="cell"] {
    color: var(--hta-ink-2);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.hta-compare__label {
    display: block;
    color: var(--hta-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hta-compare__note {
    margin: 12px 0 0;
    color: var(--hta-ink-3);
    font-size: 0.9375rem;
}

/* -----------------------------------------------------------------------------
   FAQ
   ----------------------------------------------------------------------------- */
.hta-accordion {
    margin-top: 20px;
}

.hta-accordion .accordion-item {
    margin-bottom: 10px;
    overflow: hidden;
    border: 1px solid var(--hta-line);
    border-radius: 14px !important;
}

.hta-accordion .accordion-button {
    min-height: 56px;
    padding: 14px 18px;
    background: #fff;
    color: var(--hta-ink);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
}

.hta-accordion .accordion-button:not(.collapsed) {
    background: #eef4ff;
    box-shadow: none;
    color: var(--hta-navy);
}

.hta-accordion .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 70, 190, 0.3);
}

.hta-accordion .accordion-body {
    padding: 14px 18px 18px;
    color: var(--hta-ink-2);
}

.hta-accordion .accordion-body a {
    color: var(--hta-blue);
    font-weight: 700;
    text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Closing
   ----------------------------------------------------------------------------- */
.hta-cta {
    padding: 48px 0;
    background: var(--hta-band);
    color: #fff;
    text-align: center;
}

.hta-cta__title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

.hta-cta__lead {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
}

.hta-cta__help {
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.hta-cta .hta-cta__help a {
    color: #fff;
}

.hta-cta a:focus-visible {
    outline-color: #fff;
}

/* -----------------------------------------------------------------------------
   576px and up
   ----------------------------------------------------------------------------- */
@media (min-width: 576px) {
    .hta-split {
        grid-template-columns: 1fr 1fr;
    }

    .hta-journey__card {
        padding: 20px;
    }
}

/* -----------------------------------------------------------------------------
   768px and up
   ----------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .hta-hero {
        padding: 52px 0 60px;
    }

    .hta-hero__title {
        font-size: 2.5rem;
    }

    .hta-section {
        padding: 60px 0;
    }

    .hta-h2 {
        font-size: 2rem;
    }

    .hta-plans {
        grid-template-columns: 1fr 1fr;
    }

    /* One step per row, so a card is only as tall as what's in it. Two
       across, a short step stretched to match a tall screenshot beside it.
       The section sits in .hta-wrap--narrow to keep the words beside a
       picture to a few short lines. */
    .hta-journey__step {
        padding-bottom: 28px;
    }

    .hta-journey__card {
        padding: 24px 28px;
    }

    .hta-journey__card--media {
        display: grid;
        grid-template-areas: 'media body';
        grid-template-columns: 264px minmax(0, 1fr);
        align-items: center;
        gap: 32px;
    }

    .hta-journey__step:nth-child(even) .hta-journey__card--media {
        grid-template-areas: 'body media';
        grid-template-columns: minmax(0, 1fr) 264px;
    }

    .hta-journey__card--media > :first-child {
        grid-area: media;
        width: 100%;
        margin: 0 auto;
    }

    .hta-journey__card--media .hta-shot {
        max-width: 240px;
    }

    .hta-journey__body {
        grid-area: body;
    }

    .hta-journey__title {
        margin-bottom: 8px;
        font-size: 1.375rem;
    }

    .hta-tips {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hta-compare__row {
        grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .hta-compare__row--head {
        display: grid;
        background: var(--hta-navy);
        color: #fff;
        font-weight: 700;
    }

    .hta-compare__row--head i {
        color: var(--hta-yellow);
    }

    .hta-compare__q {
        grid-column: auto;
    }

    .hta-compare__label {
        display: none;
    }

    .hta-way {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .hta-way li {
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.9375rem;
    }

    .hta-art-pay span {
        flex-direction: column;
        justify-content: center;
        min-height: 76px;
        padding: 8px 10px;
        font-size: 0.9375rem;
        line-height: 1.3;
        text-align: center;
    }

    .hta-btn {
        flex: 0 0 auto;
    }

    .hta .apply-checklist {
        grid-template-columns: 1fr 1fr;
    }

    .hta .apply-checklist__note {
        grid-column: 1 / -1;
    }
}

/* -----------------------------------------------------------------------------
   992px and up
   ----------------------------------------------------------------------------- */
@media (min-width: 992px) {
    .hta-hero__grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    }

    .hta-hero__title {
        font-size: 2.875rem;
    }

    .hta-hero__art {
        display: flex;
        justify-content: center;
    }

    .hta-ready {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        align-items: start;
    }

    .hta .apply-checklist {
        grid-template-columns: 1fr;
    }
}
