/* =========================================================
   MUKATA HEALTH SERVICES
   REFERRALS PAGE
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --referral-blue: #07509a;
    --referral-blue-dark: #062f69;
    --referral-blue-deep: #041f49;
    --referral-blue-light: #eaf3ff;
    --referral-gold: #f4b52d;
    --referral-gold-light: #fff5d9;
    --referral-text: #18283d;
    --referral-muted: #68788d;
    --referral-border: #e5ebf2;
    --referral-bg: #f7faff;

    --referral-shadow:
        0 20px 55px rgba(4, 31, 73, .10);

    --referral-shadow-lg:
        0 30px 80px rgba(4, 31, 73, .16);
}


/* =========================================================
   GENERAL
========================================================= */

.referral-hero,
.referral-information,
.next-step-section,
.referral-form-section,
.referral-closing-section {
    position: relative;
    overflow: hidden;
}


/* =========================================================
   HERO
========================================================= */

.referral-hero {
    position: relative;
    overflow: hidden;
    color: #fff;

    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(244, 181, 45, .18),
            transparent 25%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(255, 255, 255, .08),
            transparent 28%
        ),
        linear-gradient(
            120deg,
            #062d68 0%,
            #07509a 52%,
            #0a62ae 100%
        );

    padding: 105px 0 115px;
}


/* =========================================================
   HERO PATTERN
========================================================= */

.referral-hero-pattern {
    position: absolute;
    inset: 0;

    opacity: .20;

    background-image:
        linear-gradient(
            rgba(255,255,255,.06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.06) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:
        linear-gradient(
            to right,
            #000,
            transparent 90%
        );
}


/* =========================================================
   HERO GLOWS
========================================================= */

.referral-hero-glow {
    position: absolute;

    width: 260px;
    height: 260px;

    border-radius: 50%;

    filter: blur(5px);

    pointer-events: none;
}

.referral-glow-one {
    right: -100px;
    top: 80px;

    background: rgba(244,181,45,.10);
}

.referral-glow-two {
    left: -130px;
    bottom: -130px;

    background: rgba(255,255,255,.06);
}


/* =========================================================
   HERO EYEBROW
========================================================= */

.referral-eyebrow {
    display: inline-flex;
    align-items: center;

    color: var(--referral-gold);

    border-left: 3px solid var(--referral-gold);

    padding-left: 13px;

    margin-bottom: 18px;

    font-size: .99rem;

    letter-spacing: .16em;

    font-weight: 800;
}


/* =========================================================
   HERO TITLE
========================================================= */

.referral-hero h1 {
    position: relative;

    max-width: 760px;

    margin-bottom: 25px;

    font-family: "Playfair Display", serif;

    font-size: clamp(
        2.8rem,
        5.5vw,
        5rem
    );

    line-height: 1.08;
}

.referral-hero h1 span {
    color: var(--referral-gold);
}


/* =========================================================
   HERO TEXT
========================================================= */

.referral-hero-text {
    max-width: 690px;

    color: rgba(255,255,255,.83);

    font-size: 1.08rem;

    line-height: 1.85;

    margin-bottom: 0;
}


/* =========================================================
   HERO CARD
========================================================= */

.referral-hero-card {
    position: relative;

    max-width: 450px;

    margin-left: auto;

    padding: 42px;

    border-radius: 25px;

    border: 1px solid rgba(255,255,255,.20);

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.15),
            rgba(255,255,255,.07)
        );

    backdrop-filter: blur(16px);

    box-shadow:
        0 30px 70px rgba(0,0,0,.20);

    overflow: hidden;
}

.referral-card-decoration {
    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    right: -70px;
    top: -80px;

    background: rgba(244,181,45,.20);

    filter: blur(8px);
}


/* =========================================================
   HERO CARD ICON
========================================================= */

.referral-card-icon {
    position: relative;

    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    margin-bottom: 24px;

    border-radius: 18px;

    background: var(--referral-gold);

    color: var(--referral-blue-deep);

    font-size: 1.9rem;

    box-shadow:
        0 15px 35px rgba(0,0,0,.12);
}


/* =========================================================
   HERO CARD CONTENT
========================================================= */

.referral-card-kicker {
    display: block;

    color: var(--referral-gold);

    font-size: .99rem;

    font-weight: 800;

    letter-spacing: .15em;

    margin-bottom: 7px;
}

.referral-hero-card h3 {
    position: relative;

    font-family: "Playfair Display", serif;

    font-size: 2rem;

    line-height: 1.2;

    margin-bottom: 13px;
}

