/**
 * Bewerbungsformular Frontend Styles
 * 
 * Diese Klassen können in Ihrem Theme-CSS überschrieben werden,
 * um das Formular an Ihr Design anzupassen.
 */

/* Container */
.bwg-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Stellenanzeigen-Header */
.bwg-stellenanzeige-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #0073aa;
}

.bwg-stellenanzeige-title {
    margin: 0 0 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
}

.bwg-stellenanzeige-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.bwg-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 14px;
}

.bwg-meta-item .dashicons {
    color: #0073aa;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* PDF-Download */
.bwg-pdf-download {
    margin-top: 15px;
}

.bwg-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0073aa;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.bwg-pdf-button:hover {
    background: #005177;
}

.bwg-pdf-button .dashicons {
    color: #ffffff;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Nachrichten */
.bwg-messages {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 4px;
}

.bwg-messages.bwg-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.bwg-messages.bwg-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Formular */
.bwg-form {
    margin-top: 20px;
}

.bwg-field-group {
    margin-bottom: 20px;
}

.bwg-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.bwg-required {
    color: #d63638;
}

.bwg-input,
.bwg-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bwg-input:focus,
.bwg-textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.bwg-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Datei-Uploads */
.bwg-file-uploads {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.bwg-uploads-title {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.bwg-uploads-description {
    margin: 0 0 20px;
    color: #666;
    font-size: 13px;
}

.bwg-file-input {
    width: 100%;
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.bwg-file-input:hover {
    border-color: #0073aa;
}

.bwg-file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    display: none;
}

.bwg-file-preview.has-file {
    display: block;
}

.bwg-file-preview-name {
    font-weight: 600;
    color: #333;
}

.bwg-file-preview-size {
    color: #888;
    font-size: 12px;
}

/* Checkbox */
.bwg-checkbox-group {
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #d0e8f7;
    border-radius: 4px;
}

.bwg-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.6;
}

.bwg-checkbox {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.bwg-checkbox-label a {
    color: #0073aa;
    text-decoration: underline;
}

.bwg-checkbox-label a:hover {
    color: #005177;
}

/* Submit-Button */
.bwg-submit-wrapper {
    margin-top: 30px;
    text-align: center;
}

.bwg-submit-button {
    padding: 15px 40px;
    background: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
}

.bwg-submit-button:hover {
    background: #005177;
}

.bwg-submit-button:active {
    transform: scale(0.98);
}

.bwg-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bwg-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    color: #555;
    font-size: 14px;
}

.bwg-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 115, 170, 0.2);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: bwg-spin 1s linear infinite;
}

@keyframes bwg-spin {
    to {
        transform: rotate(360deg);
    }
}

.bwg-form-note {
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .bwg-form-wrapper {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .bwg-stellenanzeige-title {
        font-size: 22px;
    }
    
    .bwg-stellenanzeige-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .bwg-submit-button {
        width: 100%;
        padding: 15px 20px;
    }
}

/* Fehlermeldungen */
.bwg-field-error {
    border-color: #d63638 !important;
}

.bwg-error-message {
    margin-top: 5px;
    color: #d63638;
    font-size: 13px;
}

/* Bestätigungsseite */
.bwg-confirmation-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.bwg-confirmation-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.bwg-confirmation-success {
    border-color: #46b450;
}

.bwg-confirmation-error {
    border-color: #dc3232;
}

.bwg-confirmation-info {
    border-color: #00a0d2;
}

.bwg-confirmation-container h1 {
    margin: 0 0 20px;
    color: #333;
}

.bwg-confirmation-success h1 {
    color: #46b450;
}

.bwg-confirmation-error h1 {
    color: #dc3232;
}

.bwg-confirmation-info h1 {
    color: #00a0d2;
}

.bwg-confirmation-message {
    font-size: 16px;
    line-height: 1.6;
    margin: 20px 0;
}

.bwg-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.bwg-button:hover {
    background: #005177;
}

/* ============================================================
   Shortcode [stellenanzeige] – reine Stellenanzeigen-Anzeige
   ============================================================ */

/* Wrapper */
.bwg-stellenanzeige {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Beschreibungsbereich */
.bwg-stellenanzeige-beschreibung {
    margin: 24px 0;
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}

.bwg-stellenanzeige-beschreibung h2,
.bwg-stellenanzeige-beschreibung h3,
.bwg-stellenanzeige-beschreibung h4 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: #222;
}

.bwg-stellenanzeige-beschreibung ul,
.bwg-stellenanzeige-beschreibung ol {
    margin: 8px 0 8px 24px;
    padding: 0;
}

.bwg-stellenanzeige-beschreibung li {
    margin-bottom: 4px;
}

/* „Jetzt bewerben"-Button */
.bwg-bewerben-wrapper {
    margin-top: 28px;
}

.bwg-bewerben-button {
    display: inline-block;
    padding: 14px 28px;
    background: #0073aa;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.bwg-bewerben-button:hover {
    background: #005177;
    color: #ffffff !important;
}

/* Info-Meldung (Stelle nicht mehr verfügbar) */
.bwg-info {
    padding: 12px 16px;
    background: #e8f4fb;
    border-left: 4px solid #00a0d2;
    color: #004e6e;
    border-radius: 0 4px 4px 0;
}

