/* ═══════════════════════════════════════════
   JOIN_US.CSS — Вступить в команду
   ═══════════════════════════════════════════ */

.join-page {
    padding: 40px 0;
}

.join-header {
    margin-bottom: 48px;
    max-width: 700px;
}

.join-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 16px;
}

.join-header p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.7;
}

/* ── BENEFITS ────────────────────────────── */
.join-benefits {
    margin-bottom: 60px;
}

.join-benefits h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: 0.05em;
    color: var(--purple);
}

.join-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.join-benefit-card {
    background: var(--white);
    padding: 28px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(93, 88, 245, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.join-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(93, 88, 245, 0.12);
}

.join-benefit-card__icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.join-benefit-card h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text);
}

.join-benefit-card p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

/* ── FORM ────────────────────────────────── */
.join-form-section {
    background: linear-gradient(135deg, #f5f4ff, #ebebf8);
    border-radius: 32px;
    padding: 48px 40px;
}

.join-form-section h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.join-form-section > p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 32px;
}

.join-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.join-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.join-form__group span {
    font-size: 14px;
    font-weight: 600;
    color: #2a2a35;
}

.join-form__group input,
.join-form__group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #d8dbef;
    border-radius: 16px;
    font: inherit;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.join-form__group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235f5f71' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.join-form__group input:focus,
.join-form__group select:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(93, 88, 245, 0.1);
}

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

.join-form__error {
    font-size: 12px;
    color: #d94841;
    display: none;
}

.join-form__error.is-visible {
    display: block;
}

.join-form__input--error {
    border-color: #d94841 !important;
    box-shadow: 0 0 0 3px rgba(217, 72, 65, 0.12) !important;
}

.join-form__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
}

.join-form__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--purple);
    cursor: pointer;
}

.join-form__checkbox span {
    font-size: 14px;
    color: #2a2a35;
    user-select: none;
}

.join-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.join-form__note {
    font-size: 12px;
    color: var(--muted);
    max-width: 360px;
    line-height: 1.4;
}

.join-form__submit {
    min-height: 52px;
    padding: 0 32px;
}

.join-form__message {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
}

.join-form__message--success {
    background: #eefbf3;
    color: #157347;
    border: 1px solid #bfe7cc;
}

.join-form__message--error {
    background: #fff0f0;
    color: #b42318;
    border: 1px solid #f4c7c7;
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
    .join-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .join-form-section {
        padding: 32px 20px;
        border-radius: 22px;
    }

    .join-form__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .join-form__note {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .join-page {
        padding: 20px 0;
    }

    .join-header {
        margin-bottom: 28px;
    }

    .join-header h2 {
        font-size: 24px;
    }

    .join-header p {
        font-size: 14px;
    }

    .join-benefits__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .join-benefit-card {
        padding: 20px;
        border-radius: 16px;
    }

    .join-form-section {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .join-form-section h3 {
        font-size: 18px;
    }

    .join-form__submit {
        width: 100%;
    }
}
