/* PAGE CONFIGURATION - Referrals Page */
    :root {
        --header-height: 80px;
        --header-height-mobile: 60px;
        --hero-padding-top: 160px;
        --hero-min-height: 60vh;
        --page-padding-top: 80px;
    }

    /* =================================================================
       REFERRALS PAGE STYLES - Scoped to #custom-container-referrals
       ================================================================= */

    #custom-container-referrals {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Container */
    #custom-container-referrals .cms-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }

    /* Hero Section */
    #custom-container-referrals .referrals-hero {
        background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
        padding: 80px 0 80px 0;
        text-align: center;
        position: relative;
        overflow: hidden;
        margin-top: calc(var(--header-height) * -1);
        padding-top: calc(var(--hero-padding-top) + 40px);
        min-height: var(--hero-min-height);
        display: flex;
        align-items: center;
    }

    @media (max-width: 768px) {
        #custom-container-referrals .referrals-hero {
            margin-top: 0;
            padding-top: calc(var(--header-height-mobile) + 60px);
            min-height: 50vh;
        }
    }

    #custom-container-referrals .hero-content {
        position: relative;
        z-index: 1;
        width: 100%;
    }

    #custom-container-referrals .hero-badge {
        display: inline-block;
        background: rgba(255, 210, 31, 0.2);
        border: 1px solid var(--brand-accent);
        color: var(--brand-accent);
        padding: 0.5rem 1.5rem;
        border-radius: 2rem;
        font-size: var(--text-sm);
        font-weight: var(--font-weight-semibold);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 1.5rem;
    }

    #custom-container-referrals .hero-title {
        font-size: var(--text-5xl);
        font-weight: var(--font-weight-bold);
        color: white;
        margin-bottom: 1.5rem;
        line-height: 1.1;
    }

    #custom-container-referrals .hero-subtitle {
        font-size: var(--text-xl);
        color: rgba(255, 255, 255, 0.9);
        max-width: 700px;
        margin: 0 auto 2rem;
        line-height: 1.7;
    }

    #custom-container-referrals .credit-badge {
        display: inline-flex;
        align-items: center;
        background: var(--brand-accent);
        color: var(--brand-dark);
        padding: 1rem 2rem;
        border-radius: 2rem;
        font-size: var(--text-2xl);
        font-weight: var(--font-weight-bold);
        box-shadow: 0 10px 30px rgba(255, 210, 31, 0.4);
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    /* How It Works Section */
    #custom-container-referrals .how-it-works-section {
        padding: 5rem 0;
        background: white;
    }

    #custom-container-referrals .section-header {
        text-align: center;
        margin-bottom: 4rem;
    }

    #custom-container-referrals .section-title {
        font-size: var(--text-4xl);
        font-weight: var(--font-weight-bold);
        color: var(--brand-dark);
        margin-bottom: 1rem;
    }

    #custom-container-referrals .section-subtitle {
        font-size: var(--text-lg);
        color: var(--brand-neutral);
        max-width: 600px;
        margin: 0 auto;
    }

    #custom-container-referrals .steps-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }

    #custom-container-referrals .step-card {
        text-align: center;
        padding: 2.5rem;
        background: white;
        border-radius: 1rem;
        border: 2px solid var(--brand-light);
        transition: all 0.3s;
        position: relative;
    }

    #custom-container-referrals .step-card:hover {
        border-color: var(--brand-accent);
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(44, 10, 113, 0.1);
    }

    #custom-container-referrals .step-number {
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        background: var(--brand-primary);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--text-xl);
        font-weight: var(--font-weight-bold);
        border: 4px solid white;
    }

    #custom-container-referrals .step-icon {
        font-size: var(--text-4xl);
        color: var(--brand-primary);
        margin-bottom: 1.5rem;
    }

    #custom-container-referrals .step-title {
        font-size: var(--text-xl);
        font-weight: var(--font-weight-semibold);
        color: var(--brand-dark);
        margin-bottom: 1rem;
    }

    #custom-container-referrals .step-description {
        font-size: var(--text-base);
        color: var(--brand-neutral);
        line-height: 1.7;
    }

    /* Benefits Section */
    #custom-container-referrals .benefits-section {
        padding: 5rem 0;
        background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
        color: white;
    }

    #custom-container-referrals .benefits-section .section-title {
        color: white;
    }

    #custom-container-referrals .benefits-section .section-subtitle {
        color: rgba(255, 255, 255, 0.9);
    }

    #custom-container-referrals .benefits-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 3rem;
    }

    #custom-container-referrals .benefit-card {
        padding: 2rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
    }

    #custom-container-referrals .benefit-icon {
        font-size: var(--text-4xl);
        color: var(--brand-accent);
        margin-bottom: 1rem;
    }

    #custom-container-referrals .benefit-title {
        font-size: var(--text-xl);
        font-weight: var(--font-weight-semibold);
        margin-bottom: 0.75rem;
        color: white;
    }

    #custom-container-referrals .benefit-description {
        font-size: var(--text-base);
        line-height: 1.6;
        opacity: 0.9;
        color: rgba(255, 255, 255, 0.9);
    }

    /* Terms Section */
    #custom-container-referrals .terms-section {
        padding: 5rem 0;
        background: white;
    }

    #custom-container-referrals .terms-content {
        max-width: 800px;
        margin: 0 auto;
        background: var(--brand-light);
        padding: 3rem;
        border-radius: 1rem;
    }

    #custom-container-referrals .terms-list {
        list-style: none;
        padding: 0;
        margin: 2rem 0;
    }

    #custom-container-referrals .terms-list li {
        padding: 1rem 0;
        padding-left: 2rem;
        position: relative;
        font-size: var(--text-base);
        line-height: 1.7;
        color: var(--brand-neutral);
        border-bottom: 1px solid rgba(44, 10, 113, 0.1);
    }

    #custom-container-referrals .terms-list li:last-child {
        border-bottom: none;
    }

    #custom-container-referrals .terms-list li::before {
        content: '✓';
        position: absolute;
        left: 0;
        color: var(--brand-accent);
        font-weight: var(--font-weight-bold);
        font-size: var(--text-lg);
    }

    #custom-container-referrals .terms-note {
        background: rgba(255, 210, 31, 0.1);
        border-left: 4px solid var(--brand-accent);
        padding: 1.5rem;
        border-radius: 0.5rem;
        margin-top: 2rem;
        font-size: var(--text-sm);
        color: var(--brand-neutral);
        line-height: 1.6;
    }

    #custom-container-referrals .terms-note strong {
        color: var(--brand-dark);
    }

    /* CTA Section */
    #custom-container-referrals .cta-section {
        padding: 5rem 0;
        background: var(--gradient-primary);
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    #custom-container-referrals .cta-pattern {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0.1;
        background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.3'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    }

    #custom-container-referrals .cta-content-wrapper {
        position: relative;
        z-index: 2;
    }

    #custom-container-referrals .cta-title {
        font-size: var(--text-4xl);
        font-weight: var(--font-weight-bold);
        color: white;
        margin-bottom: 1rem;
    }

    #custom-container-referrals .cta-description {
        font-size: var(--text-lg);
        color: rgba(255, 255, 255, 0.9);
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    #custom-container-referrals .cta-buttons {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    #custom-container-referrals .cta-btn {
        padding: 1rem 2rem;
        font-weight: var(--font-weight-semibold);
        text-decoration: none;
        border-radius: 0.5rem;
        transition: all 0.3s;
        display: inline-block;
    }

    #custom-container-referrals .cta-btn-primary {
        background: var(--brand-accent);
        color: var(--brand-dark);
    }

    #custom-container-referrals .cta-btn-primary:hover {
        background: var(--brand-accent);
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(255, 210, 31, 0.3);
    }

    #custom-container-referrals .cta-btn-secondary {
        background: transparent;
        color: white;
        border: 2px solid white;
    }

    #custom-container-referrals .cta-btn-secondary:hover {
        background: white;
        color: var(--brand-primary);
    }

    /* Responsive */
    @media (max-width: 768px) {
        #custom-container-referrals .hero-title {
            font-size: var(--text-4xl);
        }

        #custom-container-referrals .hero-subtitle {
            font-size: var(--text-lg);
        }

        #custom-container-referrals .credit-badge {
            font-size: var(--text-xl);
            padding: 0.75rem 1.5rem;
        }

        #custom-container-referrals .section-title {
            font-size: var(--text-3xl);
        }

        #custom-container-referrals .terms-content {
            padding: 2rem 1.5rem;
        }
    }
