/* ════════════════════════════════════════════════════════════
   /REFERRAL/ — self-contained styles (matches /contact-us/)
   ════════════════════════════════════════════════════════════ */
.rf-page {
    position: relative;
    padding: 130px 0 100px;
    background: #faf6f1;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2a2a2a;
}
.rf-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.rf-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: rfFloat 18s ease-in-out infinite;
}
.rf-blob-1 {
    width: 480px; height: 480px;
    top: -100px; left: -120px;
    background: radial-gradient(circle, #fdc8e0 0%, transparent 70%);
}
.rf-blob-2 {
    width: 520px; height: 520px;
    bottom: -180px; right: -120px;
    background: radial-gradient(circle, #ffd9b8 0%, transparent 70%);
    animation-delay: -6s;
}
.rf-blob-3 {
    width: 360px; height: 360px;
    top: 35%; right: 38%;
    background: radial-gradient(circle, #e8c5a0 0%, transparent 70%);
    opacity: 0.3;
    animation-delay: -12s;
}
@keyframes rfFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(-40px, 30px) scale(1.05); }
    66%      { transform: translate(30px, -40px) scale(0.96); }
}
.rf-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(205,160,127,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(205,160,127,0.07) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 60% 50% at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at center, #000 30%, transparent 80%);
}
.rf-vline { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(205,160,127,0.5); z-index: 1; }
.rf-vline-l { left: 16px; }
.rf-vline-r { right: 16px; }

.rf-shell {
    position: relative;
    z-index: 2;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 768px)  { .rf-shell { padding: 0 48px; } }
@media (min-width: 1024px) { .rf-shell { padding: 0 64px; } }

.rf-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}
@media (min-width: 1024px) {
    .rf-grid-2 { grid-template-columns: 5fr 7fr; gap: 60px; }
}

