/* Modern Werbefilm Form Styles - Clean & Professional Design */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000;
    background: #fff;
    min-height: 100vh;
}

.werbefilm-form-wrapper {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Progress Steps - Clean & Angular */
.werbefilm-progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: #fff;
    border: 2px solid #000;
    gap: 3rem;
}

.werbefilm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.werbefilm-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #ccc;
    z-index: 1;
}

.werbefilm-step.active:not(:last-child)::after,
.werbefilm-step.completed:not(:last-child)::after {
    background: #C4FF2E;
}

.werbefilm-step-number {
    width: 50px;
    height: 50px;
    background: #fff;
    border: 2px solid #ccc;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.werbefilm-step.active .werbefilm-step-number {
    background: #C4FF2E;
    border-color: #000;
    color: #000;
}

.werbefilm-step.completed .werbefilm-step-number {
    background: #000;
    border-color: #000;
    color: #C4FF2E;
}

.werbefilm-step-label {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    text-align: center;
    transition: all 0.3s ease;
}

.werbefilm-step.active .werbefilm-step-label {
    color: #000;
    font-weight: 700;
}

.werbefilm-step.completed .werbefilm-step-label {
    color: #000;
    font-weight: 700;
}

/* Form Container - Clean & Angular */
.werbefilm-form {
    background: #fff;
    padding: 4rem;
    border: 2px solid #000;
    margin-bottom: 2rem;
}

/* Step Content */
.werbefilm-step-content {
    display: none;
}

.werbefilm-step-content.active {
    display: block;
}

.werbefilm-step-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    text-align: left;
}

.werbefilm-step-content .werbefilm-subtitle {
    font-size: 1.2rem;
    color: #666;
    text-align: left;
    margin-bottom: 3rem;
    line-height: 1.5;
}

/* Form Layout */
.werbefilm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.werbefilm-form-field {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.werbefilm-form-field-full {
    grid-column: 1 / -1;
}

/* Labels */
.werbefilm-form-field label {
    font-weight: 600;
    color: #000;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Input Fields - Clean & Angular */
.werbefilm-form-field input,
.werbefilm-form-field select,
.werbefilm-form-field textarea {
    padding: 1.2rem 1.5rem;
    border: 2px solid #000;
    background-color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    color: #000;
}

.werbefilm-form-field input:focus,
.werbefilm-form-field select:focus,
.werbefilm-form-field textarea:focus {
    outline: none;
    border-color: #C4FF2E;
    background: #fff;
}

.werbefilm-form-field input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ff0000;
}

/* Select Dropdown */
.werbefilm-form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.2rem;
    padding-right: 4rem;
}

/* Textarea */
.werbefilm-form-field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Checkbox Group - Clean & Angular */
.werbefilm-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.werbefilm-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
    padding: 2rem;
    border: 2px solid #ccc;
    background: #fff;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.werbefilm-checkbox-item:hover {
    border-color: #000;
    background: #f9f9f9;
}

.werbefilm-checkbox-item.checked {
    border-color: #C4FF2E;
    background: #f8ffe0;
}

.werbefilm-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.werbefilm-checkbox-custom {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0.125rem;
    position: relative;
}

.werbefilm-checkbox-item input[type="checkbox"]:checked + .werbefilm-checkbox-custom {
    background: #C4FF2E;
    border-color: #000;
}

.werbefilm-checkbox-item input[type="checkbox"]:checked + .werbefilm-checkbox-custom::after {
    content: '✓';
    color: #000;
    font-size: 1rem;
    font-weight: bold;
}

.werbefilm-checkbox-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.werbefilm-checkbox-content strong {
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
}

.werbefilm-checkbox-content small {
    color: #666;
    font-size: 1rem;
}

/* Privacy Checkbox */
.werbefilm-privacy-checkbox {
    align-items: flex-start;
    padding: 2rem;
    background: #f8f8f8;
    border: 2px solid #000;
    margin-top: 2rem;
}

.werbefilm-privacy-text {
    font-size: 1rem;
    color: #000;
    line-height: 1.6;
}

/* Navigation Buttons - Clean & Angular */
.werbefilm-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #000;
    gap: 2rem;
}

.werbefilm-btn {
    padding: 1.2rem 2.5rem;
    border: 2px solid #000;
    background: #fff;
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 60px;
}

.werbefilm-btn:hover {
    background: #000;
    color: #fff;
}

.werbefilm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
    border-color: #ccc;
    color: #666;
}

.werbefilm-btn-back {
    background: #000;
    color: #fff;
    border-color: #000;
}

.werbefilm-btn-back:hover {
    background: #333;
    color: #fff;
}

.werbefilm-btn-next {
    background: #C4FF2E;
    color: #000;
    border-color: #000;
}

.werbefilm-btn-next:hover {
    background: #000;
    color: #C4FF2E;
}

/* Submit Button - Clean & Angular */
.werbefilm-submit-btn {
    background: #C4FF2E;
    color: #000;
    border: 2px solid #000;
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 70px;
}

.werbefilm-submit-btn:hover:not(:disabled) {
    background: #000;
    color: #C4FF2E;
}

.werbefilm-submit-btn:disabled {
    background: #ccc;
    color: #666;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Messages - Clean & Angular */
.werbefilm-message {
    background: #fff;
    padding: 3rem;
    text-align: center;
    border: 2px solid;
    margin-top: 2rem;
}

.werbefilm-success {
    border-color: #00aa00;
    background: #f0fff0;
}

.werbefilm-success h2 {
    color: #00aa00;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.werbefilm-error {
    border-color: #ff0000;
    background: #fff0f0;
}

.werbefilm-error h2 {
    color: #ff0000;
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Date Input Styling */
.werbefilm-form-field input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
    filter: invert(0);
}

.werbefilm-form-field input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Loading State */
.werbefilm-submit-btn.loading::after {
    content: '';
    width: 1.2rem;
    height: 1.2rem;
    border: 3px solid transparent;
    border-top: 3px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.75rem;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .werbefilm-form-wrapper {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .werbefilm-progress-steps {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
        gap: 1rem;
    }

    .werbefilm-step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .werbefilm-step-label {
        font-size: 0.9rem;
    }

    .werbefilm-form {
        padding: 2rem;
    }

    .werbefilm-step-content h2 {
        font-size: 2rem;
    }

    .werbefilm-form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .werbefilm-checkbox-item {
        padding: 1.5rem;
    }

    .werbefilm-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .werbefilm-btn,
    .werbefilm-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .werbefilm-form-wrapper {
        padding: 0 0.5rem;
    }

    .werbefilm-progress-steps {
        padding: 1.5rem 0.5rem;
        gap: 0.5rem;
    }

    .werbefilm-form {
        padding: 1.5rem;
    }

    .werbefilm-step-content h2 {
        font-size: 1.8rem;
    }

    .werbefilm-checkbox-item {
        padding: 1rem;
        gap: 1rem;
    }
}

/* Focus Styles for Accessibility */
.werbefilm-checkbox-item:focus-within .werbefilm-checkbox-custom {
    outline: 2px solid #C4FF2E;
    outline-offset: 2px;
}

.werbefilm-submit-btn:focus,
.werbefilm-btn:focus {
    outline: 2px solid #C4FF2E;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .werbefilm-form,
    .werbefilm-progress-steps,
    .werbefilm-checkbox-item,
    .werbefilm-privacy-checkbox {
        border-width: 3px;
    }
    
    .werbefilm-form-field input,
    .werbefilm-form-field select,
    .werbefilm-form-field textarea {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
