/* ============================================================================
   Referral Landing — /referral/
   Fonts (Raleway, Montserrat) already loaded by main.css.
   ============================================================================ */

/* ── Design tokens ────────────────────────────────────────────────────────── */

.rl-page {
    --rl-bg: #060e1f;
    --rl-blue: #0172fd;
    --rl-green: #42d677;
    --rl-gold: #f5c842;
    --rl-white: #f4f5f5;
    --rl-text-muted: #dbdbdb;
    --rl-text-accent: #bbd9ff;
    --rl-card-bg: #2563eb26;
    --rl-card-border: #2563eb4c;
    --rl-card-shadow: 4px 4px 0 #0172fd;
    --rl-inner: 1676px;
    --rl-gap-section: 88px;

    background-color: var(--rl-bg);
    color: #ffffff;
    font-family: "Raleway", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Container ────────────────────────────────────────────────────────────── */

.rl-container {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: calc(var(--rl-inner) + 2 * 122px);
    padding-left: clamp(24px, 6.35vw, 122px);
    padding-right: clamp(24px, 6.35vw, 122px);
    width: 100%;
}

/* ── Decorative blurs ─────────────────────────────────────────────────────── */

.rl-blur {
    border-radius: 104.5px;
    filter: blur(67.5px);
    opacity: 0.5;
    pointer-events: none;
    position: absolute;
    user-select: none;
}

.rl-blur--hero-left {
    background: var(--rl-blue);
    height: 216px;
    left: 2%;
    top: 18%;
    transform: rotate(40deg);
    width: 151px;
}

.rl-blur--hero-right {
    background: var(--rl-blue);
    height: 216px;
    right: 2%;
    top: 50%;
    transform: rotate(40deg);
    width: 151px;
}

.rl-blur--hero-green {
    background: #0a9240;
    height: 133px;
    right: 30%;
    top: 10%;
    transform: rotate(87.5deg);
    width: 93px;
}

.rl-blur--mid-right {
    background: var(--rl-blue);
    height: 216px;
    right: 0;
    top: 48%;
    transform: rotate(40deg);
    width: 151px;
}

.rl-blur--mid-left {
    background: var(--rl-blue);
    height: 216px;
    left: 0;
    top: 65%;
    transform: rotate(139deg);
    width: 151px;
}

/* ══════════════════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════════════════ */

.rl-hero {
    overflow: hidden;
    padding: 180px 0 0;
    font-size: clamp(2rem, 3.7vw, 4rem);
    position: relative;
}

.rl-hero .rl-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 36px;
    text-align: center;
}

.rl-hero__text {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 20px;
}

