/* =========================================
   HERO SECTION
   ========================================= */
.referral-hero-bg {
    background-color: #F4F6FB;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.hero-card {
    background: linear-gradient(90deg, #FFF 0%, #DFE1F2 100%);
}

.referral-badge {
    background: linear-gradient(90deg, #FFFFFF 0%, #E2E5FF 100%);
    color: #211591;
    border: 1.5px solid #211591;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Manrope', sans-serif;
    font-weight: bold;
    font-size: clamp(24px, 4vw, 40px);
    line-height: 1.3;
    margin: 0;
}

.hero-title-highlight {
    display: block;
    margin-top: 1px;
    color: #FA9A07;
}

@media (max-width: 1023px) {
    #hero-card-container {
        margin-top: 120px;
    }
    #hero-image-wrapper {
        margin-top: -20px;
        margin-bottom: 40px;
    }
}

/* =========================================
   TESTIMONIAL SECTION
   ========================================= */
.testimonial-title {
    color: #211591;
}

.testimonial-text {
    color: #4B5563;
}

.testimonial-author-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author-wrapper.mt-auto { margin-top: auto; }
.testimonial-author-wrapper.mt-41 { margin-top: 41px; }
.testimonial-author-wrapper.mt-20 { margin-top: 20px; }

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.testimonial-author-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    margin: 0;
    color: #1A1A1A;
}

.testimonial-author-role {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.4;
    margin: 4px 0 0 0;
    color: #4B5563;
}

/* =========================================
   SCHEMA & COMMISSION SECTION
   ========================================= */
.schema-section-bg {
    padding: 80px 0;
    width: 100%;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}

.schema-main-title {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
    padding: 0 16px;
    margin: 0;
    line-height: 1.4;
}

.schema-wrapper {
    max-width: 1240px;
    margin: 48px auto 0;
    padding: 0 16px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 32px;
    box-sizing: border-box;
}

.schema-steps-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 450px;
    min-width: 0;
    max-width: 100%;
}

.schema-step-line {
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 27px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 0;
}

.schema-step-list {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    gap: 48px;
}

.schema-step-item {
    display: flex;
    align-items: center;
    gap: 18px;
}

.schema-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    width: 56px;
    height: 56px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFE2B7 100%);
    border: 3px solid #5248E5;
    color: #1A1A1A;
    font-size: 24px;
    font-weight: 900;
    font-family: 'Manrope', sans-serif;
    box-sizing: border-box;
}

.schema-step-box {
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background-color: #463CE8;
    width: 100%;
    max-width: 460px;
    padding: 20px 28px;
    box-sizing: border-box;
}

.schema-step-text {
    color: white;
    font-weight: 600;
    font-size: 15px;
}

.schema-card-box {
    flex: 1 1 500px;
    min-width: 0;
    max-width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #160D6D;
    border: 1px solid #5248E5;
    padding: 32px;
    border-radius: 24px;
    box-sizing: border-box;
}

.schema-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #FDBA22;
    margin-top: 0;
    margin-bottom: 20px;
}

.schema-table-container {
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid #5248E5;
    width: 100%;
}

.schema-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
    margin: 0;
}

.schema-table thead {
    background: linear-gradient(90deg, #FFFFFF 0%, #DFE1F2 100%);
    color: #1A1A1A;
}

.schema-table th {
    font-weight: bold;
    font-size: 15px;
    padding: 14px 24px;
    white-space: nowrap;
    text-align: left;
}

.schema-table tbody {
    color: white;
}

.schema-table tr.bg-row-1 { background-color: #3026B3; border-bottom: 1px solid rgba(82, 72, 229, 0.5); }
.schema-table tr.bg-row-2 { background-color: #3B30CA; border-bottom: 1px solid rgba(82, 72, 229, 0.5); }
.schema-table tr.bg-row-last { background-color: #3B30CA; }

.schema-table td {
    font-size: 14px;
    padding: 14px 24px;
    white-space: nowrap;
}

.schema-table td.font-semi {
    font-weight: 600;
    font-size: 15px;
}

.schema-table-note {
    width: 100%;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.025em;
    text-align: right;
    margin-top: 16px;
    margin-bottom: 0;
}

/* Base Buttons */
.btn-primary-orange {
    border-radius: 8px;
    padding: 14px 32px;
    background-color: #FA9A07;
    color: #F5F4FA;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    box-sizing: border-box;
    flex: 0 1 auto;
    white-space: nowrap;
}

.btn-outline-white {
    border-radius: 8px;
    padding: 14px 32px;
    background-color: transparent;
    border: 1.5px solid #FFFFFF;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    box-sizing: border-box;
    flex: 0 1 auto;
    white-space: nowrap;
}

.text-btn-mobile, .cta-text-btn-mobile { display: none; }
.text-btn-desktop, .cta-text-btn-desktop { display: inline; }

@media (max-width: 768px) {
    .text-btn-mobile, .cta-text-btn-mobile { display: inline !important; }
    .text-btn-desktop, .cta-text-btn-desktop { display: none !important; }

    #schema-card-container { padding: 24px 10px !important; }
    
    .schema-table th, .schema-table td {
        padding: 10px 6px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
        font-size: 12px !important;
    }
    
    .schema-table td span {
        font-size: 13px !important;
        font-weight: 700 !important;
    }
}

/* =========================================
   BENEFIT REFERRAL SECTION
   ========================================= */
.benefit-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.benefit-card {
    width: 100%;
    max-width: 360px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.benefit-icon-bg {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.benefit-title {
    color: #FFFFFF;
    font-family: 'Manrope', sans-serif;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 12px;
    margin-top: 0;
}

.benefit-desc {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    padding: 0 8px;
}

.benefit-img-contain {
    width: 251px;
    height: 251px;
    object-fit: contain;
    flex-shrink: 0;
}

/* =========================================
   CTA REFERRAL SECTION
   ========================================= */
.cta-section-bg {
    background: linear-gradient(90deg, #10084A 0%, #1E13BA 100%);
}

.cta-curved-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: #483DD5;
    border-top-left-radius: 100%;
    border-top-right-radius: 100%;
    transform: scaleX(1.5) translateY(30%);
    pointer-events: none;
    z-index: 1;
}

.cta-content-wrapper {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.cta-image-col {
    flex: 1 1 40%;
    min-width: 320px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 40px;
    box-sizing: border-box;
}

.cta-image-masked {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0;
    display: block;
    position: relative;
    z-index: 10;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.cta-text-col {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px;
    padding-top: 24px;
    padding-right: 24px;
    padding-left: 24px;
    box-sizing: border-box;
}

.cta-main-heading {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(20px, 3.5vw, 32px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    color: #F5F4FA;
    margin-top: 0;
    margin-bottom: 0;
}

.cta-highlight {
    color: #FA9A07;
    display: block;
    margin-top: 4px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    #cta-text-wrapper {
        text-align: center !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        align-items: center !important;
    }

    .cta-main-heading {
        font-size: 26px !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    .cta-highlight {
        display: inline !important;
    }

    #cta-btn-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin-top: 24px !important;
    }

    #cta-btn-container a {
        min-width: 0 !important;
        width: 50% !important;
        padding: 12px 4px !important;
        font-size: 13px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}