/* Join / contact form — ensure page fills viewport below header */
#content .join-contact-page {
    min-height: calc(100vh - 120px);
    padding: 52px 20px 88px;
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(165deg, #edf4ff 0%, #f7faff 32%, #ffffff 72%);
    box-sizing: border-box;
}

.join-contact-inner {
    max-width: 920px;
    margin: 0 auto;
}

.join-contact-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid rgba(41, 121, 255, 0.18);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 60, 120, 0.08);
}

.join-contact-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(30px, 3.4vw, 40px);
    font-weight: 700;
    color: #1a1d21;
    margin: 0;
    line-height: 1.12;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.join-contact-lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    background: #f5f9ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    padding: 10px 14px;
    text-wrap: pretty;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-self: stretch;
}

.join-contact-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px 40px;
    box-shadow:
        0 4px 6px rgba(41, 121, 255, 0.06),
        0 20px 50px rgba(15, 60, 120, 0.1);
    border: 1px solid rgba(41, 121, 255, 0.18);
}

.join-field {
    margin-bottom: 22px;
}

.join-field label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #24303d;
    margin-bottom: 8px;
}

.join-field .join-checkbox-label,
.join-field .join-radio-label {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    font-weight: 500;
    color: #3d454d;
}

.join-field .join-radio-label {
    display: inline-flex;
}

.join-req-star {
    color: #d32f2f;
    font-weight: 700;
    margin-left: 2px;
}

.join-label-optional {
    font-weight: 500;
    color: #6b7280;
}

.join-optional-hint {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #677689;
    margin-top: 2px;
    margin-bottom: 6px;
}

.join-field input[type="text"],
.join-field input[type="email"],
.join-field input[type="tel"],
.join-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #d1dce8;
    border-radius: 12px;
    background: #f7fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.join-field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.join-field input:hover,
.join-field textarea:hover {
    border-color: #a8bdd9;
    background: #fafcfd;
}

.join-field input:focus,
.join-field textarea:focus {
    outline: none;
    border-color: #2979ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(41, 121, 255, 0.18);
}

.join-field-checkbox {
    margin-bottom: 28px;
    padding-top: 4px;
}

.join-radio-legend {
    display: block;
    font-weight: 600;
    color: #2a323a;
    margin-bottom: 10px;
    font-size: 15px;
}

.join-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.join-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #3d454d;
    cursor: pointer;
    line-height: 1.25;
    font-size: 15px;
    padding: 10px 14px;
    border: 1px solid #d1dce8;
    border-radius: 12px;
    background: #f7fafc;
}

.join-radio-label:has(input:checked) {
    border-color: #2979ff;
    background: #eef5ff;
}

.join-radio-label > span,
.join-checkbox-label > span {
    display: block;
    line-height: 1.25;
}

.join-radio-label input[type="radio"],
.join-checkbox-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    align-self: center;
    width: 18px;
    height: 18px;
    border: 2px solid #94a3b8;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
}

.join-radio-label input[type="radio"] {
    border-radius: 50%;
}

.join-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.join-radio-label input[type="radio"]::before,
.join-checkbox-label input[type="checkbox"]::before {
    content: "";
    transform: scale(0);
    transition: transform 0.12s ease-in-out;
}

.join-radio-label input[type="radio"]::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2979ff;
}

.join-checkbox-label input[type="checkbox"]::before {
    width: 10px;
    height: 10px;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
    background: #fff;
}

.join-radio-label input[type="radio"]:checked,
.join-checkbox-label input[type="checkbox"]:checked {
    border-color: #2979ff;
    background: #2979ff;
}

.join-radio-label input[type="radio"]:checked {
    background: #fff;
}

.join-radio-label input[type="radio"]:checked::before,
.join-checkbox-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.join-radio-label input[type="radio"]:focus,
.join-radio-label input[type="radio"]:focus-visible,
.join-checkbox-label input[type="checkbox"]:focus,
.join-checkbox-label input[type="checkbox"]:focus-visible,
.join-radio-label:focus,
.join-radio-label:focus-within {
    outline: none;
    box-shadow: none;
}

.join-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #3d454d;
    cursor: pointer;
    line-height: 1.25;
    font-size: 15px;
}

.join-submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(180deg, #4a90ff 0%, #2979ff 55%, #1a6eeb 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(41, 121, 255, 0.38);
    transition: transform 0.15s ease, box-shadow 0.2s;
}

.join-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(41, 121, 255, 0.45);
}

.join-submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    #content .join-contact-page {
        padding: 28px 14px 64px;
    }

    .join-contact-title {
        font-size: 30px;
        line-height: 1.2;
        white-space: normal;
    }

    .join-contact-lead {
        font-size: 15px;
        line-height: 1.55;
        padding: 10px 12px;
    }

    .join-contact-form {
        padding: 26px 20px 32px;
        border-radius: 16px;
    }
}

@media (max-width: 860px) {
    .join-contact-header { gap: 10px; }

    .join-contact-title {
        white-space: normal;
    }
}
