.bg-referral-rewards {
    background-image: url(/image/landing/hero/referral-rewards-hero.png);
}

.referral-hero {
    position: relative;
    overflow: hidden;
}

.referral-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 28, 38, .66) 0%, rgba(12, 28, 38, .34) 42%, rgba(12, 28, 38, .05) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .2) 100%);
    pointer-events: none;
}

.referral-hero .hero-content {
    position: relative;
    z-index: 1;
    height: auto;
    min-height: calc(100dvh - 110px);
}

.referral-kicker {
    display: inline-block;
    margin-bottom: .4rem;
    color: #ffc295;
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-weight: 700;
}

.referral-hero-copy-block .referral-kicker {
    font-size: clamp(.92rem, 1.1vw, 1.08rem);
}

.referral-hero-content {
    padding-top: clamp(3rem, 5vw, 5rem);
    padding-bottom: clamp(3rem, 5vw, 5rem);
}

.referral-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(490px, .92fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}

.referral-hero-copy-block {
    max-width: 610px;
    transform: translateY(-4rem);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.referral-hero-copy-block h1 {
    max-width: 11ch;
    font-family: "Playfair", sans-serif;
    font-size: clamp(2.7rem, 4.2vw, 4rem);
    line-height: .98;
}

.referral-hero-copy {
    max-width: 620px;
    font-size: clamp(1.05rem, 1.45vw, 1.28rem) !important;
    line-height: 1.45;
}

.referral-reward-badge {
    border: 1px solid rgba(255, 255, 255, .36);
    background: rgba(0, 0, 0, .22);
}

.referral-reward-badge p {
    font-size: 1rem;
}

.referral-reward-amount {
    color: #ffc295;
    font-size: 1.65rem !important;
}

.referral-hero-phone {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    margin-top: 1.4rem;
    font-size: .98rem;
    font-weight: 700;
}

.referral-hero-phone span {
    color: rgba(255, 255, 255, .74);
}

.referral-hero-phone a {
    color: #fff;
    text-decoration: none;
}

.referral-intro {
    background-color: #fff;
}

.referral-summary-card,
.referral-step-card,
.referral-form {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, .12);
}

.referral-summary-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.referral-summary-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.referral-summary-row:first-child {
    padding-top: 0;
}

.referral-summary-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.referral-summary-row > span,
.referral-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #000;
    background: #ffc295;
    font-weight: 800;
}