.referral-hero-card p {
    position: relative;

    color: rgba(255,255,255,.73);

    margin-bottom: 22px;
}


/* =========================================================
   HERO CARD POINTS
========================================================= */

.hero-card-point {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    color: rgba(255,255,255,.88);

    margin-bottom: 11px;

    font-size: .94rem;
}

.hero-card-point:last-child {
    margin-bottom: 0;
}

.hero-card-point i {
    color: var(--referral-gold);

    margin-top: 5px;
}


/* =========================================================
   INTRO STRIP
========================================================= */

.referral-intro-strip {
    position: relative;

    z-index: 5;

    background: #fff;

    box-shadow:
        0 10px 40px rgba(4,31,73,.08);
}

.referral-intro-item {
    min-height: 105px;

    display: flex;

    align-items: center;

    gap: 17px;

    padding: 22px 25px;

    border-right: 1px solid var(--referral-border);
}

.referral-intro-item:last-child {
    border-right: 0;
}

.intro-icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    border-radius: 15px;

    background: var(--referral-blue-light);

    color: var(--referral-blue);

    font-size: 1.25rem;
}

.referral-intro-item strong,
.referral-intro-item span {
    display: block;
}

.referral-intro-item strong {
    color: var(--referral-blue-deep);

    font-size: .99rem;

    font-weight: 800;

    margin-bottom: 2px;
}

.referral-intro-item span {
    color: var(--referral-muted);

    font-size: .99rem;

    line-height: 1.5;
}


/* =========================================================
   REFERRAL INFORMATION
========================================================= */

.referral-information {
    background: #fff;
}


/* =========================================================
   INFORMATION VISUAL
========================================================= */

.referral-info-visual {
    position: relative;

    min-height: 530px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.info-circle {
    position: absolute;

    border-radius: 50%;
}

.info-circle-one {
    width: 360px;
    height: 360px;

    left: 2%;
    top: 55px;

    background: var(--referral-blue-light);
}

.info-circle-two {
    width: 190px;
    height: 190px;

    right: 0;
    bottom: 35px;

    background: var(--referral-gold-light);
}


/* =========================================================
   INFO MAIN CARD
========================================================= */

.info-main-card {
    position: relative;

    z-index: 2;

    width: 390px;
    min-height: 390px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 45px;

    border-radius: 26px;

    color: #fff;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(244,181,45,.18),
            transparent 28%
        ),
        linear-gradient(
            150deg,
            #07509a,
            #062f69
        );

    box-shadow: var(--referral-shadow-lg);
}

.info-main-icon {
    width: 68px;
    height: 68px;

    display: grid;
    place-items: center;

    margin-bottom: 25px;

    border-radius: 17px;

    background: var(--referral-gold);

    color: var(--referral-blue-deep);

    font-size: 1.7rem;
}

.info-main-card > span {
    color: var(--referral-gold);

    font-size: .99rem;

    letter-spacing: .15em;

    font-weight: 800;

    margin-bottom: 7px;
}

.info-main-card h3 {
    font-family: "Playfair Display", serif;

    font-size: 2rem;

    line-height: 1.25;

    margin-bottom: 15px;
}

.info-main-card p {
    color: rgba(255,255,255,.72);

    margin-bottom: 0;
}


/* =========================================================
   INFO FLOATING CARD
========================================================= */

.info-floating-card {
    position: absolute;

    z-index: 5;

    right: -40px;
    bottom: 42px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 19px;

    background: #fff;

    border-radius: 14px;

    box-shadow:
        0 15px 45px rgba(4,31,73,.15);
}

.info-floating-card > i {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--referral-gold-light);

    color: #c58a00;
}

.info-floating-card strong,
.info-floating-card small {
    display: block;
}

.info-floating-card strong {
    color: var(--referral-blue-deep);

    font-size: .9rem;
}

.info-floating-card small {
    color: var(--referral-muted);

    font-size: .99rem;
}


/* =========================================================
   REFERRAL CHECKLIST
========================================================= */

.referral-checklist {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;

    margin-top: 27px;
}

.referral-check-item {
    display: flex;

    align-items: flex-start;

    gap: 13px;

    padding: 16px;

    border: 1px solid var(--referral-border);

    border-radius: 13px;

    background: #fff;

    transition: .25s ease;
}

.referral-check-item:hover {
    transform: translateY(-3px);

    border-color: rgba(7,80,154,.18);

    box-shadow:
        0 12px 30px rgba(4,31,73,.06);
}

