/* =========================================================
   ELI VIDAL — REFERRAL PARTNER PAGE
   Card-based visual system for partners(4).html
   ========================================================= */

/* ---------- PAGE / LAYOUT ---------- */

.partners-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8.5rem 0 5rem;
}

.partners-container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.partners-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    gap: 56px;
    align-items: center;
}

.partners-hero-copy {
    min-width: 0;
}

.partners-hero-copy h1 {
    max-width: 760px;
    margin: .8rem 0 1.8rem;
    font-size: clamp(4rem, 6.2vw, 6.5rem);
    line-height: .9;
    letter-spacing: -.065em;
}

.partners-lead {
    max-width: 690px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.partners-hero-copy > .primary-btn {
    margin-top: 1.8rem;
}

/* ---------- HERO METRIC CARDS ---------- */

.partner-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 1.8rem;
}

.partner-metrics > div {
    min-height: 82px;
    padding: 14px 13px;
    border: 1px solid rgba(13, 33, 61, .11);
    border-radius: 13px;
    background: rgba(13, 33, 61, .035);
}

.partner-metrics strong,
.partner-metrics span {
    display: block;
}

.partner-metrics strong {
    color: var(--gold);
    font-size: 1rem;
    line-height: 1.1;
}

.partner-metrics span {
    margin-top: 7px;
    color: var(--muted);
    font-size: .67rem;
    line-height: 1.35;
}

/* ---------- HERO COMMISSION CARD ---------- */

.partner-hero-card {
    position: relative;
    padding: 40px;
    border: 1px solid rgba(10, 102, 194, .28);
    border-radius: 24px;
    background:
        linear-gradient(145deg,
            rgba(10, 102, 194, .10),
            rgba(13, 33, 61, .045) 55%,
            rgba(13, 33, 61, .025));
    box-shadow: 0 24px 70px rgba(0,0,0,.15);
}

.partner-hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 35px;
    right: 35px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(10, 102, 194, .8),
        transparent
    );
}

.partner-hero-card h2 {
    margin: .8rem 0 1.4rem;
    font-size: clamp(2.7rem, 4vw, 4.1rem);
    line-height: .94;
    letter-spacing: -.06em;
}

.partner-hero-card > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.hero-commission {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 1.8rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(13, 33, 61, .11);
}

.hero-commission strong {
    color: var(--gold);
    font-size: 3rem;
    line-height: .9;
    letter-spacing: -.055em;
}

.hero-commission span {
    color: var(--muted);
    font-size: .86rem;
}

.hero-cap {
    margin-top: .8rem;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.5;
}

.hero-cap strong {
    color: var(--text);
}

/* ---------- SECTION WRAPPERS ---------- */

.partner-process,
.dark-panel,
.referral-section {
    border-top: 1px solid rgba(13, 33, 61, .065);
}

.partner-process .partners-container,
.dark-panel .partners-container,
.referral-section .partners-container {
    padding-top: 88px;
    padding-bottom: 88px;
}

.section-heading {
    max-width: 860px;
}

.section-heading h2,
.referral-copy h2 {
    margin: .7rem 0 1.1rem;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .96;
    letter-spacing: -.055em;
}

.section-heading > p:not(.eyebrow) {
    max-width: 730px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.partner-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 44px;
}

.partner-steps > article {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 245px;
    padding: 25px;
    overflow: hidden;
    border: 1px solid rgba(13, 33, 61, .11);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(13, 33, 61, .055),
            rgba(13, 33, 61, .018)
        );
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition: transform .2s ease, border-color .2s ease;
}

.partner-steps > article:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 102, 194, .38);
}

.partner-steps > article::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -35px;
    width: 105px;
    height: 105px;
    border: 1px solid rgba(10, 102, 194, .10);
    border-radius: 50%;
}

.step-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 38px;
    border: 1px solid rgba(10, 102, 194, .25);
    border-radius: 11px;
    color: var(--gold);
    background: rgba(10, 102, 194, .08);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.partner-steps h3 {
    margin: 0 0 .7rem;
    font-size: 1.08rem;
    line-height: 1.25;
}

.partner-steps p {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.62;
}

/* =========================================================
   FIT = FOUR CARDS
   ========================================================= */

.fit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 44px;
}

.fit-grid > article {
    position: relative;
    min-height: 205px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(13, 33, 61, .11);
    border-radius: 20px;
    background:
        linear-gradient(
            145deg,
            rgba(13, 33, 61, .055),
            rgba(13, 33, 61, .018)
        );
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition: transform .2s ease, border-color .2s ease;
}

.fit-grid > article:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 102, 194, .38);
}

.fit-grid > article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    width: 46px;
    height: 2px;
    background: var(--gold);
    opacity: .65;
}

.fit-grid > article > i {
    display: grid;
    width: 45px;
    height: 45px;
    margin-bottom: 25px;
    place-items: center;
    border-radius: 12px;
    color: var(--gold);
    background: rgba(10, 102, 194, .09);
}

.fit-grid h3 {
    margin: 0 0 .7rem;
    font-size: 1.1rem;
}

