#ewb-lead-form {
    font-family: inherit;
    max-width: 720px;
    color: inherit;
    line-height: 1.5;
}

.ewb-lf-section {
    margin-bottom: 2rem;
}

.ewb-lf-section h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    color: inherit;
    opacity: 0.65;
}

.ewb-lf-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.ewb-lf-field {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0;
}

.ewb-lf-field--sm {
    flex: 0 1 110px;
}

.ewb-lf-field label {
    font-size: 0.875rem;
    font-weight: 500;
}

.ewb-lf-required {
    color: #c00;
}

.ewb-lf-field input,
.ewb-lf-field select,
.ewb-lf-field textarea {
    padding: 0.55rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #111;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ewb-lf-field input:focus,
.ewb-lf-field select:focus,
.ewb-lf-field textarea:focus {
    outline: none;
    border-color: #2d7a2d;
    box-shadow: 0 0 0 3px rgba(45,122,45,0.15);
}

.ewb-lf-field input:invalid:not(:placeholder-shown),
.ewb-lf-field input.ewb-lf-touched:invalid {
    border-color: #c00;
}

/* Dropzone */

.ewb-lf-hint {
    font-size: 0.875rem;
    opacity: 0.65;
    margin: 0 0 0.75rem;
}

.ewb-lf-dropzone {
    border: 2px dashed #bbb;
    border-radius: 6px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.ewb-lf-dropzone--active {
    border-color: #2d7a2d;
    background: #f2faf2;
}

.ewb-lf-dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.ewb-lf-dropzone__label {
    cursor: pointer;
    font-size: 0.9375rem;
    display: block;
}

.ewb-lf-dropzone__label span {
    text-decoration: underline;
    color: #2d7a2d;
}

.ewb-lf-file-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    text-align: left;
}

.ewb-lf-file-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.25rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #eee;
}

.ewb-lf-file-list li:last-child {
    border-bottom: none;
}

.ewb-lf-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 0.25rem;
    color: #c00;
    flex-shrink: 0;
}

.ewb-lf-remove:hover {
    opacity: 0.7;
}

/* Gesamt-Größenbalken */

.ewb-lf-size-bar {
    display: none;
    margin-top: 0.75rem;
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.ewb-lf-size-bar__fill {
    height: 100%;
    background: #2d7a2d;
    transition: width 0.2s, background 0.2s;
    border-radius: 2px;
}

.ewb-lf-size-bar__fill--over {
    background: #c00;
}

/* Absenden */

.ewb-lf-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.ewb-lf-btn {
    padding: 0.75rem 2.25rem;
    background: #2d7a2d;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.01em;
}

.ewb-lf-btn:hover:not(:disabled) {
    background: #235e23;
}

.ewb-lf-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.ewb-lf-status {
    font-size: 0.9rem;
    flex: 1;
}

.ewb-lf-status--success {
    color: #155724;
    font-weight: 500;
}

.ewb-lf-status--error {
    color: #721c24;
}

.ewb-lf-status--loading {
    color: #555;
}

@media (max-width: 540px) {
    .ewb-lf-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .ewb-lf-field {
        flex: 0 0 auto;
        margin-bottom: 0.75rem;
    }
    .ewb-lf-field--sm {
        flex: 0 0 auto;
    }
    .ewb-lf-btn {
        width: 100%;
        text-align: center;
    }
}