.check-number {
    flex: 0 0 37px;

    width: 37px;
    height: 37px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--referral-blue-light);

    color: var(--referral-blue);

    font-size: .99rem;

    font-weight: 800;
}

.referral-check-item strong {
    display: block;

    color: var(--referral-blue-deep);

    font-size: .99rem;

    line-height: 1.35;

    margin-bottom: 3px;
}

.referral-check-item p {
    color: var(--referral-muted);

    font-size: .99rem;

    line-height: 1.5;

    margin: 0;
}


/* =========================================================
   NEXT STEPS
========================================================= */

.next-step-section {
    background: var(--referral-bg);
}


/* =========================================================
   PROCESS CARDS
========================================================= */

.process-row {
    position: relative;
}

.process-row::before {
    content: "";

    position: absolute;

    left: 16.67%;
    right: 16.67%;

    top: 69px;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            rgba(7,80,154,.10),
            rgba(244,181,45,.45),
            rgba(7,80,154,.10)
        );

    z-index: 0;
}

.process-card {
    position: relative;

    z-index: 2;

    height: 100%;

    padding: 38px 30px 32px;

    text-align: center;

    background: #fff;

    border: 1px solid var(--referral-border);

    border-radius: 19px;

    box-shadow:
        0 8px 30px rgba(4,31,73,.04);

    transition: .3s ease;
}

.process-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--referral-shadow);

    border-color: transparent;
}

.process-card-featured {
    background:
        linear-gradient(
            145deg,
            #07509a,
            #062f69
        );

    color: #fff;

    border-color: transparent;

    box-shadow:
        0 20px 55px rgba(4,31,73,.17);
}

.process-number {
    position: absolute;

    right: 18px;
    top: 10px;

    color: rgba(7,80,154,.08);

    font-size: 2.8rem;

    font-weight: 800;
}

.process-card-featured .process-number {
    color: rgba(255,255,255,.10);
}

.process-icon {
    position: relative;

    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    margin: 0 auto 22px;

    border-radius: 20px;

    background: var(--referral-blue-light);

    color: var(--referral-blue);

    font-size: 1.5rem;
}

.process-card-featured .process-icon {
    background: rgba(255,255,255,.12);

    color: var(--referral-gold);
}

.process-card h4 {
    font-family: "Playfair Display", serif;

    color: var(--referral-blue-deep);

    font-size: 1.45rem;

    margin-bottom: 10px;
}

.process-card-featured h4 {
    color: #fff;
}

.process-card p {
    color: var(--referral-muted);

    font-size: .99rem;

    margin: 0;
}

.process-card-featured p {
    color: rgba(255,255,255,.72);
}


/* =========================================================
   FORM SECTION
========================================================= */

.referral-form-section {
    background: #fff;
}


/* =========================================================
   FORM WRAPPER
========================================================= */

.referral-form-wrapper {
    overflow: hidden;

    border: 1px solid var(--referral-border);

    border-radius: 25px;

    background: #fff;

    box-shadow: var(--referral-shadow-lg);
}


/* =========================================================
   FORM SIDEBAR
========================================================= */

.referral-form-sidebar {
    height: 100%;

    padding: 45px 35px;

    color: #fff;

    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(244,181,45,.17),
            transparent 28%
        ),
        linear-gradient(
            150deg,
            #062f69,
            #041f49
        );
}

.form-sidebar-kicker {
    display: inline-block;

    color: var(--referral-gold);

    font-size: .99rem;

    letter-spacing: .15em;

    font-weight: 800;

    margin-bottom: 10px;
}

.referral-form-sidebar h2 {
    font-family: "Playfair Display", serif;

    font-size: 2.25rem;

    line-height: 1.2;

    margin-bottom: 18px;
}

.referral-form-sidebar h2 span {
    color: var(--referral-gold);
}

.referral-form-sidebar > p {
    color: rgba(255,255,255,.68);

    font-size: .99rem;

    line-height: 1.8;

    margin-bottom: 30px;
}


/* =========================================================
   SIDEBAR FEATURES
========================================================= */

.sidebar-feature {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 19px;
}

.sidebar-feature > div {
    flex: 0 0 39px;

    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(255,255,255,.09);

    color: var(--referral-gold);
}

.sidebar-feature span {
    color: rgba(255,255,255,.68);

    font-size: .99rem;

    line-height: 1.6;
}


/* =========================================================
   SIDEBAR CONTACT
========================================================= */

.sidebar-contact {
    margin-top: 32px;

    padding-top: 24px;

    border-top:
        1px solid rgba(255,255,255,.12);
}

