/* ============================================================
   HR Job Manager — Bewerbungsformular
   Felder: 2-spaltiges CSS-Grid, responsive Umbruch bei 560px
   ============================================================ */

.hjm-application-form-wrap {
    font-family: inherit;
    color: #1d2327;
    line-height: 1.5;
}

/* ── Formular-Container ─────────────────────────────────────── */

.hjm-form {
    max-width: 820px;
}

/* ── Feldgruppen (Sektionen) ────────────────────────────────── */

.hjm-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    margin-bottom: 28px;
}

.hjm-field-group__title {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #8c8f94;
    margin: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid #e2e8f0;
}

.hjm-field-group--legal {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px 18px;
    gap: 0;
    margin-bottom: 20px;
}

/* ── Einzelnes Feld ─────────────────────────────────────────── */

.hjm-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Volle Breite: Textarea, File-Inputs, Checkbox, explizit gesetzt */
.hjm-field--full,
.hjm-field--file,
.hjm-field--checkbox {
    grid-column: 1 / -1;
}

/* ── Labels ─────────────────────────────────────────────────── */

.hjm-field label,
.hjm-checkbox-label {
    font-size: 13px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.4;
}

/* ── Eingabefelder ──────────────────────────────────────────── */

.hjm-field input[type="text"],
.hjm-field input[type="email"],
.hjm-field input[type="tel"],
.hjm-field input[type="url"],
.hjm-field input[type="date"],
.hjm-field select {
    width: 100%;
    padding: 8px 11px;
    font-size: 13.5px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.5;
    -webkit-appearance: none;
    appearance: none;
}

.hjm-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23646970' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.hjm-field textarea {
    width: 100%;
    padding: 9px 11px;
    font-size: 13.5px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    resize: vertical;
    min-height: 96px;
    line-height: 1.6;
    font-family: inherit;
}

.hjm-field input:focus,
.hjm-field select:focus,
.hjm-field textarea:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, .12);
    outline: none;
}

/* ── File-Input ─────────────────────────────────────────────── */

.hjm-field input[type="file"] {
    width: 100%;
    padding: 7px 10px;
    font-size: 12.5px;
    color: #646970;
    background: #f6f7f7;
    border: 1px dashed #c3c4c7;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color .15s, background .15s;
}

.hjm-field input[type="file"]:hover {
    border-color: #2271b1;
    background: #f0f7ff;
}

.hjm-field-hint {
    font-size: 11.5px;
    color: #8c8f94;
    margin: 0;
    line-height: 1.4;
}

/* ── Pflichtfeld-Stern ──────────────────────────────────────── */

.hjm-required {
    color: #d63638;
    margin-left: 2px;
}

.hjm-required-hint {
    font-size: 12px;
    color: #8c8f94;
    margin: 0 0 14px;
    grid-column: 1 / -1;
}

/* ── DSGVO-Checkbox ─────────────────────────────────────────── */

.hjm-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: #3c434a;
}

.hjm-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #2271b1;
    cursor: pointer;
}

/* ── Submit-Bereich ─────────────────────────────────────────── */

.hjm-submit-wrap {
    margin-top: 4px;
}

.hjm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
    line-height: 1.4;
}

.hjm-btn-primary {
    background: #2271b1;
    color: #fff;
}

.hjm-btn-primary:hover {
    background: #1a5a96;
    color: #fff;
    transform: translateY(1px);
    text-decoration: none;
}

.hjm-btn-primary:disabled,
.hjm-btn-primary.is-loading {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* ── Rückmeldung ────────────────────────────────────────────── */

.hjm-response {
    margin-top: 14px;
    padding: 0;
    border-radius: 5px;
    font-size: 13.5px;
    font-weight: 500;
    display: none;
}

.hjm-response.hjm-success {
    display: block;
    background: #d1e8d1;
    border: 1px solid #c3dcb4;
    color: #1e5631;
    padding: 11px 16px;
}

.hjm-response.hjm-error {
    display: block;
    background: #fce8e8;
    border: 1px solid #f0c0c0;
    color: #7a0000;
    padding: 11px 16px;
}

/* ── Honeypot (für Bots unsichtbar, für Screen-Reader versteckt) ── */

.hjm-honeypot {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ── Responsive: 1-spaltig ab 560px ────────────────────────── */

@media (max-width: 560px) {
    .hjm-field-group {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hjm-field--full,
    .hjm-field--file,
    .hjm-field--checkbox {
        grid-column: 1;
    }

    .hjm-btn {
        width: 100%;
    }
}
