/* ================= Referral form page (referral-form.php) ================= */

/* Light page background instead of the dark green/blue parallax */
#home.ref-page {
    padding: 50px 0 60px;
    background: linear-gradient(120deg, #e6f5ea 0%, #f5f9fc 50%, #e2ecf6 100%) !important;
}
#home.ref-page:before,
#home.ref-page:after {
    display: none !important;
}

/* White form card */
.ref-page .rform {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px 40px;
    overflow: hidden;
    background: #fff !important;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0, 51, 104, .12);
}
.ref-page .rform > .row:first-child {
    margin: 0 -40px 25px;
    padding: 0 25px 25px;
    background: #003368;
}
.ref-page .rform h2 {
    margin: 0 -15px 20px;
    padding: 26px 15px 22px;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    border-bottom: 4px solid #29b34b;
}
.ref-page .rform > .row:first-child label {
    color: #fff !important;
}

/* Section headings */
.ref-page .rform h4 {
    position: relative;
    margin: 10px 0 18px;
    padding-left: 14px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #003368 !important;
    text-transform: uppercase;
}
.ref-page .rform h4:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 2px;
    background: #29b34b;
}
.ref-page .rform hr {
    margin: 18px 0 12px;
    border-top: 1px solid #e3e8ee;
}

/* Labels (override the inline white colour) */
.ref-page .rform label {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #333 !important;
}

/* Inputs */
.ref-page .rform .form-control {
    height: 42px;
    margin-bottom: 14px;
    color: #333;
    background: #f8fafc;
    border: 1px solid #cfd8e3;
    border-radius: 5px;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease;
}
.ref-page .rform textarea.form-control {
    height: auto;
    min-height: 90px;
}
.ref-page .rform .form-control:focus {
    background: #fff;
    border-color: #29b34b;
    box-shadow: 0 0 0 3px rgba(41, 179, 75, .15);
}
.ref-page .rform > .row:first-child .form-control {
    background: #fff;
    border-color: #fff;
}

/* Radio buttons */
.ref-page .rform input[type="radio"] {
    margin-right: 5px;
    accent-color: #29b34b;
}
.ref-page .rform label > input[type="radio"] {
    vertical-align: -1px;
}
.ref-page .rform label:has(> input[type="radio"]) {
    display: inline-block;
    margin: 4px 22px 12px 0;
    font-weight: 500;
    cursor: pointer;
}

/* Submit */
.ref-page .submt {
    margin-top: 25px;
    padding: 13px 55px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    background: #29b34b;
    border: 0;
    border-radius: 30px;
    transition: background .3s ease;
}
.ref-page .submt:hover,
.ref-page .submt:focus {
    background: #003368;
}

@media (max-width: 767px) {
    #home.ref-page {
        padding: 25px 0 40px;
    }
    .ref-page .rform {
        padding: 0 18px 30px;
    }
    .ref-page .rform > .row:first-child {
        margin: 0 -18px 20px;
        padding: 0 15px 20px;
    }
    .ref-page .rform h2 {
        font-size: 22px;
    }
}
