/* ============================================================
   eCheck Referral Program — landing page
   Design language matched to the approved application design.
   ============================================================ */

:root {
    --rp-red: #ff3b3b;
    --rp-red-dark: #e92e2e;
    --rp-ink: #161b28;
    --rp-mute: #6b7280;
    --rp-line: #e7e9ef;
    --rp-field: #d9dde6;
    --rp-soft: #f5f6f8;
}

/* Shared bits ------------------------------------------------ */
.rp-eyebrow {
    display: inline-block;
    color: #ff382e;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.rp-section-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    color: var(--rp-ink);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.6px;
    margin: 0 0 6px;
}
.rp-section-sub {
    font-family: 'Inter', sans-serif;
    color: var(--rp-mute);
    font-size: 1.02rem;
    line-height: 1.6;
    margin: 14px 0 0;
}
.rp-divider {
    width: 62px;
    height: 4px;
    border-radius: 10px;
    background: var(--rp-red);
    position: relative;
    margin: 14px 0 20px;
}
.rp-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--rp-ink);
}
.rp-divider-center { margin-left: auto; margin-right: auto; }
.rp-head-center { max-width: 760px; margin: 0 auto 42px; }

/* Buttons ---------------------------------------------------- */
.rp-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--rp-red);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 14px 30px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 0.7px;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 59, 59, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.rp-btn:hover {
    background: var(--rp-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(255, 59, 59, 0.32);
    color: #fff !important;
}
.rp-btn-block { width: 100%; justify-content: center; margin-top: 6px; }

/* Check list (hero highlights) ------------------------------ */
.rp-check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.rp-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    color: #374151;
    line-height: 1.5;
}
.rp-check-list li i { color: #ff382e; font-size: 1.15rem; flex-shrink: 0; margin-top: 1px; }

/* ============ 1. HERO ============ */
.rp-hero {
    background: linear-gradient(180deg, #fdfaf7 0%, #ffffff 100%);
    padding: 70px 0;
}
.rp-hero-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    color: var(--rp-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
}
.rp-hero-lead {
    font-family: 'Inter', sans-serif;
    color: var(--rp-mute);
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 0 0 14px;
}
.rp-highlights { margin-top: 26px; }
.rp-highlights-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--rp-ink);
    margin: 0 0 14px;
}

/* Hero form card */
.rp-form-card {
    background: #fff;
    border: 1px solid var(--rp-line);
    border-radius: 16px;
    padding: 32px 30px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}
.rp-form-heading {
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    color: var(--rp-ink);
    font-size: 1.5rem;
    margin: 0 0 4px;
}
.rp-form-sub {
    font-family: 'Inter', sans-serif;
    color: var(--rp-mute);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 20px;
}
.rp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-bottom: 16px;
}
.rp-col-2 { grid-column: 1 / -1; }
.rp-field { display: flex; flex-direction: column; }
.rp-field label {
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: #3a4250;
    margin-bottom: 7px;
}
.rp-field .rp-opt { color: var(--rp-mute); font-weight: 400; }
.rp-form input[type="text"],
.rp-form input[type="email"],
.rp-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--rp-field);
    background: #fff;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--rp-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rp-form input::placeholder { color: #9aa0ab; }
