/* ============================================================
   JOIN US
   ============================================================ */

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

.join-main {
    width: min(1160px, calc(100% - 30px));
    margin: 0 auto;
    padding: 34px 0 56px;
    color: #153b62;
}

.join-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .75fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 24px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid #bcd8ea;
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 10%, rgba(33, 141, 214, .18), transparent 34%),
        linear-gradient(135deg, #eef8ff, #ffffff 62%);
    box-shadow: 0 14px 32px rgba(5, 62, 113, .08);
}

.join-hero::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -54px;
    width: 210px;
    height: 115px;
    border: 16px solid rgba(11, 100, 181, .07);
    border-left-color: transparent;
    border-radius: 50%;
    transform: rotate(-9deg);
    pointer-events: none;
}

.join-eyebrow {
    margin: 0 0 8px;
    color: #0873b9;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.join-hero h2,
.join-section-heading h2,
.join-success h2 {
    margin: 0;
    color: #06396f;
    line-height: 1.08;
}

.join-hero h2 {
    max-width: 720px;
    font-size: clamp(2rem, 4vw, 3.35rem);
    letter-spacing: -.035em;
}

.join-hero > div > p:last-child {
    max-width: 720px;
    margin: 16px 0 0;
    color: #476985;
    font-size: 1.05rem;
    line-height: 1.7;
}

.join-hero-note {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-left: 5px solid #e3a115;
    border-radius: 12px;
    background: rgba(255, 249, 229, .94);
    color: #5c4615;
    box-shadow: 0 7px 18px rgba(97, 71, 7, .08);
}

.join-hero-note strong,
.join-hero-note span {
    display: block;
}

.join-hero-note strong {
    margin-bottom: 6px;
    color: #5a3f00;
    font-size: 1.02rem;
}

.join-hero-note span {
    line-height: 1.55;
}

.join-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.join-form-card,
.join-sidebar > section,
.join-success,
.join-errors {
    border: 1px solid #c5dbea;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(5, 62, 113, .07);
}

.join-form-card {
    padding: clamp(22px, 4vw, 36px);
}

.join-section-heading {
    padding-bottom: 20px;
    border-bottom: 1px solid #dce9f2;
}

.join-section-heading h2 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.join-section-heading > p:last-child {
    margin: 8px 0 0;
    color: #60758a;
}

.join-section-heading span,
.join-field label span,
.join-consent strong {
    color: #b64227;
}

.join-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding-top: 24px;
}

.join-field {
    min-width: 0;
}

.join-field-wide {
    grid-column: 1 / -1;
}

.join-field label {
    display: block;
    margin-bottom: 7px;
    color: #113f6c;
    font-size: .9rem;
    font-weight: 850;
}

.join-field input,
.join-field select,
.join-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #afc9db;
    border-radius: 10px;
    background: #fbfdff;
    color: #12395e;
    font: inherit;
}

.join-field input,
.join-field select {
    min-height: 48px;
    padding: 10px 12px;
}

.join-field textarea {
    min-height: 145px;
    padding: 12px;
    resize: vertical;
    line-height: 1.55;
}

.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
    border-color: #0b74bd;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(11, 116, 189, .13);
    background: #ffffff;
}

.join-consent {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 10px;
    background: #f0f7fc;
    color: #3a5e7b;
    line-height: 1.5;
}

.join-consent input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: #0b64b5;
    flex: 0 0 auto;
}

.join-submit {
    display: flex;
    gap: 16px;
    align-items: center;
}

.join-submit button {
    min-height: 49px;
    flex: 0 0 auto;
    padding: 12px 22px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #07529a, #0c76c4);
    color: #ffffff;
    font: inherit;
    font-weight: 900;
    box-shadow: 0 5px 12px rgba(4, 76, 137, .2);
    cursor: pointer;
}

.join-submit button:hover {
    background: #074985;
}

.join-submit button:focus-visible {
    outline: 3px solid #e3a115;
    outline-offset: 3px;
}

.join-submit p {
    margin: 0;
    color: #6b8093;
    font-size: .84rem;
    line-height: 1.45;
}

.join-sidebar {
    display: grid;
    gap: 18px;
}

.join-sidebar > section {
    padding: 23px;
}

.join-sidebar ol {
    display: grid;
    gap: 19px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.join-sidebar li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
}

.join-sidebar li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0b64b5;
    color: #ffffff;
    font-weight: 900;
}

.join-sidebar li strong {
    color: #073f73;
}

.join-sidebar li p,
.join-friendly-note p {
    margin: 5px 0 0;
    color: #60758a;
    font-size: .9rem;
    line-height: 1.5;
}

.join-sidebar .join-friendly-note {
    border-color: #ead28f;
    background: #fff9e9;
}

.join-friendly-note strong {
    color: #664b05;
}

.join-errors {
    margin-bottom: 22px;
    padding: 18px 22px;
    border-color: #e0afa6;
    border-left: 6px solid #bd4b35;
    color: #7a2d20;
    background: #fff6f3;
}

.join-errors ul {
    margin: 8px 0 0;
    padding-left: 21px;
}

.join-errors li + li {
    margin-top: 4px;
}

.join-success {
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: 820px;
    margin: 30px auto 70px;
    padding: clamp(24px, 5vw, 42px);
    border-color: #9dd7b3;
    background: linear-gradient(135deg, #f3fff7, #ffffff);
}

.join-success > span {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 50%;
    background: #198b4c;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 900;
}

.join-success h2 {
    font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.join-success p {
    margin: 9px 0 0;
    color: #456b57;
    line-height: 1.6;
}

.join-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 880px) {
    .join-hero,
    .join-layout {
        grid-template-columns: 1fr;
    }

    .join-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .join-main {
        width: min(100% - 20px, 1160px);
        padding-top: 20px;
    }

    .join-hero,
    .join-form-card,
    .join-sidebar > section {
        border-radius: 14px;
    }

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

    .join-field-wide {
        grid-column: auto;
    }

    .join-sidebar {
        grid-template-columns: 1fr;
    }

    .join-submit,
    .join-success {
        align-items: stretch;
        flex-direction: column;
    }

    .join-submit button {
        width: 100%;
    }

    .join-success > span {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }
}
