/* ===== همکاری با ما (#join): ارسال رزومه + ثبت درخواست همکاری ===== */

.join-section {
    background: #fff;
    color: var(--text-dark);
    padding: 5rem 2rem 6rem;
    scroll-margin-top: 96px;
}

.join-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: .75rem;
}

.join-subtitle {
    max-width: 640px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.9;
}

.join-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}

.join-card {
    background: var(--events-bg);
    border: 1px solid #ecebf5;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.join-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecebf5;
}

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

.join-field {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-width: 0;
}

    .join-field > label,
    .join-label {
        font-size: .9rem;
        font-weight: 700;
        color: var(--text-dark);
    }

.join-optional {
    font-weight: 400;
    font-size: .8rem;
    color: var(--text-muted);
}

.join-field input[type="text"],
.join-field input[type="tel"],
.join-field input[type="email"],
.join-field textarea {
    width: 100%;
    font: inherit;
    font-size: .95rem;
    color: var(--text-dark);
    background: #fff;
    border: 1px solid #e3e2ee;
    border-radius: 16px;
    padding: .85rem 1rem;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

    .join-field input::placeholder,
    .join-field textarea::placeholder {
        color: #9a9ab0;
    }

    /* LTR fields (mobile, email): keep the placeholder on the RTL side */
    .join-field input[dir="ltr"]:placeholder-shown {
        text-align: right;
    }

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

    .join-field input:focus,
    .join-field textarea:focus {
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(109, 77, 255, .15);
    }

.join-field .is-invalid {
    border-color: #e5484d !important;
}

/* file drop zone */
.join-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.join-drop {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.25rem;
    background: #f1eeff;
    border: 1.5px dashed #b9abff;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

    .join-drop:hover,
    .join-drop.is-dragover {
        background: #e9e4ff;
        border-color: var(--purple);
    }

    .join-drop.is-invalid {
        border-color: #e5484d;
    }

    .join-drop.has-file .join-drop-icon {
        background: var(--purple);
        color: #fff;
    }

.join-file-input:focus-visible + .join-drop,
.join-drop:focus-within {
    box-shadow: 0 0 0 3px rgba(109, 77, 255, .2);
}

.join-drop-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s, color .2s;
}

    .join-drop-icon svg {
        width: 20px;
        height: 20px;
    }

.join-drop-text {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

    .join-drop-text strong {
        font-size: .95rem;
        color: var(--text-dark);
        overflow-wrap: anywhere;
    }

    .join-drop-text small {
        font-size: .8rem;
        color: var(--text-muted);
    }

/* consent checkbox */
.join-check {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    color: #4b4b63;
    cursor: pointer;
}

    .join-check input {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
        accent-color: var(--purple);
        cursor: pointer;
    }

    .join-check.is-invalid span {
        color: #e5484d;
    }

/* honeypot field: clipped to nothing, not display:none (some bots skip
   hidden inputs); no off-screen offset, which would widen the page */
.join-card {
    position: relative;
}

.join-hp {
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.join-status {
    min-height: 0;
    margin: 0;
    font-size: .85rem;
    line-height: 1.8;
}

    .join-status:empty {
        display: none;
    }

    .join-status.is-error {
        color: #d93036;
    }

    .join-status.is-success {
        color: #1f8a4c;
    }

.join-submit {
    align-self: flex-start;
    font: inherit;
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    border: none;
    border-radius: 999px;
    padding: .8rem 2.4rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(109, 77, 255, .3);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}

    .join-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(109, 77, 255, .38);
    }

    .join-submit:disabled {
        opacity: .6;
        cursor: wait;
        transform: none;
    }

@media (max-width: 992px) {
    .join-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
    }
}

@media (max-width: 576px) {
    .join-section {
        padding: 4rem 1rem 4.5rem;
    }

    .join-title {
        font-size: 1.6rem;
    }

    .join-card {
        padding: 1.5rem 1.25rem;
        border-radius: 20px;
    }

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

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