.sidebar-contact small {
    display: block;

    color: rgba(255,255,255,.50);

    font-size: .99rem;

    margin-bottom: 8px;
}

.sidebar-contact a {
    display: block;

    color: #fff;

    font-size: .99rem;

    font-weight: 600;

    margin-bottom: 7px;
}

.sidebar-contact a:hover {
    color: var(--referral-gold);
}

.sidebar-contact i {
    width: 22px;

    color: var(--referral-gold);
}


/* =========================================================
   FORM CARD
========================================================= */

.referral-form-card {
    padding: 45px;
}

.form-heading {
    margin-bottom: 22px;
}

.form-heading .section-kicker {
    margin-bottom: 7px;
}

.form-heading h3 {
    font-family: "Playfair Display", serif;

    color: var(--referral-blue-deep);

    font-size: 2rem;

    margin-bottom: 6px;
}

.form-heading p {
    color: var(--referral-muted);

    margin: 0;
}


/* =========================================================
   PRIVACY ALERT
========================================================= */

.referral-alert {
    display: flex;

    align-items: flex-start;

    gap: 13px;

    padding: 14px 16px;

    margin-bottom: 25px;

    border:
        1px solid rgba(244,181,45,.45);

    border-radius: 12px;

    background: var(--referral-gold-light);
}

.referral-alert > i {
    color: #bd8500;

    font-size: 1.1rem;

    margin-top: 4px;
}

.referral-alert strong {
    display: block;

    color: #6c5200;

    font-size: .99rem;

    margin-bottom: 2px;
}

.referral-alert p {
    color: #7b6a36;

    font-size: .99rem;

    line-height: 1.5;

    margin: 0;
}


/* =========================================================
   FORM ELEMENTS
========================================================= */

.referral-form-card .form-label {
    color: #3f5268;

    font-size: .99rem;

    font-weight: 700;

    margin-bottom: 6px;
}

.required {
    color: #c0392b;
}

.referral-form-card .form-control,
.referral-form-card .form-select {
    min-height: 48px;

    border:
        1px solid #dce5ef;

    border-radius: 9px;

    color: var(--referral-text);

    background: #fff;

    font-size: .99rem;

    padding: .72rem .85rem;

    transition: .2s ease;
}

.referral-form-card textarea.form-control {
    min-height: 130px;

    resize: vertical;
}

.referral-form-card .form-control::placeholder {
    color: #a1adba;
}

.referral-form-card .form-control:focus,
.referral-form-card .form-select:focus {
    border-color: var(--referral-blue);

    box-shadow:
        0 0 0 .20rem rgba(7,80,154,.10);
}


/* =========================================================
   CONTACT METHOD OPTIONS
========================================================= */

.contact-methods {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.contact-method {
    cursor: pointer;
}

.contact-method input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.contact-method span {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    min-height: 42px;

    padding: 8px 13px;

    border:
        1px solid var(--referral-border);

    border-radius: 9px;

    background: #fff;

    color: #4d6075;

    font-size: .99rem;

    font-weight: 600;

    transition: .2s ease;
}

.contact-method span i {
    color: var(--referral-blue);
}

.contact-method input:checked + span {
    border-color: var(--referral-blue);

    background: var(--referral-blue-light);

    color: var(--referral-blue-deep);
}

.contact-method input:focus-visible + span {
    outline:
        3px solid rgba(7,80,154,.20);

    outline-offset: 2px;
}


/* =========================================================
   CONSENT
========================================================= */

.referral-consent {
    padding: 14px 15px;

    border: 1px solid var(--referral-border);

    border-radius: 10px;

    background: var(--referral-bg);
}

.referral-consent .form-check-input {
    margin-left: .0em;
}

.referral-consent .form-check-input:checked {
    background-color: var(--referral-blue);

    border-color: var(--referral-blue);
}

.referral-consent .form-check-label {
    color: var(--referral-muted);

    font-size: .99rem;

    line-height: 1.55;

    cursor: pointer;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.referral-submit-btn {
    min-width: 205px;

    padding-top: .82rem;
    padding-bottom: .82rem;
}

.referral-submit-btn:hover {
    transform: translateY(-2px);
}


/* =========================================================
   VALIDATION
========================================================= */

.referral-form-card .was-validated .form-control:invalid,
.referral-form-card .was-validated .form-select:invalid {
    border-color: #dc3545;
}

.referral-form-card .was-validated .form-control:valid,
.referral-form-card .was-validated .form-select:valid {
    border-color: #198754;
}


/* =========================================================
   CLOSING SECTION
========================================================= */

.referral-closing-section {
    padding: 0 0 100px;

    background: #fff;
}


/* =========================================================
   CLOSING CARD
========================================================= */

.referral-closing-card {
    position: relative;

    overflow: hidden;

    padding: 50px;

    border-radius: 25px;

    color: #fff;

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(244,181,45,.18),
            transparent 25%
        ),
        linear-gradient(
            120deg,
            #07509a,
            #062f69
        );

    box-shadow: var(--referral-shadow);
}

.referral-closing-card::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    right: -100px;
    bottom: -150px;

    border-radius: 50%;

    border:
        1px solid rgba(255,255,255,.10);
}

