.page-join {
    background:
        radial-gradient(circle at top left, rgba(15, 76, 129, 0.05), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, var(--color-bg) 100%);
}

.join-page {
    overflow: hidden;
}

.join-hero {
    padding: clamp(1.15rem, 2.6vw, 2.15rem) 0 clamp(1rem, 2.4vw, 1.75rem);
    border-bottom: 1px solid rgba(24, 37, 56, 0.08);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
        repeating-linear-gradient(90deg, rgba(15, 76, 129, 0.035) 0 1px, transparent 1px 28px);
}

.join-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    gap: clamp(1rem, 2.6vw, 2rem);
    align-items: center;
}

.join-eyebrow,
.join-step {
    margin: 0 0 0.4rem;
    color: #d6263a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.join-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(2rem, 3.7vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.join-lead {
    max-width: 700px;
    margin: 0.75rem 0 0;
    color: var(--color-text-muted);
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    line-height: 1.58;
}

.join-language {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 0.42rem;
    border: 1px solid rgba(15, 76, 129, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(15, 35, 55, 0.08);
}

.join-language__label {
    padding-left: 0.72rem;
    color: #44546a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

.join-language__control {
    display: inline-flex;
    align-items: center;
    gap: 0.22rem;
    padding: 0.18rem;
    border: 1px solid rgba(15, 76, 129, 0.13);
    border-radius: 999px;
    background: #f3f7fb;
}

.join-language__option {
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 0.38rem;
    align-items: center;
    min-height: 2.35rem;
    padding: 0 0.9rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #174064;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.join-language__option:hover,
.join-language__option:focus-visible {
    border-color: rgba(15, 76, 129, 0.28);
    background: #ffffff;
    color: var(--color-primary-strong);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
    outline: none;
}

.join-language__option.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(15, 76, 129, 0.22);
}

.join-language__code,
.join-language__name {
    display: block;
    color: inherit;
    text-decoration: none;
}

.join-language__code {
    font-size: 0.92rem;
    font-weight: 950;
    letter-spacing: 0.02em;
}

.join-language__name {
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 0.86;
}

.join-hero__panel {
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid rgba(15, 76, 129, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.join-hero__panel strong {
    color: var(--color-heading);
    font-size: 1rem;
}

.join-hero__panel span {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.48;
}

.join-section {
    padding: clamp(1.15rem, 2.8vw, 2rem) 0 clamp(4rem, 7vw, 6rem);
}

.join-form {
    display: grid;
    gap: 1.15rem;
    max-width: 1060px;
    margin: 0 auto;
}

.join-errors {
    max-width: 1060px;
    margin: 0 auto 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(214, 38, 58, 0.24);
    border-left: 4px solid #d6263a;
    border-radius: 12px;
    background: #fff6f7;
    color: #7f1d1d;
    box-shadow: 0 8px 20px rgba(127, 29, 29, 0.06);
}

.join-errors strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #7f1d1d;
}

.join-errors ul {
    margin: 0;
    padding-left: 1.2rem;
}

.join-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.join-card {
    padding: clamp(1.15rem, 3vw, 1.6rem);
    border: 1px solid rgba(24, 37, 56, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 28px rgba(12, 28, 52, 0.07);
}

.join-card[hidden],
.join-delegate[hidden],
#dirManualFields[hidden],
#orgIndustryOtherRow[hidden],
#renewalRow[hidden] {
    display: none !important;
}

.join-card__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.join-card h2 {
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    letter-spacing: 0;
}

.join-card p {
    max-width: 760px;
    margin: 0.4rem 0 0;
    color: var(--color-text-muted);
}

.join-choice-grid,
.join-tier-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.join-page [hidden] {
    display: none !important;
}

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

.join-choice,
.join-tier,
.join-check {
    position: relative;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(24, 37, 56, 0.12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(12, 28, 52, 0.04);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.join-choice:hover,
.join-tier:hover,
.join-check:hover {
    border-color: rgba(15, 76, 129, 0.24);
    box-shadow: 0 12px 26px rgba(12, 28, 52, 0.08);
    transform: translateY(-1px);
}

.join-choice.is-selected,
.join-tier.is-selected,
.join-check:has(input:checked) {
    border-color: rgba(15, 76, 129, 0.72);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.11), 0 12px 28px rgba(12, 28, 52, 0.08);
}

.join-choice.is-disabled,
.join-tier.is-disabled,
.join-check:has(input:disabled) {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.join-choice input,
.join-tier input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.join-check input {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.22rem;
    accent-color: var(--color-primary);
}

.join-choice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3rem;
    width: 3rem;
    height: 3rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.join-choice strong,
.join-tier strong,
.join-check strong {
    display: block;
    color: var(--color-heading);
    font-size: 1.02rem;
    line-height: 1.25;
}

.join-choice small,
.join-tier small,
.join-check small {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.join-tier {
    display: grid;
    gap: 0.85rem;
}

.join-tier__top {
    display: grid;
    gap: 0.8rem;
}

.join-tier__price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.price-old {
    color: #8793a1;
    font-weight: 750;
    text-decoration: line-through;
}

.price-new {
    color: var(--color-heading);
    font-size: 1.22rem;
    font-weight: 900;
}

.join-tier ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.join-tier li + li {
    margin-top: 0.3rem;
}

.join-tier-placeholder {
    padding: 1rem;
    border: 1px dashed rgba(24, 37, 56, 0.22);
    border-radius: 12px;
    background: #f7f9fc;
    color: var(--color-text-muted);
    font-weight: 850;
    text-align: center;
}

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

.join-field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

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

.join-field span,
.join-delegate legend {
    color: var(--color-heading);
    font-weight: 850;
    line-height: 1.35;
}

.join-field em {
    margin-left: 0.35rem;
    color: #d6263a;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.join-field input,
.join-field select,
.join-field textarea {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(24, 37, 56, 0.16);
    border-radius: 10px;
    background: #fff;
    color: var(--color-text);
    font: inherit;
    outline: 0;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.join-field textarea {
    resize: vertical;
    min-height: 7rem;
}

.join-field input:focus,
.join-field select:focus,
.join-field textarea:focus {
    border-color: rgba(15, 76, 129, 0.66);
    box-shadow: 0 0 0 4px rgba(15, 76, 129, 0.12);
}

.join-field input[type="file"] {
    padding: 0.7rem;
}

.join-field input::file-selector-button {
    margin-right: 0.85rem;
    min-height: 2.2rem;
    padding: 0 0.85rem;
    border: 1px solid rgba(15, 76, 129, 0.22);
    border-radius: 8px;
    background: #f3f7fc;
    color: var(--color-primary-strong);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.join-field input:disabled,
.join-field select:disabled,
.join-field textarea:disabled {
    background: #f1f5f9;
    color: #7c8796;
    cursor: not-allowed;
}

.join-field small {
    color: var(--color-text-muted);
}

.join-delegate {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 1rem;
    border: 1px solid rgba(24, 37, 56, 0.1);
    border-radius: 12px;
    background: #f8fbff;
}

.join-delegate + .join-delegate {
    margin-top: 0.85rem;
}

.join-delegate legend {
    padding: 0 0.35rem;
}

.join-radio-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.join-radio-row .join-check {
    min-height: 100%;
}

.join-submit {
    display: grid;
    justify-items: center;
    gap: 0.65rem;
    padding: 1.2rem;
    border-radius: 14px;
    background: #0f1c2a;
    color: #fff;
}

.join-submit.is-locked {
    border: 1px solid rgba(24, 37, 56, 0.12);
    background: #f5f7fb;
    color: var(--color-text);
}

.join-submit__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 460px);
    min-height: 3.25rem;
    padding: 0.9rem 1.2rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #d6263a, #b9162e);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(214, 38, 58, 0.22);
}

.join-submit__button:disabled {
    background: #d8dee7;
    color: #5d6979;
    cursor: not-allowed;
    box-shadow: none;
}

.join-submit__button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.45);
    outline-offset: 3px;
}

.join-submit h1 {
    margin: 0;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1.25;
    text-align: center;
}

.join-submit a.join-submit__button {
    text-decoration: none;
}

.join-submit p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.join-submit.is-locked p {
    color: var(--color-text-muted);
}

@media (max-width: 980px) {
    .join-hero__grid,
    .join-choice-grid,
    .join-tier-grid,
    .join-grid,
    .join-radio-row {
        grid-template-columns: 1fr;
    }

    .join-hero__panel {
        align-self: stretch;
    }
}

@media (max-width: 640px) {
    .join-hero {
        padding-top: 1.25rem;
    }

    .join-hero h1 {
        font-size: clamp(2rem, 10vw, 2.85rem);
    }

    .join-language {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        border-radius: 16px;
        padding: 0.55rem;
    }

    .join-language__label {
        padding-left: 0.2rem;
    }

    .join-language__control {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .join-language__option {
        justify-content: center;
        padding: 0 0.65rem;
    }

    .join-card {
        border-radius: 12px;
    }

    .join-choice,
    .join-tier,
    .join-check,
    .join-delegate {
        border-radius: 10px;
    }
}
