/* ==============================================
   REFER A FRIEND PAGE
   ============================================== */

body.page-refer #main {
    padding-top: 0;
}


/* ==============================================
   SPLIT HERO — offer left, form card right
   ============================================== */

.refer-hero {
    background: var(--color-charcoal);
    padding-top: calc(var(--promo-height) + var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind the form side */
.refer-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(0, 83, 139, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.refer-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}


/* ---- Offer content ---- */

.refer-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-sky-blue);
    margin-bottom: var(--space-lg);
}

.refer-hero__eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-sky-blue);
    border-radius: 1px;
}

.refer-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: var(--color-white);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
}

.refer-hero h1 em {
    font-style: normal;
    color: var(--color-red);
}

.refer-hero__sub {
    font-size: 1rem;
    color: var(--color-white-dim);
    line-height: 1.7;
    margin: 0 auto var(--space-lg);
    max-width: 540px;
}

.refer-hero__sub strong {
    color: var(--color-white);
    font-weight: 700;
}


/* ---- Two-sided reward block ---- */

.refer-hero__split {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-md);
    margin: 0 auto var(--space-xl);
    max-width: 480px;
}

.refer-hero__split-item {
    flex: 1;
    background: rgba(234, 245, 241, 0.05);
    border: 1px solid rgba(234, 245, 241, 0.12);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.refer-hero__split-amount {
    display: block;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    color: var(--color-red);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.refer-hero__split-label {
    display: block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-sky-blue);
    margin-bottom: var(--space-xs);
}

.refer-hero__split-text {
    display: block;
    font-size: 0.78rem;
    color: var(--color-white-dim);
    line-height: 1.4;
}

.refer-hero__split-plus {
    display: flex;
    align-items: center;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-white-muted);
}


/* ---- Trust bullets ---- */

.refer-hero__trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-lg);
}

.refer-hero__trust li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-white-dim);
    line-height: 1.4;
}

.refer-hero__trust li::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    background: var(--color-sky-blue);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.3 3.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 8.6l5.3-5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M13.3 3.3a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4 0l-3-3a1 1 0 1 1 1.4-1.4L6.6 8.6l5.3-5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
}


/* ==============================================
   FORM SECTION — wide, centered, below the hero
   ============================================== */

.refer-form-section {
    background: var(--color-charcoal);
    padding: 0 0 var(--space-3xl);
}

.refer-form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.refer-form-card__header {
    padding: var(--space-xl) var(--space-xl) var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    text-align: center;
}

.refer-form-card__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brd-blue);
    margin-bottom: var(--space-xs);
}

.refer-form-card__header h2 {
    color: var(--color-charcoal);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.refer-form-card__header p {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 auto;
    max-width: 460px;
}

.refer-form-card__body {
    min-height: 680px;
    padding: var(--space-md);
}

.refer-form-card__body iframe {
    display: block;
    width: 100%;
    border: none;
}


/* ==============================================
   HOW IT WORKS — steps section
   ============================================== */

.refer-steps {
    padding: var(--space-3xl) 0;
    background: #ffffff;
}

.refer-steps__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.refer-steps__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brd-blue);
    margin-bottom: var(--space-md);
}

.refer-steps h2 {
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.refer-steps__sub {
    color: #4a5568;
    max-width: 480px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.7;
}

.refer-steps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 640px) {
    .refer-steps__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.refer-step {
    position: relative;
    padding-top: var(--space-lg);
}

.refer-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-red);
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.refer-step h3 {
    color: var(--color-charcoal);
    font-size: 1.05rem;
    margin-bottom: var(--space-sm);
}

.refer-step p {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.65;
}

.refer-step p strong {
    color: var(--color-red);
    font-weight: 700;
}


/* ==============================================
   TRUST STRIP — blue bg
   ============================================== */

.refer-trust {
    background: var(--color-brd-blue);
    padding: var(--space-2xl) 0;
}

.refer-trust__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.refer-trust__header h2 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.refer-trust__header p {
    color: rgba(234, 245, 241, 0.75);
    max-width: 440px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.refer-trust__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .refer-trust__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.refer-trust__item {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-md);
}

.refer-trust__label {
    display: block;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

.refer-trust__text {
    display: block;
    font-size: 0.78rem;
    color: rgba(234, 245, 241, 0.65);
    line-height: 1.45;
}


/* ==============================================
   FAQ
   ============================================== */

.refer-faq {
    padding: var(--space-3xl) 0;
    background: #ffffff;
}

.refer-faq__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.refer-faq__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-brd-blue);
    margin-bottom: var(--space-md);
}

.refer-faq h2 {
    color: var(--color-charcoal);
}

.refer-faq__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    max-width: 820px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .refer-faq__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.refer-faq__item h3 {
    color: var(--color-charcoal);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.refer-faq__item p {
    color: #4a5568;
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}


/* ==============================================
   CTA / PHONE FALLBACK — charcoal
   ============================================== */

.refer-cta {
    padding: var(--space-3xl) 0;
    background: var(--color-charcoal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.refer-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 83, 139, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.refer-cta__eyebrow {
    display: inline-block;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-sky-blue);
    margin-bottom: var(--space-md);
    position: relative;
}

.refer-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
    position: relative;
}

.refer-cta__phone {
    display: block;
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--color-sky-blue);
    text-decoration: none;
    letter-spacing: 0.03em;
    margin-bottom: var(--space-md);
    position: relative;
    transition: color var(--transition-fast);
}

.refer-cta__phone:hover {
    color: var(--color-white);
}

.refer-cta__sub {
    color: var(--color-white-dim);
    max-width: 400px;
    margin: 0 auto var(--space-xl);
    font-size: 0.9rem;
    line-height: 1.65;
    position: relative;
}

.refer-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    position: relative;
}