/* Gradient headline */
.rl-hero__title {
    background: linear-gradient(90deg, #f4f5f5 0%, #65aaff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: "Raleway", sans-serif;
    font-size: clamp(3rem, 3.7vw, 4rem) !important;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin: 0;
    text-shadow: none;
}

/* Subtitle with green accent words */
.rl-hero__sub {
    color: transparent;
    font-size: clamp(1rem, 1.15vw, 1.5rem);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    max-width: 700px;
    text-shadow: 0 4px 4px #00000040;
    text-align: center;
}

.rl-hero__sub .rl-text-white {
    color: #ffffff;
    font-weight: 500;
}

.rl-hero__sub .rl-text-green {
    color: #15dc5c;
    font-weight: 600;
}

/* CTA button */
.rl-hero__cta {
    align-items: center;
    align-self: center;
    background-color: var(--rl-blue);
    border-radius: 0;
    color: #ffffff;
    display: inline-flex;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    gap: 14px;
    line-height: 1.1;
    padding: clamp(14px, 1.6vw, 23px) clamp(20px, 3vw, 36px);
    text-decoration: none;
    transition: opacity 0.2s;
}

.rl-hero__cta:hover {
    color: #fff;
    opacity: 0.9;
}

.rl-hero__cta img {
    display: block;
    height: clamp(12px, 1.4vw, 22px);
    width: auto;
}

/* Hero right: images */
.rl-hero__media {
    position: relative;
    min-height: 400px;
}

.rl-blur--hero-media {
    background: var(--rl-blue);
    bottom: 0;
    height: 216px;
    right: 30%;
    top: auto;
    transform: rotate(40deg);
    width: 151px;
}

.rl-hero__media-main {
    display: block;
    height: auto;
    left: 50%;
    position: absolute;
    top: 38px;
    transform: translateX(-50%);
    width: 100%;
    max-width: 487px;
    object-fit: cover;
}

.rl-hero__media-badge {
    display: block;
    height: 63px;
    left: calc(50% - 130px);
    position: absolute;
    top: 0;
    width: 63px;
    object-fit: cover;
}

/* Hero cat illustration — in-flow, right-aligned, 2rem top/bottom */
.rl-hero__cat {
    display: block;
    margin: 2rem clamp(20px, 5%, 120px) 2rem auto;
    pointer-events: none;
    user-select: none;
    width: clamp(180px, 20vw, 340px);
}

/* ══════════════════════════════════════════════════════════════════════════
   CONTENT AREA (Benefits, Steps, Cards, Terms)
══════════════════════════════════════════════════════════════════════════ */

.rl-content {
    overflow: hidden;
    padding: 0 0 80px;
    position: relative;
}

.rl-content .rl-container {
    display: flex;
    flex-direction: column;
    gap: var(--rl-gap-section);
}

/* Section label (BENEFITS, HOW IT WORKS, SIMPLE TERMS) */
.rl-section-label {
    color: var(--rl-text-accent);
    font-family: "Raleway", sans-serif;
    font-size: clamp(1rem, 1.85vw, 2rem);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0 0 36px;
}

/* ── Benefits ────────────────────────────────────────────────────────────── */

.rl-benefits {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.rl-benefit-card {
    background-color: var(--rl-card-bg);
    border: 1px solid var(--rl-card-border);
    box-shadow: var(--rl-card-shadow);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-height: 200px;
    padding: 20px 48px 20px 32px;
    position: relative;
    width: 100%;
}

.rl-benefit-card__graphic {
    flex-shrink: 0;
    height: auto;
    pointer-events: none;
    width: clamp(140px, 16vw, 260px);
}

.rl-benefit-card__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: clamp(24px, 3vw, 60px);
}

.rl-benefit-card__title {
    color: var(--rl-white);
    font-family: "Raleway", sans-serif;
    font-size: clamp(1.5rem, 2.4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.rl-benefit-card__text {
    color: #ffffff;
    font-size: clamp(1rem, 1.15vw, 1.5rem);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    max-width: 750px;
}

/* ── How It Works ────────────────────────────────────────────────────────── */

.rl-steps-line {
    display: block;
    height: auto;
    margin-bottom: -1px;
    margin-left: -1px;
    pointer-events: none;
    width: calc(100% + 2px);
}

.rl-steps {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.rl-step-card {
    background-color: var(--rl-card-bg);
    border: 1px solid var(--rl-card-border);
    box-shadow: var(--rl-card-shadow);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 32px 24px 36px;
}

.rl-step-card__num {
    align-items: center;
    background-color: var(--rl-blue);
    border-radius: 12px;
    color: var(--rl-white);
    display: flex;
    flex-shrink: 0;
    font-family: "Raleway", sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 600;
    height: clamp(40px, 3vw, 52px);
    justify-content: center;
    letter-spacing: -1.5px;
    width: clamp(40px, 3vw, 52px);
}

.rl-step-card__title {
    color: var(--rl-white);
    font-family: "Raleway", sans-serif;
    font-size: clamp(1rem, 1.15vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.rl-step-card__text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

/* ── Accent cards (Boosted Bonus & Example Earnings) ─────────────────────── */

.rl-accent-card {
    box-sizing: border-box;
    display: flex;
    min-height: 200px;
    padding: 40px 48px;
    position: relative;
    width: 100%;
}

.rl-accent-card--gold {
    box-shadow: 4px 4px 0 var(--rl-gold);
}

.rl-accent-card--green {
    box-shadow: 4px 4px 0 var(--rl-green);
}

.rl-accent-card__bg {
    height: 100%;
    left: 0;
    object-fit: cover;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.rl-accent-card__inner {
    align-items: center;
    display: flex;
    gap: 40px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.rl-accent-card__icon {
    flex-shrink: 0;
    height: clamp(80px, 10vw, 160px);
    width: clamp(80px, 10vw, 160px);
}

.rl-accent-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 24px;
}

.rl-accent-card__label {
    font-family: "Raleway", sans-serif;
    font-size: clamp(1rem, 1.85vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
    margin: 0;
}

.rl-accent-card__label--gold {
    color: var(--rl-gold);
}

.rl-accent-card__label--green {
    color: var(--rl-green);
}

.rl-accent-card__desc {
    color: #ffffff;
    font-size: clamp(1rem, 1.15vw, 1.5rem);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    max-width: 760px;
}

.rl-accent-card__big-num {
    flex-shrink: 0;
    font-family: "Raleway", sans-serif;
    font-size: clamp(2rem, 3.7vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
}

.rl-accent-card__big-num--gold {
    color: var(--rl-gold);
}

.rl-accent-card__big-num--green {
    align-items: flex-end;
    color: var(--rl-green);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rl-accent-card__big-num-sub {
    color: var(--rl-text-muted);
    display: block;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.1;
}

/* Rate pills (Boosted Bonus) */
.rl-rates {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.rl-rates__pill {
    align-items: center;
    border-radius: 9999px;
    border-width: 1px;
    border-style: solid;
    display: inline-flex;
    gap: 10px;
    padding: 10px 24px;
}

.rl-rates__pill--muted {
    background: #ffffff0a;
    border-color: #ffffff1f;
}

.rl-rates__pill--gold {
    background: #f5c8421f;
    border-color: #f5c8424c;
}

.rl-rates__name {
    color: var(--rl-text-muted);
    font-size: clamp(1rem, 1.7vw, 2rem);
    font-weight: 500;
    white-space: nowrap;
}

.rl-rates__name--gold {
    color: var(--rl-gold);
}

.rl-rates__val {
    color: #efefef;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.rl-rates__val--gold {
    color: var(--rl-gold);
}

.rl-rates__arrow {
    display: block;
    height: auto;
    width: clamp(24px, 2.2vw, 40px);
}

/* Tags (Example Earnings) */
.rl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rl-tags__pill {
    border: 1px solid #ffffff1f;
    border-radius: 9999px;
    color: #9da1ac;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 24px;
    white-space: nowrap;
}

/* ── Simple Terms ────────────────────────────────────────────────────────── */

.rl-terms {
    background-color: #ffffff17;
    border: 1px solid #ffffff1f;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.rl-terms__label,
.rl-terms__value {
    box-sizing: border-box;
    padding: clamp(16px, 2vw, 31px) clamp(20px, 3.8vw, 64px);
}

.rl-terms__label {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--rl-text-muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.1;
}

.rl-terms__value {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--rl-white);
    font-size: clamp(1rem, 1.15vw, 1.5rem);
    font-weight: 500;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.rl-terms__label:nth-last-child(2),
.rl-terms__value:last-child {
    border-bottom: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   SIGNUP / FORM SECTION
══════════════════════════════════════════════════════════════════════════ */

.rl-signup {
    box-shadow: 0 4px 4px #00000040;
    background: linear-gradient(180deg, #060e1f 0%, #0071fc 100%);
    box-sizing: border-box;
    overflow: hidden;
    padding: 120px 0 80px;
    position: relative;
}

.rl-signup .rl-container {
    align-items: flex-start;
    display: grid;
    gap: clamp(40px, 5vw, 120px);
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 2;
}

/* Left column */
.rl-signup__left {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 20px;
}

/* Right column: note above form card */
.rl-signup__right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rl-signup__title {
    background: linear-gradient(90deg, #f4f5f5 0%, #65aaff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: "Raleway", sans-serif;
    font-size: clamp(3rem, 3.2vw, 4rem) !important;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin: 0;
}

.rl-signup__note {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    opacity: 0.8;
}

.rl-signup__copy {
    color: var(--rl-white);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    margin-top: auto;
}

/* Decorative photo — in-flow, left-aligned, 2rem top/bottom */
.rl-signup__photo {
    display: block;
    margin: 2rem 0 2rem clamp(40px, 15%, 286px);
    max-width: 659px;
    pointer-events: none;
    user-select: none;
    width: 35vw;
}

/* CAS logo mark (bottom-right corner) */
.rl-signup__logo-mark {
    bottom: 60px;
    height: auto;
    pointer-events: none;
    position: absolute;
    right: 24px;
    user-select: none;
    width: clamp(40px, 4.5vw, 83px);
    z-index: 1;
}

/* ══════════════════════════════════════════════════════════════════════════
   FORM CARD
══════════════════════════════════════════════════════════════════════════ */

.rl-form-card {
    background-color: #ffffff;
    border-radius: 24px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 28px;
    position: relative;
    z-index: 3;
}

.rl-form-card__shadow {
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px #00000033;
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Form layout */
.rl-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.rl-form__heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.rl-form__title {
    color: #131313;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1rem, 1.04vw, 1.5rem);
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.rl-form__sub {
    color: #767676;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

.rl-form__row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.rl-form__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Inputs — shared base
   Use input.rl-form__input (specificity 0,1,1) to beat the theme's
   input[type="text"] { border: 1px solid transparent } rule (also 0,1,1)
   — wins via cascade order since referral-landing.css loads last. */
input.rl-form__input {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f9fafb80;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
    color: #131313;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    height: 50px;
    outline: none;
    padding: 0 24px;
    transition: border-color 0.15s;
    width: 100%;
}

input.rl-form__input::placeholder {
    color: #a4a4a4;
}

input.rl-form__input:focus {
    border-color: var(--rl-blue);
}

input.rl-form__input.is-invalid {
    border-color: #c93227;
    background-color: #fff0f0;
}

input.rl-form__input.is-valid {
    border-color: var(--rl-blue);
    background-color: #e8f0fe;
}

/* Password wrap */
.rl-form__pw-wrap {
    align-items: center;
    background-color: #f9fafb80;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    height: 50px;
    padding: 0 16px;
    position: relative;
    transition: border-color 0.15s;
}

.rl-form__pw-wrap:focus-within {
    border-color: var(--rl-blue);
}

.rl-form__pw-wrap.is-valid {
    border-color: var(--rl-blue);
    background-color: #e8f0fe;
}

.rl-form__pw-wrap.is-invalid {
    border-color: #c93227;
    background-color: #fff0f0;
}

.rl-form__pw-wrap input {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    color: #131313;
    flex: 1;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    height: 100%;
    outline: none;
    padding: 0;
    width: 100%;
}

.rl-form__pw-wrap input::placeholder {
    color: #a4a4a4;
}

.rl-form__pw-wrap input:-webkit-autofill,
.rl-form__pw-wrap input:-webkit-autofill:hover,
.rl-form__pw-wrap input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #f9fafb inset;
    -webkit-text-fill-color: #131313;
}

/* Reuse existing rf-pw-toggle styles (already in referral-form.js DOM) */
.rl-form__pw-toggle {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.5;
    padding: 4px;
    transition: opacity 0.15s;
}

.rl-form__pw-toggle:hover {
    opacity: 1;
}

.rl-form__pw-toggle .rf-eye-open {
    display: none;
}

.rl-form__pw-toggle[aria-pressed="true"] .rf-eye-closed {
    display: none;
}

.rl-form__pw-toggle[aria-pressed="true"] .rf-eye-open {
    display: block;
}

/* Messenger picker — reuse rf-* classes from referral-form.js */
.rl-form__messenger-wrap {
    position: relative;
    width: 100%;
}

/* Override rf-* sizing for this form */
.rl-form__messenger-wrap .rf-messenger-picker {
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
}

.rl-form__messenger-wrap .rf-messenger-trigger {
    background-color: #f9fafb80;
    border: 1px solid #e5e7eb;
    border-radius: 12px 0 0 12px;
    border-right: none;
    color: #131313;
    font-size: 1rem;
    height: 50px;
    width: 140px;
    gap: 0.5rem;
}

.rl-form__messenger-wrap .rf-messenger-trigger:hover,
.rl-form__messenger-wrap .rf-messenger-select.is-open .rf-messenger-trigger {
    border-color: var(--rl-blue);
    z-index: 1;
}

.rl-form__messenger-wrap .rf-contact-inputs {
    flex: 1;
}

.rl-form__messenger-wrap .rf-contact-inputs .rf-input,
.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-text,
.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-phone {
    appearance: none;
    -webkit-appearance: none;
    background-color: #f9fafb80;
    border: 1px solid #e5e7eb;
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-sizing: border-box;
    color: #131313;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    height: 50px;
    outline: none;
    padding: 0 24px;
    transition: border-color 0.15s;
    width: 100%;
}

.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-text,
.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-phone {
    display: none;
}

.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-text.active {
    display: block;
}

.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-phone.active {
    display: block;
}

/* intlTelInput wraps rf-contact-phone in .iti — constrain it */
.rl-form__messenger-wrap .rf-contact-inputs .iti {
    display: none;
    min-width: 0;
    width: 100%;
}

.rl-form__messenger-wrap .rf-contact-inputs .iti.active {
    display: block;
}

.rl-form__messenger-wrap .rf-contact-inputs .iti input,
.rl-form__messenger-wrap .rf-contact-inputs .iti .iti__phone-input {
    border-left: none;
    border-radius: 0 12px 12px 0;
    box-sizing: border-box;
    height: 50px;
    padding-left: 58px; /* 48px flag button + 10px gap */
    width: 100%;
}

.rl-form__messenger-wrap .rf-contact-inputs .rf-input:focus,
.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-text:focus,
.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-phone:focus {
    border-color: var(--rl-blue);
}

/* Highlight the trigger button too when the contact input is focused */
.rl-form__messenger-wrap .rf-messenger-picker:focus-within .rf-messenger-trigger {
    border-color: var(--rl-blue);
    z-index: 1;
}

.rl-form__messenger-wrap .rf-contact-inputs .rf-input::placeholder,
.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-text::placeholder,
.rl-form__messenger-wrap .rf-contact-inputs .rf-contact-phone::placeholder {
    color: #a4a4a4;
}

.rl-form__messenger-wrap .rf-messenger-dropdown {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px #00000018;
    display: none;
    left: 0;
    list-style: none;
    margin: 0;
    min-width: 160px;
    padding: 6px;
    position: absolute;
    top: calc(100% + 4px);
    z-index: 200;
}

.rl-form__messenger-wrap .rf-messenger-select.is-open .rf-messenger-dropdown {
    display: block;
}

.rl-form__messenger-wrap .rf-messenger-option {
    align-items: center;
    border-radius: 8px;
    color: #131313;
    cursor: pointer;
    display: flex;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    gap: 8px;
    padding: 8px 10px;
    transition: background-color 0.12s;
}

.rl-form__messenger-wrap .rf-messenger-option:hover {
    background: #f3f4f6;
}

.rl-form__messenger-wrap .rf-messenger-option.is-selected {
    color: var(--rl-blue);
}

/* Hint + error */
.rl-form__hint {
    color: #9ca3af;
    font-family: "Raleway", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    margin: 0;
    padding: 0 2px;
}

.rl-form__hint.is-invalid {
    color: #c93227;
}

.rl-form__error {
    color: #c93227;
    font-family: "Raleway", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    padding: 0 10px;
}

.rl-form__error[hidden] {
    display: none;
}

/* Privacy */
.rl-form__privacy {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 8px;
}

.rl-form__privacy input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #767676;
    border-radius: 2.5px;
    cursor: pointer;
    flex-shrink: 0;
    height: 16px;
    position: relative;
    transition: background-color 0.15s, border-color 0.15s;
    width: 16px;
}

.rl-form__privacy input[type="checkbox"]:checked {
    background-color: var(--rl-blue);
    border-color: var(--rl-blue);
}

.rl-form__privacy input[type="checkbox"]:checked::after {
    border: 2px solid #fff;
    border-left: none;
    border-top: none;
    content: '';
    height: 9px;
    left: 4px;
    position: absolute;
    top: 1px;
    transform: rotate(45deg);
    width: 5px;
}

.rl-form__privacy input[type="checkbox"].is-invalid {
    border-color: #c93227;
    background-color: #fff0f0;
}

.rl-form__privacy-text {
    color: #767676;
    font-family: "Raleway", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.5;
}

.rl-form__privacy-link {
    color: var(--rl-blue);
    font-size: 0.8rem;
    text-decoration: underline;
}

/* Submit button */
.rl-form__submit {
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--rl-blue);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    height: 46px;
    justify-content: center;
    position: relative;
    transition: opacity 0.15s, background-color 0.2s;
    width: 100%;
}

.rl-form__submit:hover {
    opacity: 0.9;
}

.rl-form__submit:active {
    opacity: 0.8;
}

.rl-form__submit:disabled {
    background-color: #969ea9;
    cursor: not-allowed;
    pointer-events: none;
}

/* Spinner + text (reuse rf-btn-* for JS compatibility) */
.rl-form__submit .rf-btn-text {
    color: #ffffff;
    font-family: "Raleway", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.1;
    position: relative;
    transition: opacity 0.18s, transform 0.18s;
    white-space: nowrap;
}

.rl-form__submit .rf-btn-spinner {
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    height: 20px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 0.18s;
    width: 20px;
}

.rl-form__submit.is-loading .rf-btn-text {
    opacity: 0;
    transform: scale(0.8);
}

.rl-form__submit.is-loading .rf-btn-spinner {
    animation: rl-spin 0.72s linear infinite;
    opacity: 1;
}

@keyframes rl-spin {
    to {
        transform: rotate(360deg);
    }
}

.rl-form__submit.is-loading:disabled {
    background-color: var(--rl-blue);
    cursor: default;
    pointer-events: none;
}

/* Messages */
.rl-form__success {
    color: var(--rl-blue);
    font-family: "Raleway", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.rl-form__success[hidden] {
    display: none;
}

.rl-form__ajax-error {
    color: #c93227;
    font-family: "Raleway", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

.rl-form__ajax-error[hidden] {
    display: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   THANK-YOU POPUP
══════════════════════════════════════════════════════════════════════════ */

.rl-thx-overlay {
    align-items: center;
    backdrop-filter: blur(0.5rem);
    -webkit-backdrop-filter: blur(0.5rem);
    background: rgba(6, 14, 31, 0.8);
    bottom: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 1.5rem;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9000;
}

.rl-thx-overlay[hidden] {
    display: none;
}

.rl-thx-popup {
    align-items: center;
    animation: rl-thx-in 0.25s ease-out;
    background: #0b1b3e;
    border-radius: 2.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    max-width: 55.5rem;
    overflow: hidden;
    padding: 3rem 3rem 3.5rem;
    position: relative;
    text-align: center;
    width: 100%;
}

@keyframes rl-thx-in {
    from {
        opacity: 0;
        transform: translateY(1rem) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Decorative blurs */
.rl-thx-blur {
    border-radius: 9999px;
    pointer-events: none;
    position: absolute;
}

.rl-thx-blur--tl {
    background: rgba(1, 114, 253, 0.58);
    filter: blur(11.5rem);
    height: 25rem;
    left: -11rem;
    top: -9.5rem;
    width: 25rem;
}

.rl-thx-blur--b {
    background: #0172fd;
    bottom: -2rem;
    filter: blur(11rem);
    height: 6rem;
    left: 3rem;
    right: 3rem;
}

/* Close X */
.rl-thx-x {
    align-items: center;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    height: 2.5rem;
    justify-content: center;
    opacity: 0.6;
    padding: 0.5rem;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    transition: opacity 0.15s;
    width: 2.5rem;
    z-index: 1;
}

.rl-thx-x:hover {
    opacity: 1;
}

/* Image */
.rl-thx-img {
    display: block;
    height: auto;
    margin-bottom: 1.5rem;
    pointer-events: none;
    position: relative;
    width: 8rem;
    z-index: 1;
}

/* Title */
.rl-thx-title {
    color: var(--rl-white);
    font-family: "Raleway", sans-serif;
    font-size: clamp(1rem, 5vw, 2rem);
    font-weight: 700;
    text-align: center;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Subtitle */
.rl-thx-sub {
    color: #ffffff;
    font-family: "Raleway", sans-serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    margin: 0 0 2.5rem;
    max-width: 31rem;
    position: relative;
    z-index: 1;
}

/* Close button */
.rl-thx-btn {
    appearance: none;
    -webkit-appearance: none;
    background: #0272fd;
    border: none;
    border-radius: 0.75rem;
    color: #ffffff;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 600;
    min-width: 22.5rem;
    padding: 1.5rem 3rem;
    position: relative;
    transition: opacity 0.2s;
    z-index: 1;
}

.rl-thx-btn:hover {
    opacity: 0.9;
}

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .rl-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .rl-signup .rl-container {
        grid-template-columns: 1fr;
    }

    .rl-signup__photo {
        display: none;
    }

    .rl-signup__copy {
        order: -1;
        margin-top: 0;
    }

    .rl-signup__left {
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .rl-benefit-card {
        flex-direction: column;
        min-height: auto;
        padding: 24px;
    }

    .rl-benefit-card__graphic {
        align-self: center;
        width: clamp(120px, 40%, 260px);
    }

    .rl-benefit-card__body {
        padding-left: 0;
    }

    .rl-accent-card__inner {
        flex-wrap: wrap;
    }

    .rl-accent-card__icon {
        display: none;
    }

    .rl-form__row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --rl-gap-section: 56px;
    }

    .rl-steps {
        grid-template-columns: 1fr;
    }

    .rl-form__row {
        grid-template-columns: 1fr;
    }

    .rl-accent-card {
        padding: 24px 20px;
        min-height: auto;
    }

    .rl-accent-card__big-num {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }

    .rl-terms__label,
    .rl-terms__value {
        padding: 14px 16px;
    }

    .rl-form-card {
        padding: 24px 20px;
    }

    .rl-signup {
        padding: 60px 0 60px;
    }

    .rl-thx-overlay {
        padding: 1rem;
    }

    .rl-thx-popup {
        border-radius: 1.5rem;
        padding: 2.5rem 1.5rem;
    }

    .rl-thx-img {
        margin-bottom: 1rem;
        width: 6rem;
    }

    .rl-thx-title {
        margin-bottom: 1rem;
    }

    .rl-thx-sub {
        margin-bottom: 2rem;
    }

    .rl-thx-btn {
        min-width: 0;
        width: 100%;
    }
}