.referral-closing-card h2 {
    position: relative;

    font-family: "Playfair Display", serif;

    font-size: clamp(
        2rem,
        4vw,
        3rem
    );

    line-height: 1.15;

    margin-bottom: 12px;
}

.referral-closing-card h2 span {
    color: var(--referral-gold);
}

.referral-closing-card p {
    position: relative;

    max-width: 690px;

    color: rgba(255,255,255,.70);

    margin: 0;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199.98px) {

    .referral-checklist {
        gap: 10px;
    }

    .referral-check-item {
        padding: 14px;
    }

    .referral-form-card {
        padding: 35px;
    }

}


@media (max-width: 991.98px) {

    .referral-hero {
        padding: 80px 0 90px;
    }

    .referral-hero-card {
        margin: 0 auto;
    }

    .referral-info-visual {
        min-height: 500px;
    }

    .info-main-card {
        width: 370px;
        min-height: 370px;
    }

    .process-row::before {
        display: none;
    }

    .referral-form-sidebar {
        min-height: auto;
    }

}


@media (max-width: 767.98px) {

    .referral-hero {
        padding: 70px 0 75px;
    }

    .referral-hero h1 {
        font-size: 3rem;
    }

    .referral-hero-text {
        font-size: .95rem;
    }

    .referral-hero-card {
        padding: 30px;
    }

    .referral-intro-item {
        border-right: 0;

        border-bottom:
            1px solid var(--referral-border);

        min-height: auto;

        padding: 19px 20px;
    }

    .referral-intro-item:last-child {
        border-bottom: 0;
    }

    .referral-information {
        padding-top: 75px;
    }

    .referral-info-visual {
        min-height: 420px;

        margin-bottom: 15px;
    }

    .info-circle-one {
        width: 300px;
        height: 300px;
    }

    .info-circle-two {
        width: 140px;
        height: 140px;
    }

    .info-main-card {
        width: 290px;

        min-height: 320px;

        padding: 32px;
    }

    .info-main-card h3 {
        font-size: 1.65rem;
    }

    .info-floating-card {
        right: 0;

        bottom: 18px;

        transform: scale(.90);

        transform-origin: right bottom;
    }

    .referral-checklist {
        grid-template-columns: 1fr;
    }

    .process-card {
        padding: 32px 25px;
    }

    .referral-form-card {
        padding: 28px 20px;
    }

    .referral-form-sidebar {
        padding: 35px 25px;
    }

    .referral-closing-card {
        padding: 35px 25px;
    }

}


@media (max-width: 575.98px) {

    .referral-hero h1 {
        font-size: 2.55rem;
    }

    .referral-eyebrow {
        font-size: .82rem;
    }

    .referral-hero .btn {
        width: 100%;
    }

    .referral-hero-card {
        border-radius: 19px;

        padding: 25px;
    }

    .referral-card-icon {
        width: 62px;
        height: 62px;
    }

    .referral-hero-card h3 {
        font-size: 1.7rem;
    }

    .referral-info-visual {
        min-height: 390px;
    }

    .info-main-card {
        width: 270px;

        min-height: 300px;

        padding: 28px;
    }

    .info-main-card h3 {
        font-size: 1.5rem;
    }

    .info-floating-card {
        transform: scale(.80);
    }

    .referral-alert {
        padding: 12px;
    }

    .contact-methods {
        display: grid;

        grid-template-columns: 1fr;
    }

    .contact-method span {
        width: 100%;
    }

    .referral-submit-btn {
        width: 100%;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.referral-hero a:focus-visible,
.referral-form-card button:focus-visible,
.referral-form-card input:focus-visible,
.referral-form-card select:focus-visible,
.referral-form-card textarea:focus-visible,
.contact-method span:focus-visible {
    outline:
        3px solid rgba(244,181,45,.70);

    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .referral-check-item,
    .process-card,
    .referral-submit-btn {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }

}