﻿.referral-page {
    /* --rf-page: #f1f1ef; */
    /* --rf-ink: #111111; */
    /* --rf-muted: #a0a0a0; */
    /* --rf-card: #ffffff; */
    /* --rf-line: rgba(190, 190, 190, 0.28); */
    /* --rf-rule: rgba(17, 17, 17, 0.08); */
    /* background: var(--rf-page); */
    /* color: var(--rf-ink); */
    /* overflow-x: clip; */
}

.referral-page .site-footer {
    margin-top: 0;
}

.rf-main {
    padding-bottom: 0;
}

.referral-page .testimonials-section {
    /* padding: 60px 20px 12px; */
}

.referral-page .testimonials-card {
    position: relative;
    border-radius: 35px;
    overflow: hidden;
}

.referral-page .testimonials-content {
    position: relative;
    z-index: 5;
    max-width: 700px;
    margin: 0 auto;
    padding: 72px 25px 48px;
    text-align: center;
}

.referral-page .section-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 27px;
    padding: 5px 13px;
    margin-bottom: 18px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    color: #1d1d1d;
    background: #f5f5f5;
    border: 1px solid #eeeeee;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.referral-page .testimonials-title {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(38px, 4vw, 53px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -2.7px;
}

.referral-page .testimonials-title .muted-title {
    display: block;
    color: #a0a0a0;
    font-weight: 500;
}

.referral-page .testimonials-description {
    max-width: 420px;
    margin: 18px auto 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.55;
    color: #5d6573;
}

.referral-page .success-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 0;
    padding: 10px 21px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    background: #000000;
    border: 1px solid #000000;
    border-radius: 50px;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.rf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 36px;
}

.rf-hero-signin {
    color: #111111;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.rf-hero-signin:hover {
    border-bottom-color: #111111;
}

.referral-page .success-btn svg {
    width: 15px;
    height: 15px;
    transition: transform 0.25s ease;
}

.referral-page .success-btn:hover {
    color: #ffffff;
    background: #242424;
    border-color: #242424;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.17);
}

.referral-page .success-btn:hover svg {
    transform: translateX(3px);
}

.rf-wrap {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.rf-body {
    --rf-ink: #14161b;
    --rf-steel: #5d6573;
    --rf-muted: #5d6573;
    --rf-accent: #ff6a3d;
    --rf-accent-dark: #e85a2f;
    --rf-soft: #fff8f3;
    --rf-paper: #ffffff;
    --rf-line: #eadfd6;
    --rf-wine: #9c1b2b;
    color: var(--rf-ink);
    background: var(--rf-paper);
    padding-top: 50px;
}

.rf-facts {
    position: relative;
    z-index: 4;
    margin-top: -36px;
    margin-bottom: 8px;
}

.rf-facts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.rf-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 16px 16px;
    border: 1px solid var(--rf-line);
    border-radius: 18px;
    background: var(--rf-paper);
    box-shadow: 0 18px 40px rgba(16, 17, 20, 0.08);
}

.rf-fact i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #fff1ea;
    color: var(--rf-accent);
    font-size: 15px;
}

