/* =========================================================
   FOR DOCTORS / PATIENT REFERRAL PAGE
========================================================= */

.doctor-referral-page {
    --referral-dark: #062f2d;
    --referral-dark-deep: #031f1e;
    --referral-green: #0c5350;
    --referral-green-soft: #eaf4f2;
    --referral-gold: #c9994d;
    --referral-gold-light: #edd5a9;
    --referral-heading: #102f2d;
    --referral-text: #5b6d6a;
    --referral-muted: #7b8b88;
    --referral-white: #ffffff;
    --referral-light: #f5f8f7;
    --referral-border: rgba(6, 47, 45, 0.12);
    --referral-shadow: 0 24px 65px rgba(3, 38, 36, 0.12);
    --referral-card-shadow: 0 14px 35px rgba(3, 38, 36, 0.08);

    overflow: hidden;
    color: var(--referral-text);
    background: var(--referral-white);
}

.doctor-referral-page *,
.doctor-referral-page *::before,
.doctor-referral-page *::after {
    box-sizing: border-box;
}

.referral-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.referral-section {
    padding: 105px 0;
}

.referral-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
    color: var(--referral-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.referral-kicker::before {
    width: 38px;
    height: 1px;
    content: "";
    background: currentColor;
}

.referral-kicker-light {
    color: var(--referral-gold-light);
}

.referral-heading {
    /* max-width: 750px; */
    margin-bottom: 52px;
}

.referral-heading h2,
.referral-benefits-copy h2 {
    margin: 0;
    color: var(--referral-heading);
    font-size: clamp(34px, 4.5vw, 52px);
    line-height: 1.12;
    letter-spacing: -1.7px;
}

.referral-heading p,
.referral-benefits-copy > p {
    margin: 20px 0 0;
    color: var(--referral-text);
    font-size: 17px;
    line-height: 1.8;
}


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

.referral-hero {
    position: relative;
    padding: 105px 0 95px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 15%, rgba(201, 153, 77, 0.22), transparent 23%),
        linear-gradient(135deg, var(--referral-dark-deep), var(--referral-dark) 55%, var(--referral-green));
}

.referral-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 58px 58px;
}

.referral-hero-decoration {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
}

.referral-hero-decoration-one {
    top: -230px;
    right: -180px;
    width: 620px;
    height: 620px;
}

.referral-hero-decoration-two {
    right: 110px;
    bottom: -310px;
    width: 480px;
    height: 480px;
}

.referral-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, 0.6fr);
    gap: 70px;
    align-items: center;
}

.referral-hero-copy h1 {
    max-width: 800px;
    margin: 0 0 28px;
    color: var(--referral-white);
    font-size: clamp(42px, 5.4vw, 72px);
    line-height: 1.05;
    letter-spacing: -2.7px;
}

.referral-hero-lead {
    max-width: 790px;
    margin: 0 0 15px;
    color: rgba(255, 255, 255, 0.87);
    font-size: 19px;
    line-height: 1.75;
}

.referral-hero-text {
    max-width: 790px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    line-height: 1.75;
}

.referral-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.referral-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.referral-btn-primary {
    background: var(--referral-gold);
    color: var(--referral-dark-deep);
    box-shadow: 0 13px 30px rgba(201, 153, 77, 0.28);
}

.referral-btn-outline {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.06);
    color: var(--referral-white);
}

.referral-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-top: 40px;
}

.referral-trust-item {
    display: flex;
    gap: 12px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
}

.referral-trust-icon {
    display: flex;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(201, 153, 77, 0.16);
    color: var(--referral-gold-light);
    font-size: 10px;
    font-weight: 800;
    line-height: 35px;
    text-align: center;
}

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

.referral-trust-item strong {
    margin-bottom: 5px;
    color: var(--referral-white);
    font-size: 14px;
}

.referral-trust-item div span {
    color: rgba(255, 255, 255, 0.57);
    font-size: 12px;
    line-height: 1.5;
}

.referral-hero-panel {
    position: relative;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(17px);
}

.panel-label {
    display: inline-block;
    margin-bottom: 17px;
    color: var(--referral-gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.referral-hero-panel h2 {
    margin: 0 0 14px;
    color: var(--referral-white);
    font-size: 29px;
    line-height: 1.25;
}

.referral-hero-panel > p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.67);
    line-height: 1.7;
}

