/* Application Form Styles */
.application-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Honeypot - versteckt für echte User, sichtbar für Bots */
.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Utility class for hiding elements */
.is-hidden {
    display: none !important;
}

.application-form__back {
    margin-bottom: 20px;
}

.application-form__back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a3350;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 4px;
}

.application-form__back-link:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.application-form__back-link svg {
    flex-shrink: 0;
}

.application-form__job-banner {
    margin-bottom: 30px;
}

.application-form__job-badge {
    display: inline-block;
    border-radius: 3px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.application-form__job-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #212529;
}

.application-form__job-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

.application-form {
}

.application-form__headline {
    font-size: 1.3rem !important;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #212529;
}

/* Progress Steps */
.application-form__progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step__circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #94a3b8;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.progress-step__number {
    display: block;
}

.progress-step__checkmark {
    display: none;
    width: 24px;
    height: 24px;
    color: white;
}

.progress-step.active .progress-step__circle {
    background: #1a3350;
    border-color: #1a3350;
    color: white;
}

.progress-step.completed .progress-step__circle {
    background: #198754;
    border-color: #198754;
}

.progress-step.completed .progress-step__number {
    display: none;
}

.progress-step.completed .progress-step__checkmark {
    display: block;
}

.progress-step__label {
    margin-top: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-align: center;
}

.progress-step.active .progress-step__label {
    color: #1a3350;
    font-weight: 600;
}

.progress-step__line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin: 0 10px;
    position: relative;
    top: -20px;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-step__header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dee2e6;
}

.form-step__title {
    font-size: 1.2rem !important;
    font-weight: 600;
    color: #212529;
    margin: 0 0 8px 0;
}

.form-step__description {
    color: #6c757d;
    margin: 0;
    font-size: 0.9375rem;
}

.form-step__content {
    margin-bottom: 30px;
}

/* Form Fields */
.form-field {
    margin-bottom: 24px;
}

.form-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-field__label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.required {
    color: #ef4444;
}

.form-field__input,
.form-field__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-field__input:focus,
.form-field__textarea:focus {
    outline: none;
    border-color: #1a3350;
    box-shadow: 0 0 0 0.2rem rgba(6, 60, 138, 0.25);
}

.form-field__textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #64748b;
}

.form-field__error {
    display: block;
    margin-top: 6px;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

.form-field__input[aria-invalid="true"],
.form-field__textarea[aria-invalid="true"] {
    border-color: #dc3545;
}

.form-field__input[aria-invalid="true"]:focus,
.form-field__textarea[aria-invalid="true"]:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-field__input[aria-valid="true"],
.form-field__textarea[aria-valid="true"] {
    border-color: #198754;
}

.form-field__input[aria-valid="true"]:focus,
.form-field__textarea[aria-valid="true"]:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* File Upload */
.file-upload-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #475569;
    font-size: 0.875rem;
}

.file-upload-info svg {
    flex-shrink: 0;
    color: #1a3350;
}

.file-upload {
    position: relative;
}

.file-upload__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 24px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
}

.file-upload__label:hover {
    border-color: #1a3350;
    background: #f8f9fa;
}

.file-upload__label svg {
    color: #1a3350;
}

.file-upload__text {
    color: #475569;
    font-weight: 500;
}

.file-upload__filename {
    display: none;
    color: #198754;
    font-size: 0.875rem;
    font-weight: 500;
}

.file-upload__input:not(:placeholder-shown) ~ .file-upload__label .file-upload__text {
    display: none;
}

.file-upload__input:not(:placeholder-shown) ~ .file-upload__label .file-upload__filename {
    display: block;
}

.file-upload__input[aria-invalid="true"] ~ .file-upload__label {
    border-color: #dc3545;
    background: #fff5f5;
}

.file-upload__input[aria-valid="true"] ~ .file-upload__label {
    border-color: #198754;
    background: #f0fdf4;
}

/* Checkbox */
.checkbox-field {
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-input {
    position: absolute;
    opacity: 0;
}

.checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
    margin-top: 2px;
}

.checkbox-input:checked ~ .checkbox-custom {
    background: #1a3350;
    border-color: #1a3350;
}

.checkbox-input:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-input[aria-invalid="true"] ~ .checkbox-custom {
    border-color: #dc3545;
}

.checkbox-label:has(.checkbox-input[aria-invalid="true"]) .checkbox-text {
    color: #dc3545;
}

.checkbox-input[aria-valid="true"] ~ .checkbox-custom {
    border-color: #198754;
}

.checkbox-label:has(.checkbox-input[aria-valid="true"]) .checkbox-text {
    color: #198754;
}