.rf-fact strong {
    display: block;
    margin-bottom: 2px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rf-fact span {
    color: var(--rf-steel);
    font-size: 12.5px;
    line-height: 1.45;
}

.rf-band {
    padding: clamp(56px, 8vw, 88px) 0;
}

.rf-band--soft {
    background:
        radial-gradient(ellipse 70% 80% at 100% 0%, rgba(255, 106, 61, 0.08), transparent 55%),
        var(--rf-soft);
}

.rf-band--apply {
    scroll-margin-top: 110px;
    background: #fff;
}

.rf-section-head {
    max-width: 620px;
    margin: 0 auto clamp(28px, 4vw, 40px);
    text-align: center;
}

.rf-band--apply .rf-section-head {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.rf-kicker {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--rf-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rf-section-head h2,
.rf-form-intro h2 {
    margin: 0 0 10px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.rf-section-head p,
.rf-lead {
    margin: 0;
    color: var(--rf-steel);
    font-size: 15px;
    line-height: 1.7;
}

.rf-chain-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rf-role {
    padding: 26px 24px 24px;
    border: 1px solid var(--rf-line);
    border-radius: 20px;
    background: var(--rf-paper);
    text-align: center;
}

.rf-role i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #fff1ea;
    color: var(--rf-accent);
    font-size: 18px;
}

.rf-role-mark {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rf-accent);
}

.rf-role h3 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rf-role p {
    margin: 0;
    color: var(--rf-steel);
    font-size: 14px;
    line-height: 1.65;
}

.rf-role.is-you {
    background: var(--rf-ink);
    border: 2px dashed #ff6a3d;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(16, 17, 20, 0.16);
}

.rf-role.is-you i {
    background: rgba(255, 106, 61, 0.22);
    color: #ffb89a;
}

.rf-role.is-you .rf-role-mark {
    color: #ffb89a;
}

.rf-role.is-you p {
    color: rgba(255, 255, 255, 0.72);
}

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

.rf-step {
    position: relative;
    padding: 8px 20px;
    text-align: center;
}

.rf-step:not(:last-child)::after {
    display: none;
}

.rf-step-num {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--rf-ink);
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.rf-step h3 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 18px;
    font-weight: 800;
}

.rf-step p {
    margin: 0 auto;
    max-width: 32ch;
    color: var(--rf-steel);
    font-size: 14px;
    line-height: 1.65;
}

.rf-apply-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.rf-need-list {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rf-need-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--rf-line);
    border-radius: 16px;
    background: var(--rf-paper);
}

.rf-need-list i {
    margin-top: 2px;
    width: auto;
    height: auto;
    display: block;
    border-radius: 0;
    background: none;
    color: var(--rf-accent);
    font-size: 15px;
}

.rf-need-list strong {
    display: block;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.rf-need-list span {
    display: block;
    margin-top: 2px;
    color: var(--rf-steel);
    font-size: 13px;
    line-height: 1.5;
}

.rf-need-note {
    margin: 0;
    color: var(--rf-steel);
    font-size: 13.5px;
    line-height: 1.6;
}

.rf-need-note a {
    color: var(--rf-accent);
    font-weight: 700;
    text-decoration: none;
}

.rf-need-note a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rf-form-shell {
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--rf-line);
    border-radius: 24px;
    background: var(--rf-paper);
    color: var(--rf-ink);
    box-shadow: 0 22px 50px rgba(16, 17, 20, 0.07);
}

.rf-form-intro h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
}

.rf-form-intro p {
    margin: 0 0 22px;
    color: var(--rf-steel);
    font-size: 14px;
    line-height: 1.6;
}

.rf-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff4f2;
    color: var(--rf-wine);
    font-size: 13.5px;
    font-weight: 500;
}

.rf-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
}

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

.rf-field-full {
    grid-column: 1 / -1;
}

.rf-field label,
.rf-field .form-label {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rf-ink);
}

.rf-req {
    color: var(--rf-accent);
}

.rf-control {
    position: relative;
}

.rf-control i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9a9a9a;
    font-size: 13px;
    pointer-events: none;
}

.rf-control--area i {
    top: 16px;
    transform: none;
}

.rf-input,
.rf-field .form-select,
.rf-field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px 10px 40px;
    border: 1px solid var(--rf-line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--rf-ink);
    font-size: 14.5px;
    font-weight: 500;
    font-family: inherit;
}

.rf-field .form-select,
.rf-field select.form-select,
.rf-field select.rf-input {
    padding-left: 14px;
    background-image: none;
}

.rf-field textarea.rf-input {
    min-height: 92px;
    padding-top: 12px;
    resize: vertical;
}

.rf-input:focus,
.rf-field .form-select:focus,
.rf-field select:focus {
    outline: none;
    border-color: var(--rf-accent);
    box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.18);
}

.rf-field.is-invalid .rf-input,
.rf-field.is-invalid .form-select {
    border-color: var(--rf-wine);
}

.rf-error {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--rf-wine);
}

.rf-hint {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--rf-muted);
}

.rf-terms {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #3a3a3a;
}

.rf-terms input {
    margin-top: 3px;
    accent-color: var(--rf-accent);
}

.rf-terms a {
    color: var(--rf-ink);
}

