/* =============================================
   Referral Program Template
   ============================================= */

/* ---- Hero ---- */
.page-template-referral-program {
background: linear-gradient(180deg, #EFF5FE 0%, rgba(239, 245, 254, 0) 100%);

}


.ref-hero {
    padding: 60px 0 60px;
    text-align: center;
}

.ref-hero-title {
    font-size: 46px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 24px;
    line-height: 1.2;
}

.ref-hero-subtitle {
    font-size: 32px;
    font-weight: 600;
    color: #0172FF;
    margin-bottom: 24px;
}

.ref-hero-desc {
    font-size: 24px;
    font-weight: 500;
    color: #1E293B;
    margin: 0;
}

/* ---- Items Section ---- */
.ref-items {
    padding: 40px 0 80px;
}

.ref-items-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

/* Equal distribution: 2 items = 50%, 3 items = 33.33%, etc. */
.ref-item {
    flex: 1 1 calc(50% - 12px);
    min-width: 280px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0px -5px 35px 0px #AFC0F024;
}



/* ---- Item Header ---- */
.ref-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
box-shadow: 0px 4px 4px 0px #FFFFFF59 inset;

}

.stage-badge {
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
border: 0.5px solid #FFFFFF;    border-radius: 4px;
    padding: 8px 15px;    white-space: nowrap;
    border-radius: 100px;
    background: #FFFFFF33;

}

.ref-item-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: inherit;
}

/* ---- Item Body ---- */
.ref-item-body {
    padding-top: 20px;
}

.ref-item-desc {
    font-size: 20px;
    color: #0D1E4A;
    margin: 0 0 20px;
    line-height: 1.6;
}

/* WYSIWYG content: H3 subheadings */
.ref-item-content h3 {
    font-size: 20px;
    font-weight: 6  00;
    color: #0172FF;
    margin: 20px 0 10px;
}

.ref-item-content h3:first-child {
    margin-top: 0;
}

/* WYSIWYG content: UL/LI with tick icon */
.ref-item-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.ref-item-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 16px;
    color: #0D1E4A;
    padding: 15px 0;
    border-bottom: 1px solid #DFE7FF;
    line-height: 1.5;
}

.ref-item-content ul li:last-child {
    border-bottom: none;
}

/* Tick icon via ::before — yellow circle + checkmark SVG as data URI */
.ref-item-content ul li::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='20' height='20' rx='10' fill='%23FFDE69'/%3E%3Cpath d='M6.15384 11.2217L9.09502 13.5747L14.3891 7.69232' stroke='%2300133B' stroke-width='1.53846'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

/* ---- Form Section ---- */
.ref-form {
    background: #fff;
    background-image: url('/wp-content/uploads/2026/04/BottomSEctionBGimage-1-1.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 80px 0;
}

.ref-form-inner {
    position: relative;
    border-radius: 16px;
    padding: 40px 60px;
    max-width: 930px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.61) 100%);
    border: 1px solid white;
}

.ref-form-inner::after {
    content: '';
    position: absolute;
    background-image: url(/wp-content/uploads/2024/04/Graphic_element-3.svg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    right: 0;
    top: 0;
    width: 137px;
    height: 129px;
    margin-right: -64px;
    margin-top: -7px;
}

.ref-form-inner::before {
    content: '';
    position: absolute;
    background-image: url(/wp-content/uploads/2024/04/Graphic_element-3.svg);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    left: 0;
    bottom: 0;
    width: 117px;
    height: 109px;
    margin-left: -152px;
    margin-bottom: 100px;
}

.ref-form-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0172FF;
    text-align: center;
    margin: 0 0 32px;
}

/* ---- Form – HubSpot 2-col grid ---- */
.ref-form-inner .hbspt-form form.hs-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
}

/* Section title wrappers and footer elements span full width */
.ref-form-inner .hbspt-form form.hs-form > div:has(> .hs-richtext),
.ref-form-inner .hbspt-form .legal-consent-container,
.ref-form-inner .hbspt-form .hs_submit {
    grid-column: 1 / -1;
}

/* Section title styling */
.ref-form-inner .hbspt-form .hs-richtext h1 {
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    color: #1E293B;
    margin: 24px 0 8px;
}

.ref-form-inner .hbspt-form form.hs-form > div:first-child .hs-richtext h1 {
    margin-top: 0;
}

.page-template-referral-program .hbspt-form label {
    margin: unset;
}

.hbspt-form input[type="text"], .hbspt-form input[type="email"], .hbspt-form input[type="submit"], .hbspt-form input[type="tel"], .hbspt-form select, .hbspt-form textarea {
    margin-bottom: 10px;
    min-height: 52px;
}
.hs-error-msgs {
    display: none;
}
.hs_error_rollup .hs-error-msgs {
    display: block !important;
    position: static !important;
}

.legal-consent-container {
    margin-top: 20px;
}

.hbspt-form input[type="submit"] {
    background-color: #FFDE69;
}

.hbspt-form input[type="submit"] {
    background-color: #FFDE69;
    border-color: #FFDE69;
    color: #1E293B;
    border-radius: 12px;
}

.hs_submit.hs-submit {
    margin-top: 20px;
}
/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
    .ref-item {
        flex: 1 1 calc(50% - 12px);
    }
}

@media (max-width: 768px) {

    .stage-badge {
    font-size: 14px;
    padding: 5px 9px;
}
    .ref-hero {
        padding: 40px 0 40px;
    }



    .ref-hero-title {
        font-size: 32px;
        margin-bottom: 14px;
    }

    .ref-hero-subtitle {
        font-size: 24px;
        margin-bottom: 14px;
    }

    .ref-hero-desc {
        font-size: 20px;
    }

    .ref-items-row {
        flex-direction: column;
        gap: 20px;
    }

    .ref-item {
        flex: 1 1 100%;
        min-width: unset;
        border-radius: 20px;
    }
.ref-form {
    padding-top: 10px;
}
.ref-form-inner {
    padding: 0px 8px;
    padding-top: 60px;
    background: unset;
    border: unset;
}

    .ref-item-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .ref-item-title {
        font-size: 16px;
        text-align: left;
    }

    .ref-form-title {
        text-align: left;
    }

    .ref-form-inner .hbspt-form form.hs-form {
        grid-template-columns: 1fr;
    }

    .ref-form-inner::before {
        display: none;
    }

.ref-form-inner::after {
    width: 100px;
    height: 95px;
    margin-right: 0px;
    margin-top: -47px;
}

.hbspt-form input[type="submit"] {
    max-width: 100%;
}
}