.checkbox-text {
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.checkbox-text a {
    color: #1a3350;
    text-decoration: underline;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Divider */
.form-divider {
    height: 2px;
    background: #f1f5f9;
    margin: 32px 0;
}

/* Buttons */
.form-step__actions {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-top: 20px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn--primary {
    background: #1a3350;
    color: white;
}

.btn--primary:hover:not(:disabled) {
    background: #1a3350;
}

.btn--secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn--secondary:hover:not(:disabled) {
    background: #e2e8f0;
}

.btn:disabled,
.btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn--submit svg {
    width: 20px;
    height: 20px;
}

.btn--submit.loading span {
    opacity: 0;
}

/* Messages */
.application-form__messages {
    margin-bottom: 24px;
}

.application-form__success,
.application-form__error {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.application-form__success {
    background: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.application-form__error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

/* Success Page */
.application-form__success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in;
}

.success-page__content {
    text-align: center;
    max-width: 500px;
}

.success-page__icon {
    width: 80px;
    height: 80px;
    background: #d1e7dd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successPulse 0.6s ease-out;
}

.success-page__icon svg {
    width: 48px;
    height: 48px;
    color: #198754;
    stroke-width: 2.5;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-page__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 16px 0;
}

.success-page__message {
    font-size: 1rem;
    color: #6c757d;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.success-page__reference {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
}

.success-page__reference-label {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-page__reference-value {
    display: block;
    font-size: 1.5rem;
    color: #1a3350;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.success-page__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-page__btn-back,
.success-page__btn-home {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.success-page__btn-back {
    background: #1a3350;
    color: white;
}

.success-page__btn-back:hover {
    background: #0d1e2d;
    text-decoration: none;
}

.success-page__btn-home {
    background: #f1f5f9;
    color: #475569;
}

.success-page__btn-home:hover {
    background: #e2e8f0;
    text-decoration: none;
}

.success-page__btn-back svg,
.success-page__btn-home svg {
    width: 20px;
    height: 20px;
}

/* Review Section (Step 4) */
.review-section {
     background: #f8fafc;
     border: 1px solid #e2e8f0;
     border-radius: 8px;
     margin-bottom: 24px;
     overflow: hidden;
}

.review-section__header {
     display: flex;
     align-items: center;
     justify-content: space-between;
     padding: 16px 20px;
     background: #f1f5f9;
     border-bottom: 1px solid #e2e8f0;
}

.review-section__header h4 {
     margin: 0;
     font-size: 1rem;
     font-weight: 600;
     color: #212529;
}

.review-section__header .btn {
     padding: 8px 16px;
     font-size: 0.875rem;
}

.review-section__content {
     padding: 20px;
}

.review-field {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     padding: 12px 0;
     border-bottom: 1px solid #e2e8f0;
}

.review-field:last-child {
     border-bottom: none;
}

.review-field__label {
     font-weight: 600;
     color: #334155;
     flex: 0 0 40%;
     font-size: 0.9375rem;
}

.review-field__value {
     flex: 1;
     text-align: right;
     color: #475569;
     font-size: 0.9375rem;
     word-break: break-word;
}

.review-field__value:empty::before {
     content: '-';
     color: #cbd5e1;
}

/* Review Files List */
.review-files-list {
     list-style: none;
     padding: 0;
     margin: 0;
}

.review-files-list__item {
     padding: 8px 0;
     color: #475569;
     font-size: 0.9375rem;
     display: flex;
     align-items: center;
     gap: 8px;
}

.review-files-list__item::before {
     content: '📎';
     flex-shrink: 0;
}

/* Button Variants */
.btn--sm {
     padding: 8px 16px;
     font-size: 0.875rem;
}

.btn--outline {
     background: white;
     color: #1a3350;
     border: 2px solid #1a3350;
}

.btn--outline:hover:not(:disabled) {
     background: #f8f9fa;
}

/* Responsive */
@media (max-width: 768px) {
    .application-form {
        padding: 24px;
    }
    
    .form-field-group {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .application-form__progress {
        padding: 0;
    }
    
    .progress-step__label {
        font-size: 0.75rem;
    }
    
    .progress-step__circle {
        width: 40px;
        height: 40px;
    }
    
    .form-step__actions {
        flex-direction: column-reverse;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .success-page__icon {
        width: 60px;
        height: 60px;
    }
    
    .success-page__icon svg {
        width: 36px;
        height: 36px;
    }
    
    .success-page__title {
        font-size: 1.5rem;
    }
    
    .success-page__message {
        font-size: 0.9375rem;
    }
    
     .success-page__reference-value {
         font-size: 1.25rem;
     }
     
     .review-section__header {
         flex-direction: column;
         align-items: flex-start;
         gap: 12px;
     }
     
     .review-section__header .btn {
         width: 100%;
         justify-content: center;
     }
     
     .review-field {
         flex-direction: column;
         align-items: flex-start;
         gap: 8px;
     }
     
     .review-field__value {
         text-align: left;
     }
 }