.rf-submit {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid var(--rf-accent);
    border-radius: 50px;
    background: var(--rf-accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.rf-submit:hover {
    background: var(--rf-accent-dark);
    border-color: var(--rf-accent-dark);
    color: #ffffff;
}

.rf-form-links {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--rf-muted);
}

.rf-form-links a {
    color: var(--rf-ink);
}

.rf-success {
    text-align: center;
    padding: 12px 8px 8px;
}

.rf-success-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rf-accent);
    color: #ffffff;
    font-size: 20px;
}

.rf-success h2 {
    margin: 0 0 8px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.rf-success p {
    margin: 0 0 22px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--rf-steel);
}

.rf-success-steps {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    text-align: left;
    display: grid;
    gap: 12px;
}

.rf-success-steps li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
}

.rf-success-steps span {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rf-accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.rf-success-steps small {
    display: block;
    margin-top: 2px;
    color: var(--rf-muted);
    font-size: 13px;
}

.rf-invite-note {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--rf-soft);
    border: 1px solid var(--rf-line);
    font-size: 13.5px;
    font-weight: 500;
    color: #3a3a3a;
}

.rf-body .success-btn {
    background: var(--rf-accent);
    border-color: var(--rf-accent);
}

.rf-body .success-btn:hover {
    background: var(--rf-accent-dark);
    border-color: var(--rf-accent-dark);
}

@media (max-width: 991.98px) {
    .referral-page .testimonials-section {
        padding: 40px 18px 8px;
    }

    .referral-page .testimonials-card {
        min-height: auto;
        border-radius: 28px;
    }

    .referral-page .testimonials-content {
        max-width: 680px;
        padding: 52px 30px 40px;
    }

    .referral-page .testimonials-title {
        letter-spacing: -2px;
    }

    .rf-wrap {
        width: min(1080px, calc(100% - 36px));
    }

    .rf-facts {
        margin-top: 12px;
    }

    .rf-facts-grid,
    .rf-chain-grid,
    .rf-steps,
    .rf-apply-layout {
        grid-template-columns: 1fr 1fr;
    }

    .rf-step:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 420px;
    }

    .rf-step:not(:last-child)::after {
        display: none;
    }

    .rf-apply-layout {
        gap: 28px;
    }
}

@media (max-width: 767.98px) {
    .rf-facts-grid,
    .rf-chain-grid,
    .rf-steps,
    .rf-apply-layout {
        grid-template-columns: 1fr;
    }

    .rf-step:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .rf-band {
        padding: 44px 0;
    }
}

@media (max-width: 575.98px) {
    .referral-page .testimonials-section {
        padding: 20px 12px 4px;
    }

    .referral-page .testimonials-card {
        border-radius: 22px;
    }

    .referral-page .testimonials-content {
        padding: 36px 20px 32px;
    }

    .referral-page .section-label {
        margin-bottom: 15px;
        font-size: 11px;
    }

    .referral-page .testimonials-title {
        font-size: 35px;
        line-height: 1.07;
        letter-spacing: -1.8px;
    }

    .referral-page .testimonials-description {
        margin-top: 16px;
        font-size: 14.5px;
        line-height: 1.55;
    }

    .rf-hero-actions {
        display: grid;
        gap: 14px;
        margin-top: 28px;
        justify-items: center;
    }

    .referral-page .success-btn {
        min-height: 45px;
        margin-top: 0;
        padding: 11px 19px;
        width: 100%;
    }

    .rf-wrap {
        width: calc(100% - 24px);
    }

    .rf-facts-grid,
    .rf-chain-grid,
    .rf-steps,
    .rf-apply-layout {
        grid-template-columns: 1fr;
    }

    .rf-step:nth-child(3) {
        max-width: none;
    }

    .rf-form-shell {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .rf-fields {
        grid-template-columns: 1fr;
    }

    .rf-input,
    .rf-field .form-select,
    .rf-field select {
        font-size: 16px;
    }
}

@media (max-width: 374.98px) {
    .referral-page .testimonials-title {
        font-size: 31px;
    }

    .referral-page .testimonials-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .referral-page .success-btn,
    .referral-page .success-btn svg {
        transition: none;
    }
}