.fit-grid p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: .86rem;
    line-height: 1.65;
}

/* =========================================================
   REFERRAL SECTION
   ========================================================= */

.referral-layout {
    display: grid;
    grid-template-columns: minmax(290px, .72fr) minmax(560px, 1.28fr);
    gap: 54px;
    align-items: start;
}

.referral-copy {
    position: sticky;
    top: 105px;
}

.referral-copy h2 {
    max-width: 570px;
}

.referral-copy > p:not(.eyebrow) {
    max-width: 540px;
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

/* Small supporting cards */

.referral-notes {
    display: grid;
    gap: 10px;
    margin-top: 25px;
}

.referral-notes > div {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(13, 33, 61, .09);
    border-radius: 13px;
    background: rgba(13, 33, 61, .028);
}

.referral-notes i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    color: var(--gold);
    background: rgba(10, 102, 194, .09);
    font-size: .78rem;
}

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

.referral-notes strong {
    margin-bottom: 3px;
    font-size: .8rem;
}

.referral-notes span {
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.45;
}

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

.referral-form-card {
    width: 100%;
    box-sizing: border-box;
    padding: 32px;
    border: 1px solid rgba(13, 33, 61, .12);
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            rgba(13, 33, 61, .055),
            rgba(13, 33, 61, .025)
        );
    box-shadow: 0 20px 60px rgba(0,0,0,.12);
}

.referral-form-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 15px;
}

.referral-form-card .form-group {
    min-width: 0;
    margin: 0 0 16px;
}

.referral-form-card .form-group:nth-of-type(3),
.referral-form-card .form-group:nth-of-type(n+4) {
    grid-column: 1 / -1;
}

.referral-form-card .form-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 0 18px;
    color: var(--gold);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.referral-form-card .form-divider::before,
.referral-form-card .form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(13, 33, 61, .11);
}

.referral-form-card label {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: .7rem;
    font-weight: 700;
}

.referral-form-card label span {
    color: var(--muted);
    font-weight: 500;
}

.referral-form-card input,
.referral-form-card textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(13, 33, 61, .12);
    border-radius: 11px;
    outline: none;
    background: rgba(0,0,0,.10);
    color: var(--text);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.referral-form-card input {
    height: 47px;
    padding: 0 13px;
}

.referral-form-card textarea {
    min-height: 135px;
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.5;
}

.referral-form-card input:focus,
.referral-form-card textarea:focus {
    border-color: rgba(10, 102, 194, .65);
    background: rgba(13, 33, 61, .035);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, .07);
}

.referral-form-card .form-submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 49px;
    margin-top: 3px;
    justify-content: center;
}

.referral-form-card .form-disclaimer {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .61rem;
    line-height: 1.5;
    text-align: center;
}

.referral-form-card .form-success {
    padding: 60px 20px;
    text-align: center;
}

.referral-form-card .form-success i {
    display: block;
    margin-bottom: 14px;
    color: var(--gold);
    font-size: 2.5rem;
}

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

@media (max-width: 1080px) {
    .partners-hero-grid {
        grid-template-columns: 1fr;
    }

    .partner-hero-card {
        max-width: 720px;
    }

    .partner-steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .referral-copy {
        position: static;
    }
}

@media (max-width: 760px) {
    .partners-container {
        width: min(100% - 32px, 620px);
    }

    .partners-hero {
        min-height: auto;
        padding: 105px 0 65px;
    }

    .partners-hero-copy h1 {
        font-size: clamp(3.3rem, 13vw, 5rem);
    }

    .partner-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .partner-process .partners-container,
    .dark-panel .partners-container,
    .referral-section .partners-container {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .fit-grid,
    .partner-steps {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .referral-copy h2 {
        font-size: clamp(2.6rem, 10vw, 4rem);
    }
}

@media (max-width: 560px) {
    .partners-hero-grid {
        gap: 30px;
    }

    .partner-hero-card {
        padding: 28px 23px;
    }

    .partner-hero-card h2 {
        font-size: 2.6rem;
    }

    .referral-form-card {
        padding: 23px 18px;
    }

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

    .referral-form-card .form-group,
    .referral-form-card .form-group:nth-of-type(n+3),
    .referral-form-card .form-divider,
    .referral-form-card .form-submit,
    .referral-form-card .form-disclaimer {
        grid-column: 1;
    }
}


/* =========================================================
   ICONS
   Real Font Awesome is now loaded (same CDN as every other
   page), so icons render natively. Just size/color the ones
   that need it beyond the shared style.css rules.
   ========================================================= */

.fit-grid > article > i {
    display: inline-grid;
    place-items: center;
    width: 45px;
    height: 45px;
    margin-bottom: 25px;
    border-radius: 12px;
    color: var(--gold);
    background: rgba(10, 102, 194, 0.09);
    font-size: 1.05rem;
}

.referral-notes > div > i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    color: var(--gold);
    background: rgba(10, 102, 194, 0.09);
    font-size: 0.95rem;
}

.referral-form-card .form-success > i {
    font-size: 2.2rem;
}