.referral-hero-panel ul {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.referral-hero-panel li {
    position: relative;
    padding-left: 27px;
    color: rgba(255, 255, 255, 0.83);
    font-size: 14px;
}

.referral-hero-panel li::before {
    position: absolute;
    top: -1px;
    left: 0;
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    content: "✓";
    border-radius: 50%;
    background: rgba(201, 153, 77, 0.16);
    color: var(--referral-gold-light);
    font-size: 9px;
}

.panel-contact {
    margin-top: 26px;
    padding-top: 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.panel-contact span,
.panel-contact a {
    display: block;
}

.panel-contact span {
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

.panel-contact a {
    color: var(--referral-white);
    font-size: 25px;
    font-weight: 800;
    text-decoration: none;
}


/* =========================================================
   METRICS
========================================================= */

.referral-metrics {
    position: relative;
    z-index: 4;
    margin-top: -1px;
    padding: 0 0 0;
    background: var(--referral-white);
}

.referral-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    transform: translateY(-32px);
    border-radius: 19px;
    background: var(--referral-white);
    box-shadow: var(--referral-shadow);
}

.referral-metric {
    position: relative;
    padding: 29px 34px;
    text-align: center;
}

.referral-metric:not(:last-child)::after {
    position: absolute;
    top: 28%;
    right: 0;
    width: 1px;
    height: 44%;
    content: "";
    background: var(--referral-border);
}

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

.referral-metric strong {
    margin-bottom: 7px;
    color: var(--referral-dark);
    font-size: 31px;
    line-height: 1;
}

.referral-metric span {
    color: var(--referral-muted);
    font-size: 13px;
}


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

.referral-process {
    padding-top: 70px;
    background: var(--referral-white);
}

.referral-process-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.referral-process-flow::before {
    position: absolute;
    top: 49px;
    right: 8%;
    left: 8%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(201, 153, 77, 0.55), transparent);
}

.referral-process-card {
    position: relative;
    z-index: 2;
    min-height: 325px;
    padding: 31px 27px;
    overflow: hidden;
    border: 1px solid var(--referral-border);
    border-radius: 18px;
    background: var(--referral-white);
    box-shadow: 0 8px 25px rgba(3, 38, 36, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.referral-process-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 153, 77, 0.45);
    box-shadow: var(--referral-card-shadow);
}

.process-step-label {
    display: block;
    margin-bottom: 20px;
    color: var(--referral-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.process-number {
    position: absolute;
    top: 18px;
    right: 23px;
    color: rgba(6, 47, 45, 0.08);
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
}

.referral-process-card h3 {
    margin: 0 0 12px;
    color: var(--referral-heading);
    font-size: 24px;
}

.referral-process-card h4 {
    margin: 0 0 13px;
    color: var(--referral-green);
    font-size: 14px;
}

.referral-process-card p {
    margin: 0;
    color: var(--referral-text);
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   BENEFITS / COMMUNICATION
========================================================= */

.referral-benefits {
    position: relative;
    background:
        radial-gradient(circle at 4% 10%, rgba(201, 153, 77, 0.11), transparent 26%),
        var(--referral-light);
}

.referral-benefits-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.85fr);
    gap: 75px;
    align-items: center;
}

.referral-check-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.referral-check-list li {
    position: relative;
    padding: 15px 18px 15px 50px;
    border: 1px solid var(--referral-border);
    border-radius: 11px;
    background: var(--referral-white);
    color: var(--referral-heading);
    font-size: 14px;
    font-weight: 700;
}

.referral-check-list li::before {
    position: absolute;
    top: 50%;
    left: 18px;
    display: flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    content: "✓";
    border-radius: 50%;
    background: rgba(201, 153, 77, 0.14);
    color: #9f722d;
    font-size: 10px;
    transform: translateY(-50%);
}

.referral-communication-panel {
    padding: 38px;
    border-radius: 23px;
    background:
        radial-gradient(circle at 90% 5%, rgba(201, 153, 77, 0.21), transparent 27%),
        linear-gradient(145deg, var(--referral-dark-deep), var(--referral-green));
    box-shadow: var(--referral-shadow);
}

.referral-communication-panel h3 {
    margin: 0 0 27px;
    color: var(--referral-white);
    font-size: 31px;
    line-height: 1.25;
}

.communication-list {
    display: flex;
    flex-direction: column;
}

.communication-list > div {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    gap: 15px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.communication-list > div:last-child {
    border-bottom: 0;
}

.communication-list span {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--referral-gold-light);
    font-size: 11px;
    font-weight: 800;
}

.communication-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   SPECIALITIES
========================================================= */

.referral-specialities {
    background: var(--referral-white);
}

.referral-speciality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.referral-speciality-card {
    position: relative;
    min-height: 230px;
    padding: 31px;
    overflow: hidden;
    border: 1px solid var(--referral-border);
    border-radius: 18px;
    background: var(--referral-white);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.referral-speciality-card:hover {
    transform: translateY(-7px);
    border-color: rgba(201, 153, 77, 0.45);
    box-shadow: var(--referral-card-shadow);
}

.referral-speciality-card > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border-radius: 50%;
    background: var(--referral-green-soft);
    color: var(--referral-green);
    font-size: 11px;
    font-weight: 800;
}

.referral-speciality-card h3 {
    margin: 0 0 12px;
    color: var(--referral-heading);
    font-size: 22px;
}

.referral-speciality-card p {
    margin: 0;
    color: var(--referral-text);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   CONTACT / CTA
========================================================= */

.referral-contact {
    background:
        linear-gradient(rgba(6, 47, 45, 0.035), rgba(6, 47, 45, 0.035)),
        var(--referral-light);
}

.referral-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.referral-contact-card {
    position: relative;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    justify-content: flex-end;
    padding: 31px;
    overflow: hidden;
    border: 1px solid var(--referral-border);
    border-radius: 18px;
    background: var(--referral-white);
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.referral-contact-card:hover {
    transform: translateY(-7px);
    border-color: rgba(201, 153, 77, 0.5);
    box-shadow: var(--referral-card-shadow);
}

.contact-icon {
    position: absolute;
    top: 23px;
    right: 25px;
    color: rgba(6, 47, 45, 0.08);
    font-size: 48px;
    font-weight: 900;
}

.contact-label {
    margin-bottom: 9px;
    color: var(--referral-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.referral-contact-card strong {
    margin-bottom: 8px;
    color: var(--referral-heading);
    font-size: 22px;
    overflow-wrap: anywhere;
}

.referral-contact-card small {
    color: var(--referral-muted);
    font-size: 13px;
}

.referral-final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 35px;
    align-items: center;
    margin-top: 50px;
    padding: 45px 48px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 85% 20%, rgba(201, 153, 77, 0.2), transparent 25%),
        linear-gradient(135deg, var(--referral-dark-deep), var(--referral-green));
    box-shadow: var(--referral-shadow);
}

.referral-final-cta h2 {
    max-width: 730px;
    margin: 0 0 12px;
    color: var(--referral-white);
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.15;
    letter-spacing: -1.2px;
}

.referral-final-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.69);
    font-size: 15px;
}

.referral-btn-light {
    background: var(--referral-white);
    color: var(--referral-dark);
}


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

@media (max-width: 1100px) {
    .referral-hero-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 42px;
    }

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

    .referral-process-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referral-process-flow::before {
        display: none;
    }

    .referral-benefits-grid {
        gap: 45px;
    }
}

@media (max-width: 900px) {
    .referral-hero {
        padding: 85px 0 75px;
    }

    .referral-hero-grid,
    .referral-benefits-grid {
        grid-template-columns: 1fr;
    }

    .referral-hero-panel {
        max-width: 680px;
    }

    .referral-metrics-grid,
    .referral-speciality-grid,
    .referral-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referral-metric:nth-child(2)::after {
        display: none;
    }

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

@media (max-width: 700px) {
    .referral-container {
        width: min(100% - 28px, 1180px);
    }

    .referral-section {
        padding: 75px 0;
    }

    .referral-hero h1 {
        font-size: 42px;
        letter-spacing: -1.6px;
    }

    .referral-hero-lead {
        font-size: 17px;
    }

    .referral-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .referral-btn {
        width: 100%;
    }

    .referral-metrics-grid,
    .referral-process-flow,
    .referral-speciality-grid,
    .referral-contact-grid {
        grid-template-columns: 1fr;
    }

    .referral-metric:not(:last-child)::after {
        top: auto;
        right: 20%;
        bottom: 0;
        left: 20%;
        width: auto;
        height: 1px;
    }

    .referral-process-card {
        min-height: auto;
    }

    .referral-final-cta {
        padding: 34px 26px;
    }
}

@media (max-width: 480px) {
    .referral-hero {
        padding: 68px 0 60px;
    }

    .referral-hero h1 {
        font-size: 35px;
    }

    .referral-hero-panel,
    .referral-communication-panel {
        padding: 27px 22px;
    }

    .referral-heading h2,
    .referral-benefits-copy h2 {
        font-size: 32px;
    }

    .referral-heading {
        margin-bottom: 38px;
    }

    .referral-speciality-card,
    .referral-contact-card,
    .referral-process-card {
        padding: 25px 21px;
    }
}