.loan-page {
    --loan-yellow: #ffde00;
    --loan-ink: #111;
    --loan-muted: #686c70;
    --loan-line: #e7e7e5;
    --loan-soft: #f5f5f2;
    padding-bottom: clamp(4rem, 8vw, 7rem);
    background: #fff;
    color: var(--loan-ink);
}

.loan-shell { max-width: 1320px; }

.loan-breadcrumb {
    display: flex;
    padding: 1.4rem 0;
    align-items: center;
    gap: .65rem;
    color: #96999c;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.loan-breadcrumb a { color: #55595d; text-decoration: none; }
.loan-breadcrumb a:hover { color: #000; }

.loan-hero {
    position: relative;
    display: grid;
    min-height: 470px;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .48fr);
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 222, 0, .17), transparent 29%),
        linear-gradient(125deg, #0b0b0b 0%, #191919 60%, #111 100%);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .16);
}

.loan-hero::before {
    position: absolute;
    top: -165px;
    right: -85px;
    width: 430px;
    height: 430px;
    border: 94px solid var(--loan-yellow);
    border-radius: 50%;
    content: '';
}

.loan-hero::after {
    position: absolute;
    bottom: -150px;
    left: 43%;
    width: 285px;
    height: 285px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: '';
}

.loan-hero__copy {
    position: relative;
    z-index: 1;
    display: flex;
    max-width: 780px;
    padding: clamp(2.4rem, 6vw, 5.25rem);
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
}

.loan-eyebrow,
.loan-section-label,
.loan-form-card__header > span {
    color: #967f00;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.loan-eyebrow { margin-bottom: 1.25rem; color: var(--loan-yellow); }

.loan-hero h1 {
    margin: 0;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.6rem, 6vw, 5.25rem);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: .97;
}

.loan-hero__copy > p {
    max-width: 650px;
    margin: 1.75rem 0 2rem;
    color: rgba(255, 255, 255, .68);
    font-size: clamp(.95rem, 1.5vw, 1.08rem);
    line-height: 1.75;
}

.loan-hero__action {
    display: inline-flex;
    padding: .85rem 1.15rem;
    border-radius: 999px;
    align-items: center;
    gap: .75rem;
    background: var(--loan-yellow);
    color: #111;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
}

.loan-hero__action:hover { background: #fff; color: #111; }

.loan-hero__details {
    position: relative;
    z-index: 1;
    display: flex;
    padding: 2.25rem;
    flex-direction: column;
    justify-content: flex-end;
    gap: .75rem;
}

.loan-hero__detail {
    display: grid;
    padding: 1rem;
    grid-template-columns: 42px 1fr;
    gap: .8rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(14px);
    color: #fff;
}

.loan-hero__detail > span {
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    place-items: center;
    background: var(--loan-yellow);
    color: #111;
    font-size: .72rem;
    font-weight: 800;
}

.loan-hero__detail p { margin: 0; color: rgba(255, 255, 255, .6); font-size: .72rem; line-height: 1.5; }
.loan-hero__detail strong { display: block; margin-bottom: .12rem; color: #fff; font-size: .82rem; }

.loan-request {
    display: grid;
    padding-top: clamp(3.5rem, 8vw, 6.5rem);
    grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 5.5rem);
}

.loan-request__intro { padding-top: .65rem; }

.loan-request__intro > h2 {
    max-width: 530px;
    margin: .5rem 0 1rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.9rem, 4vw, 3.25rem);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.loan-request__intro > p {
    max-width: 570px;
    margin: 0 0 1.75rem;
    color: var(--loan-muted);
    font-size: .92rem;
    line-height: 1.75;
}

.loan-image-card {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 24px;
    background: #e9e9e6;
    box-shadow: 0 18px 48px rgba(20, 20, 20, .11);
}

.loan-image-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.loan-image-card figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 17px;
    align-items: center;
    gap: .85rem;
    background: rgba(15, 15, 15, .76);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, .67);
    font-size: .72rem;
    line-height: 1.5;
}

.loan-image-card figcaption strong { display: block; color: #fff; font-size: .8rem; }

.loan-image-card__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    place-items: center;
    background: var(--loan-yellow);
    color: #111;
}