.referral-summary-row h3,
.referral-step-card h3 {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.referral-summary-row p,
.referral-step-card p,
.referral-note p,
.referral-disclaimer {
    margin: 0;
    color: #667176;
    line-height: 1.55;
}

.referral-step-card {
    padding: 1.5rem;
}

.referral-step-number {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.referral-form-section {
    background-color: #f2f4f3;
}

.referral-note {
    display: flex;
    gap: .8rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border-left: 4px solid #ffc295;
    border-radius: 8px;
    background: #fff;
}

.referral-note i {
    color: #df9259;
    font-size: 1.25rem;
}

.referral-form {
    padding: clamp(1rem, 2.4vw, 1.55rem);
}

.referral-hero-form {
    color: #000;
    width: 100%;
    max-width: 640px;
    justify-self: end;
}

.referral-form-heading {
    margin-bottom: .8rem;
}

.referral-form-heading h2 {
    margin: 0;
    font-family: "Playfair", sans-serif;
    font-size: clamp(1.58rem, 2.2vw, 2rem);
    font-weight: 700;
    line-height: 1;
}

.referral-form-alert {
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border-radius: 8px;
    color: #285f37;
    background: #e3f4e5;
    font-weight: 700;
}

.referral-form-alert.is-error {
    color: #8a1f11;
    background: #fde7e1;
}

.referral-form fieldset {
    margin: 0 0 .8rem;
    padding: 0 0 .8rem;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.referral-form fieldset:last-of-type {
    margin-bottom: .9rem;
}

.referral-form legend {
    float: none;
    width: auto;
    margin-bottom: .55rem;
    color: #000;
    font-family: "Playfair", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
}

.referral-form .row {
    --bs-gutter-x: .8rem;
    --bs-gutter-y: .65rem;
}

.referral-form .form-label {
    margin-bottom: .25rem;
    font-size: .82rem;
    font-weight: 550;
}

.referral-form .form-label span {
    color: #667176;
    font-size: .85rem;
    font-weight: 500;
}

.referral-form .form-control {
    min-height: 38px;
    padding: .42rem .68rem;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 8px;
    font-size: .92rem;
}

.referral-form .form-control:focus {
    border-color: #df9259;
    box-shadow: 0 0 0 .25rem rgba(255, 194, 149, .32);
}

.referral-disclaimer {
    margin-top: .6rem;
    font-size: .76rem;
}

.referral-submit-row {
    display: flex;
    justify-content: center;
}

.referral-submit-row .btn {
    min-width: 220px;
    padding-top: .7rem !important;
    padding-bottom: .7rem !important;
}

.referral-submit-row .btn:disabled {
    cursor: not-allowed;
    opacity: .72;
}

.referral-intro .fs-1,
.feature-section .fs-1 {
    font-size: clamp(2.1rem, 3.2vw, 3rem) !important;
    line-height: 1.05;
}

.referral-intro .fs-5 {
    font-size: 1.05rem !important;
}

.referral-summary-row h3,
.referral-step-card h3 {
    font-size: 1.02rem;
}

.referral-summary-row p,
.referral-step-card p {
    font-size: .9rem;
}

.referral-cta h2 {
    font-size: clamp(2.05rem, 3.2vw, 2.7rem) !important;
}

.referral-cta p {
    font-size: 1.05rem !important;
}

.referral-cta {
    background-image: url(/image/landing/bg-cta.jpg);
}

.referral-cta .btn {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .referral-hero .hero-content {
        min-height: auto;
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .referral-hero-content {
        padding-top: 2rem;
        padding-bottom: 2.25rem;
    }

    .referral-hero-grid {
        gap: 1.35rem;
    }

    .referral-hero-copy-block h1 {
        max-width: 12ch;
        font-size: clamp(2.35rem, 11vw, 3rem);
        line-height: 1;
    }

    .referral-hero-copy-block {
        transform: none;
    }

    .referral-hero-copy-block .referral-kicker {
        margin-bottom: .55rem !important;
        font-size: .88rem;
        letter-spacing: .12em;
    }

    .referral-hero-copy {
        margin-bottom: 1rem !important;
        font-size: 1.05rem !important;
        line-height: 1.45;
    }

    .referral-reward-badge {
        padding: .8rem 1rem !important;
    }

    .referral-reward-badge p {
        font-size: .95rem;
    }

    .referral-reward-badge strong {
        display: inline-block;
        font-size: 1.45rem !important;
    }

    .referral-reward-badge small {
        display: block;
        margin-top: .1rem;
        font-size: .78rem;
    }

    .referral-hero-phone {
        margin-top: .95rem;
        gap: .35rem .55rem;
        font-size: .94rem;
    }

    .referral-form {
        padding: .85rem;
    }

    .referral-hero-form {
        max-width: none;
    }

    .referral-form-heading {
        margin-bottom: .7rem;
    }

    .referral-form-heading .referral-kicker {
        font-size: .68rem;
        letter-spacing: .1em;
    }

    .referral-form-heading h2 {
        font-size: 1.38rem;
    }

    .referral-form fieldset {
        margin-bottom: .7rem;
        padding-bottom: .7rem;
    }

    .referral-form fieldset:last-of-type {
        margin-bottom: .8rem;
    }

    .referral-form legend {
        margin-bottom: .45rem;
        font-size: .96rem;
    }

    .referral-form .row {
        --bs-gutter-x: .6rem;
        --bs-gutter-y: .55rem;
    }

    .referral-form .form-label {
        margin-bottom: .2rem;
        font-size: .76rem;
    }

    .referral-form .form-control {
        min-height: 36px;
        padding: .42rem .6rem;
        font-size: .86rem;
    }

    .referral-form .btn {
        min-height: 40px;
        padding: .58rem .9rem !important;
        font-size: .88rem;
    }

    .referral-submit-row .btn {
        min-width: 180px;
    }

    .referral-disclaimer {
        margin-top: .5rem;
        font-size: .68rem;
        line-height: 1.35;
    }

    .referral-intro,
    .feature-section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .referral-intro .fs-1,
    .feature-section .fs-1 {
        font-size: 1.5rem !important;
        line-height: 1.08;
    }

    .feature-section .text-heading p {
        font-size: .9rem;
        line-height: 1.45;
    }

    .referral-intro .fs-5 {
        font-size: 1rem !important;
        line-height: 1.55;
    }

    .referral-summary-card,
    .referral-step-card {
        padding: 1rem;
    }

    .referral-summary-row h3,
    .referral-step-card h3 {
        font-size: 1rem;
    }

    .referral-summary-row p,
    .referral-step-card p {
        font-size: .9rem;
    }

    .referral-cta .cta-content {
        padding: 3rem 1.25rem;
    }

    .referral-cta h2 {
        font-size: 2rem !important;
        line-height: 1.08;
    }

    .referral-cta p {
        font-size: 1rem !important;
    }

    .referral-cta .btn {
        width: auto;
        max-width: 100%;
        padding-right: 1.15rem !important;
        padding-left: 1.15rem !important;
        font-size: .9rem;
        white-space: nowrap;
    }
}

@media (max-width: 991.98px) {
    .referral-hero-grid {
        grid-template-columns: 1fr;
    }

    .referral-hero-copy-block h1 {
        max-width: 12ch;
    }

    .referral-summary-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .referral-summary-row > span,
    .referral-step-number {
        width: 44px;
        height: 44px;
    }
}