.rp-form select {
    appearance: none; -webkit-appearance: none; -moz-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; padding-right: 38px;
}
.rp-form input:focus, .rp-form select:focus {
    outline: none; border-color: var(--rp-red); box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.12);
}
.rp-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #3a4250;
    line-height: 1.45;
    margin: 0 0 12px;
    cursor: pointer;
}
.rp-check input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--rp-red); flex-shrink: 0; }
.rp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rp-success {
    display: flex; align-items: center; gap: 10px;
    background: #ecfdf3; border: 1px solid #abefc6; color: #11823b;
    border-radius: 10px; padding: 12px 16px; margin-bottom: 18px;
    font-family: 'Inter', sans-serif; font-size: 0.92rem;
}
.rp-success i { font-size: 1.3rem; color: #17b26a; }

/* ============ 2. OVERVIEW ============ */
.rp-overview { padding: 70px 0; background: #fff; }
.rp-overview-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, #fff6f6 0%, #fff 100%);
    border: 1px solid #ffe0e0;
    border-radius: 22px;
    padding: 48px 44px;
}
.rp-overview-text {
    font-family: 'Inter', sans-serif;
    color: #4b5563;
    font-size: 1.04rem;
    line-height: 1.8;
    margin: 0 0 16px;
}
.rp-overview-text:last-child { margin-bottom: 0; }

/* ============ 3. HOW IT WORKS ============ */
.rp-hiw { padding: 70px 0; background: var(--rp-soft); }
.rp-step-card {
    background: #fff;
    border: 1px solid var(--rp-line);
    border-radius: 16px;
    padding: 34px 26px 28px;
    height: 100%;
    text-align: center;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rp-step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    border-color: #ffd6d6;
}
.rp-step-num {
    width: 58px; height: 58px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--rp-red) 0%, #ff6b6b 100%);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    box-shadow: 0 10px 22px rgba(255, 59, 59, 0.3);
}
.rp-step-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--rp-ink);
    font-size: 1.2rem;
    margin: 0 0 10px;
}
.rp-step-desc {
    font-family: 'Inter', sans-serif;
    color: var(--rp-mute);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============ 4. WHO CAN JOIN ============ */
.rp-who { padding: 70px 0; background: #fff; }
.rp-who-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}
.rp-who-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--rp-line);
    border-radius: 12px;
    padding: 18px 18px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--rp-ink);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.rp-who-item:hover { transform: translateY(-4px); border-color: #ffd6d6; box-shadow: 0 12px 26px rgba(255, 59, 59, 0.12); }
.rp-who-item i {
    color: #ff382e;
    font-size: 1.2rem;
    background: #fff1f1;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rp-who-note {
    text-align: center;
    margin: 34px auto 0;
    max-width: 760px;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: var(--rp-mute);
}
.rp-who-note i { color: #ff382e; }

/* ============ 5. PARTNER BENEFITS ============ */
.rp-benefits { padding: 70px 0; background: var(--rp-soft); }
.rp-benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.rp-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: #fff;
    border: 1px solid var(--rp-line);
    border-radius: 12px;
    padding: 18px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    color: #374151;
    line-height: 1.5;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rp-benefit-list li:hover { transform: translateX(5px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.rp-benefit-list li i { color: #ff382e; font-size: 1.3rem; flex-shrink: 0; }
.rp-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 22px;
    background: #fff8ed;
    border: 1px solid #ffe2b8;
    border-radius: 12px;
    padding: 16px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #8a5a12;
}
.rp-warning i { color: #f0a020; font-size: 1.2rem; flex-shrink: 0; margin-top: 1px; }

/* ============ 6. GUIDELINES ============ */
.rp-guidelines { padding: 70px 0; background: #fff; }
.rp-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}
.rp-guide-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    background: var(--rp-soft);
    border: 1px solid var(--rp-line);
    border-radius: 12px;
    padding: 20px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 0.97rem;
    color: #374151;
    line-height: 1.5;
}
.rp-guide-item i {
    color: #ff382e;
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ============ 7. FINAL CTA ============ */
.rp-cta { padding: 30px 0 80px; background: #fff; }
.rp-cta-inner {
    background: linear-gradient(135deg, #1a1f2e 0%, #2a1717 100%);
    border-radius: 22px;
    padding: 60px 44px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}
.rp-cta-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 90% at 80% 0%, rgba(255,59,59,0.25) 0%, rgba(255,59,59,0) 60%);
    pointer-events: none;
}
.rp-cta-heading {
    position: relative;
    font-family: 'Oswald', sans-serif;
    font-weight: 800;
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 14px;
}
.rp-cta-sub {
    position: relative;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 auto 28px;
}
.rp-cta .rp-btn-light {
    position: relative;
    background: #fff;
    color: #ff382e !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.rp-cta .rp-btn-light:hover { background: var(--rp-red); color: #fff !important; }

/* ============ Responsive ============ */
@media (max-width: 991px) {
    .rp-hero { padding: 50px 0; }
    .rp-form-card { margin-top: 10px; }
    .rp-who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .rp-overview-card { padding: 32px 22px; }
    .rp-grid { grid-template-columns: 1fr; }
    .rp-who-grid { grid-template-columns: 1fr; }
    .rp-guide-grid { grid-template-columns: 1fr; }
    .rp-cta-inner { padding: 40px 24px; }
}
