/* ── GLAU Join the League — Public Application Form ── */

.join-page {
    padding-bottom: 80px;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.join-hero {
    padding: 56px 0 44px;
    background: linear-gradient(180deg, #0d0d1e 0%, #0a0a0a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.join-hero__inner {}
.join-hero__label {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .6em;
    padding-left: .6em;
    text-transform: uppercase;
    color: #c9a227;
    margin-bottom: 12px;
}
.join-hero__title {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: .95;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 14px;
}
.join-hero__sub {
    font-size: .95rem;
    color: rgba(255, 255, 255, .5);
    margin: 0;
}

/* ── Applications Closed ───────────────────────────────────────────────────── */
.join-closed {
    padding: 64px 0;
}
.join-closed__card {
    text-align: center;
    padding: 56px 40px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    max-width: 480px;
    margin: 0 auto;
}
.join-closed__icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, .22);
    margin-bottom: 22px;
}
.join-closed__title {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.join-closed__body {
    color: rgba(255, 255, 255, .45);
    font-size: .9rem;
    margin: 0;
    line-height: 1.6;
}

/* ── Error box ─────────────────────────────────────────────────────────────── */
.join-errors {
    padding: 28px 0 0;
}
.join-errors__box {
    background: rgba(220, 38, 38, .09);
    border: 1px solid rgba(220, 38, 38, .28);
    border-left: 4px solid #dc2626;
    border-radius: 8px;
    padding: 16px 20px;
    color: #fca5a5;
    font-size: .88rem;
    line-height: 1.5;
}
.join-errors__box strong {
    display: block;
    margin-bottom: 8px;
    color: #fca5a5;
}
.join-errors__box ul {
    margin: 0;
    padding-left: 18px;
}
.join-errors__box li {
    margin-bottom: 4px;
}
.join-errors__box li:last-child {
    margin-bottom: 0;
}

/* ── Form wrap ─────────────────────────────────────────────────────────────── */
.join-form-wrap {
    padding: 32px 0 0;
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.join-section {
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    padding: 28px 28px 24px;
    margin-bottom: 20px;
}
.join-section__title {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #c9a227;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 4px;
}
.join-section__desc {
    font-size: .82rem;
    color: rgba(255, 255, 255, .38);
    margin: 0 0 22px;
    line-height: 1.5;
}

/* ── Field layout ──────────────────────────────────────────────────────────── */
.join-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.join-field {
    margin-bottom: 18px;
}
.join-field:last-child {
    margin-bottom: 0;
}

/* Labels */
.join-label {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 8px;
}
.join-required {
    color: #c9a227;
    margin-left: 2px;
}

/* Inputs + Selects — 16px min to prevent iOS auto-zoom */
.join-input,
.join-select {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 13px 16px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;       /* = 16px — prevents iOS zoom on focus */
    line-height: 1.4;
    transition: border-color .15s, background .15s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}
.join-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='rgba(255,255,255,0.35)' d='M5 6 0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 38px;
    cursor: pointer;
}
.join-input:focus,
.join-select:focus {
    outline: none;
    border-color: rgba(201, 162, 39, .6);
    background: rgba(255, 255, 255, .09);
}
.join-input::placeholder {
    color: rgba(255, 255, 255, .25);
}
.join-select option {
    background: #1a1a2e;
    color: #fff;
}
.join-select option:disabled {
    color: rgba(255, 255, 255, .25);
}

/* ── Facebook checkbox ─────────────────────────────────────────────────────── */
.join-check-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: 16px 18px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    font-size: .92rem;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 18px;
    -webkit-user-select: none;
    user-select: none;
    line-height: 1.5;
}
.join-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 1px;
    accent-color: #c9a227;
    cursor: pointer;
}

/* ── Division blocks ───────────────────────────────────────────────────────── */
.join-divisions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.join-div {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s;
}
.join-div:has(.join-div__cb:checked) {
    border-color: rgba(201, 162, 39, .35);
}
.join-div__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, .04);
    -webkit-user-select: none;
    user-select: none;
    min-height: 64px;
}
.join-div__cb {
    width: 22px;
    height: 22px;
    min-width: 22px;
    accent-color: #c9a227;
    cursor: pointer;
}
.join-div__name {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #fff;
    text-transform: uppercase;
}
.join-div__prefs {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .4s cubic-bezier(.22, 1, .36, 1);
}
.join-div__prefs.is-open {
    grid-template-rows: 1fr;
}
.join-div__prefs-inner {
    overflow: hidden;
    padding: 0;
    border-top: 1px solid rgba(201, 162, 39, .18);
    background: rgba(201, 162, 39, .025);
    display: flex;
    flex-direction: column;
}
.join-div__prefs.is-open .join-div__prefs-inner {
    padding: 20px;
    min-height: 0;
}
.join-div__prefs-inner .join-field {
    margin-bottom: 14px;
}
.join-div__prefs-inner .join-field:last-child {
    margin-bottom: 0;
}
.join-div__prefs-inner .join-label {
    color: rgba(255, 255, 255, .45);
    font-size: .7rem;
}

/* ── Submit area ───────────────────────────────────────────────────────────── */
.join-submit {
    text-align: center;
    padding-top: 8px;
}
.join-btn-submit {
    display: block;
    width: 100%;
    padding: 17px 40px;
    background: #D20A0A;
    color: #fff;
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .18s, transform .1s;
    -webkit-appearance: none;
    appearance: none;
}
.join-btn-submit:hover {
    background: #a80808;
}
.join-btn-submit:active {
    transform: scale(.98);
}
.join-btn-submit i {
    margin-right: 8px;
}
.join-submit__note {
    margin: 14px 0 0;
    font-size: .78rem;
    color: rgba(255, 255, 255, .3);
    line-height: 1.5;
}

/* ── Success page ──────────────────────────────────────────────────────────── */
.join-success-wrap {
    padding: 80px 0;
    text-align: center;
}
.join-success {
    max-width: 480px;
    margin: 0 auto;
}
.join-success__icon {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 22px;
}
.join-success__title {
    font-family: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px;
}
.join-success__body {
    font-size: .95rem;
    color: rgba(255, 255, 255, .5);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .join-hero {
        padding: 40px 0 32px;
    }
    .join-hero__title {
        font-size: 2.6rem;
    }
    .join-field-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }
    .join-section {
        padding: 20px 18px 18px;
    }
    .join-div__header {
        padding: 16px 16px;
    }
    .join-div__prefs.is-open .join-div__prefs-inner {
        padding: 16px;
    }
}
