
.ajm-wpjm-application-box {
    margin-top: 32px;
    padding: 24px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background: #fff;
}
.ajm-wpjm-application-box h2 {
    margin-top: 0;
}
.ajm-wpjm-application-form {
    display: grid;
    gap: 28px;
}
.ajm-wpjm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
.ajm-wpjm-application-form label {
    display: grid;
    gap: 8px;
    font-weight: 400;
    color: #777;
    font-size: 1.15rem;
}
.ajm-wpjm-application-form input[type="text"],
.ajm-wpjm-application-form input[type="email"],
.ajm-wpjm-application-form input[type="tel"],
.ajm-wpjm-application-form textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    font: inherit;
    border: 1px solid #d7d7d7;
    padding: 12px;
    background: #fff;
    color: #111;
}
.ajm-wpjm-fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}
.ajm-wpjm-fieldset legend {
    color: #777;
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.ajm-wpjm-radio-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.ajm-wpjm-radio-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111;
    font-size: 1.2rem;
}
.ajm-wpjm-radio-row input[type="radio"] {
    width: 22px;
    height: 22px;
}
.ajm-wpjm-documents {
    display: grid;
    gap: 22px;
    margin-top: 8px;
}
.ajm-wpjm-documents h3 {
    margin: 0;
    color: #111;
}
.ajm-wpjm-doc-text {
    color: #666;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}
.ajm-wpjm-documents label span {
    color: #777;
    font-size: .95rem;
    margin-top: -4px;
}
.ajm-wpjm-documents input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    padding: 8px;
    background: #fff;
    color: #111;
}
.ajm-wpjm-application-form button {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    background: #006600;
    color: #fff;
    border: 0;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}
.ajm-wpjm-success,
.ajm-wpjm-error,
.ajm-wpjm-notice {
    padding: 14px 16px;
    border-radius: 12px;
    margin: 16px 0;
}
.ajm-wpjm-success {
    background: #e8f7e8;
    border: 1px solid #9dd89d;
}
.ajm-wpjm-error {
    background: #ffecec;
    border: 1px solid #ffb3b3;
}
.ajm-wpjm-notice {
    background: #f6f6f6;
    border: 1px solid #ddd;
}
.ajm-wpjm-hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}
@media (max-width: 700px) {
    .ajm-wpjm-grid {
        grid-template-columns: 1fr;
    }
    .ajm-wpjm-application-box {
        padding: 18px;
    }
    .ajm-wpjm-application-form {
        gap: 24px;
    }
    .ajm-wpjm-radio-row {
        gap: 18px;
    }
}


.ajm-hidden-legend {
    display: none !important;
}


/* Fix: Datei-Upload auf Mobile Safari/WordPress-Themes klickbar machen */
.ajm-wpjm-documents label {
    position: relative;
    z-index: 5;
    pointer-events: auto !important;
}

.ajm-wpjm-documents input[type="file"] {
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    min-height: 52px;
    line-height: 1.4;
    cursor: pointer;
    background: #fff !important;
}

.ajm-wpjm-documents input[type="file"]::file-selector-button {
    cursor: pointer;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
}

.ajm-wpjm-documents input[type="file"]::-webkit-file-upload-button {
    cursor: pointer;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
}

.ajm-wpjm-application-box,
.ajm-wpjm-application-form,
.ajm-wpjm-documents {
    overflow: visible !important;
}