.loan-note {
    display: flex;
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--loan-line);
    border-radius: 16px;
    align-items: flex-start;
    gap: .8rem;
    background: var(--loan-soft);
}

.loan-note > i { margin-top: .25rem; color: #9d8500; }
.loan-note p { margin: 0; color: var(--loan-muted); font-size: .74rem; line-height: 1.6; }
.loan-note strong { display: block; color: #242424; }

.loan-form-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--loan-line);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(20, 20, 20, .09);
}

.loan-form-card__header {
    margin-bottom: 1.6rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid var(--loan-line);
}

.loan-form-card__header h2 {
    margin: .35rem 0 .35rem;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -.035em;
}

.loan-form-card__header p { margin: 0; color: #8b8e91; font-size: .72rem; }
.loan-form-card__header p span,
.loan-field label span { color: #b19400; }

.loan-form-card .alert { border: 0; border-radius: 14px; font-size: .78rem; }
.loan-form-card .alert ul { margin-bottom: 0; padding-left: 1.2rem; }

.loan-form { display: flex; flex-direction: column; gap: 1.1rem; }
.loan-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.loan-field { display: flex; min-width: 0; flex-direction: column; gap: .42rem; }
.loan-field label { color: #353535; font-size: .72rem; font-weight: 700; }
.loan-field small { color: #987f00; font-size: .68rem; line-height: 1.4; }

.loan-form .form-control,
.loan-form .form-select {
    min-height: 50px;
    padding: .72rem .85rem;
    border: 1px solid #dadbd9;
    border-radius: 12px !important;
    background-color: #fafaf8 !important;
    color: #222;
    font-size: .8rem !important;
    box-shadow: none;
}

.loan-form textarea.form-control { min-height: 112px; resize: vertical; }

.loan-form .form-control:focus,
.loan-form .form-select:focus {
    border-color: #b59a00;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(255, 222, 0, .2);
}

.loan-form .is-invalid { border-color: #dc3545; }

.loan-captcha {
    max-width: 100%;
    overflow-x: auto;
    padding: .25rem 0;
}

.loan-submit {
    display: inline-flex;
    min-height: 52px;
    padding: .8rem 1.25rem;
    border: 2px solid var(--loan-yellow);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    background: var(--loan-yellow);
    color: #111;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.loan-submit:hover { border-color: #111; background: #111; color: #fff; }
.loan-submit i { transition: transform .2s ease; }
.loan-submit:hover i { transform: translateX(4px); }

.loan-form__privacy { margin: -.25rem 0 0; color: #989a9c; font-size: .68rem; text-align: center; }
.loan-form__privacy i { margin-right: .3rem; }

@media (max-width: 991.98px) {
    .loan-hero { grid-template-columns: minmax(0, 1fr) 290px; }
    .loan-request { grid-template-columns: 1fr; }
    .loan-request__intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
    .loan-request__intro > .loan-section-label,
    .loan-request__intro > h2,
    .loan-request__intro > p { grid-column: 1 / -1; }
    .loan-image-card > img { aspect-ratio: 16 / 10; }
    .loan-note { margin-top: 0; }
}

@media (max-width: 767.98px) {
    .loan-hero { min-height: auto; grid-template-columns: 1fr; }
    .loan-hero::before { top: -135px; right: -190px; width: 340px; height: 340px; border-width: 72px; }
    .loan-hero__copy { padding: 3rem 1.5rem 2rem; }
    .loan-hero__details { padding: 0 1.5rem 1.5rem; }
    .loan-form__row { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .loan-page { padding-bottom: 3.5rem; }
    .loan-breadcrumb { padding: 1rem 0; }
    .loan-hero { border-radius: 22px; }
    .loan-hero h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
    .loan-hero__copy > p { margin: 1.3rem 0 1.5rem; font-size: .9rem; }
    .loan-hero__detail { padding: .8rem; }
    .loan-request { padding-top: 3rem; }
    .loan-request__intro { display: block; }
    .loan-image-card { border-radius: 20px; }
    .loan-image-card > img { aspect-ratio: 1 / 1; }
    .loan-note { margin-top: 1rem; }
    .loan-form-card { padding: 1.25rem; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .loan-submit,
    .loan-submit i { transition: none; }
}