/* ─── Pitch (left) ─── */
.rf-pitch { display: flex; flex-direction: column; gap: 24px; }
.rf-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(232,52,122,0.1);
    border: 1px solid rgba(232,52,122,0.28);
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #b91c5c;
    width: fit-content;
}
.rf-eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #e8347a;
    box-shadow: 0 0 0 0 rgba(232,52,122,0.7);
    animation: rfPing 1.8s ease-out infinite;
}
@keyframes rfPing {
    0%   { box-shadow: 0 0 0 0 rgba(232,52,122,0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(232,52,122,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,52,122,0); }
}
.rf-h1 {
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: #1a1a1a;
    margin: 0;
}
.rf-h1 em {
    font-style: italic;
    font-weight: 400;
    font-family: "PlayfairDisplay", "Times New Roman", serif;
    background: linear-gradient(135deg, #e8347a 0%, #cda07f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rf-lede {
    font-size: 16px;
    line-height: 1.65;
    color: rgba(42,42,42,0.72);
    max-width: 540px;
    font-weight: 300;
    margin: 0;
}
.rf-lede strong { color: #1a1a1a; font-weight: 600; }

/* stats */
.rf-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 480px;
}
.rf-stat {
    display: flex; flex-direction: column; gap: 4px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid rgba(205,160,127,0.28);
    border-radius: 16px;
    transition: all 0.22s ease;
}
.rf-stat:hover {
    border-color: rgba(232,52,122,0.4);
    transform: translateY(-2px);
    box-shadow: 0 22px 50px -28px rgba(232,52,122,0.3);
}
.rf-stat-accent {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-color: #1a1a1a;
}
.rf-stat-accent:hover {
    background: linear-gradient(135deg, #e8347a 0%, #f472b6 100%);
    border-color: #e8347a;
    box-shadow: 0 22px 50px -22px rgba(232,52,122,0.5);
}
.rf-stat-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(42,42,42,0.5);
}
.rf-stat-accent .rf-stat-label { color: rgba(255,255,255,0.7); }
.rf-stat-num {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    line-height: 1;
}
.rf-stat-accent .rf-stat-num { color: #fff; }

/* recent payouts ticker */
.rf-ticker {
    background: #fff;
    border: 1px solid rgba(205,160,127,0.25);
    border-radius: 18px;
    padding: 18px 20px;
    max-width: 480px;
}
.rf-ticker-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rf-ticker-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16,185,129,0.6);
    animation: rfPingGreen 1.8s ease-out infinite;
}
@keyframes rfPingGreen {
    0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
    100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.rf-ticker-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(42,42,42,0.55);
}
.rf-ticker-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rf-ticker-list li {
    font-size: 13.5px;
    color: rgba(42,42,42,0.72);
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(205,160,127,0.25);
}
.rf-ticker-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rf-ticker-list span { color: #1a1a1a; font-weight: 600; }
.rf-ticker-list strong { color: #e8347a; font-weight: 600; }

/* ─── Form card (right) ─── */
.rf-form-wrap { position: relative; }
.rf-form-card {
    position: relative;
    background: #fff;
    border: 1px solid rgba(205,160,127,0.22);
    border-radius: 26px;
    overflow: hidden;
    box-shadow:
        0 40px 90px -30px rgba(42,42,42,0.28),
        0 0 0 1px rgba(255,255,255,0.6) inset;
}
.rf-corner {
    position: absolute;
    width: 16px; height: 16px;
    border: 1.5px solid #e8347a;
    pointer-events: none;
    z-index: 5;
}
.rf-corner-tl { top: -1px; left: -1px;     border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.rf-corner-tr { top: -1px; right: -1px;    border-left: 0;  border-bottom: 0; border-top-right-radius: 8px; }
.rf-corner-bl { bottom: -1px; left: -1px;  border-right: 0; border-top: 0;    border-bottom-left-radius: 8px; }
.rf-corner-br { bottom: -1px; right: -1px; border-left: 0;  border-top: 0;    border-bottom-right-radius: 8px; }

.rf-form-head {
    padding: 28px 32px 26px;
    background: linear-gradient(135deg, #fdf2f8 0%, #fff 50%, #fef6e9 100%);
    border-bottom: 1px solid rgba(205,160,127,0.18);
}
.rf-form-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(232,52,122,0.1);
    border: 1px solid rgba(232,52,122,0.25);
    font-size: 10.5px; font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b91c5c;
    margin-bottom: 12px;
}
.rf-form-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #e8347a;
    box-shadow: 0 0 0 0 rgba(232,52,122,0.7);
    animation: rfPing 1.8s ease-out infinite;
}
.rf-form-head h2 {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.rf-form-head p {
    font-size: 13.5px;
    color: rgba(42,42,42,0.65);
    margin: 0;
}

.rf-form { padding: 24px 32px 28px; }
.rf-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
@media (min-width: 640px) { .rf-cols { grid-template-columns: 1fr 1fr; gap: 28px; } }
.rf-col { display: flex; flex-direction: column; gap: 14px; }
.rf-col-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e8347a;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(232,52,122,0.18);
}
.rf-field { display: flex; flex-direction: column; gap: 6px; }
.rf-field label {
    font-size: 12px; font-weight: 600;
    color: #2a2a2a;
}
.rf-req { color: #e8347a; margin-left: 2px; }

.rf-form input[type="text"],
.rf-form input[type="email"],
.rf-form input[type="tel"],
.rf-form input[type="url"],
.rf-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(42,42,42,0.12);
    border-radius: 12px;
    background: #faf8f5;
    font-size: 14.5px;
    color: #1a1a1a;
    font-family: inherit;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.rf-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.rf-form input::placeholder { color: #b8b8b8; }
.rf-form input:focus,
.rf-form select:focus {
    outline: none;
    border-color: #e8347a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232,52,122,0.12);
}

.rf-terms {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px;
    color: rgba(42,42,42,0.72);
    line-height: 1.5;
    cursor: pointer;
    margin-top: 4px;
}
.rf-terms input { margin-top: 3px; accent-color: #e8347a; flex-shrink: 0; }
.rf-terms a { color: #e8347a; text-decoration: underline; }
.rf-terms a:hover { text-decoration: none; }

.rf-submit {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 22px;
    border: 1px solid #1a1a1a;
    border-radius: 14px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.22s ease;
    margin-top: 6px;
    font-family: inherit;
}
.rf-submit svg { width: 16px; height: 16px; transition: transform 0.22s; }
.rf-submit:hover {
    background: linear-gradient(135deg, #e8347a 0%, #f472b6 100%);
    border-color: #e8347a;
    transform: translateY(-2px);
    box-shadow: 0 18px 38px -14px rgba(232,52,122,0.6);
}
.rf-submit:hover svg { transform: translateX(4px); }

.rf-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.rf-fineprint {
    font-size: 12px;
    color: #999;
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(0,0,0,0.05);
    line-height: 1.55;
}

.rf-alert {
    display: flex; align-items: flex-start; gap: 10px;
    margin: 18px 32px 0;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
}
.rf-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.rf-alert-ok  { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.rf-alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

@media (max-width: 539px) {
    .rf-page { padding: 110px 0 80px; }
    .rf-form { padding: 20px 22px 24px; }
    .rf-form-head { padding: 22px 22px 20px; }
}
