.widget-form-label {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: block;
    margin-bottom: 5px;
}

.widget-form-input,
.widget-form-textarea,
.widget-form-select {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-background);
    color: var(--color-text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile: Font-Size 16px für Inputs (verhindert Zoom auf iOS) */
@media (max-width: 576px) {
    .widget-form-input,
    .widget-form-textarea {
        font-size: 16px;
    }
}

.widget-form-input:focus,
.widget-form-textarea:focus,
.widget-form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.widget-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.widget-form-error {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-small);
    line-height: var(--line-height-base);
    color: var(--color-error);
    margin-top: 5px;
}

.widget-form-input-error {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    border-color: var(--color-error);
}

/* Widget Form Container - Formular-Container */
.widget-form-container {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Widget Form Field Group - Formular-Feld-Gruppe */
.widget-form-field-group {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    display: flex;
    flex-direction: column;
}

/* Widget Form Submit Container - Submit-Button-Container */
.widget-form-submit-container {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-top: 20px;
}

/* Widget Form Input Range - Range-Input */
.widget-form-input-range {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    width: 100%;
    min-height: 32px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.widget-form-input-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.widget-form-input-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 2px solid var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.widget-form-required {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-error);
}

.widget-form-field-group {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    margin-bottom: 15px;
}

/* Suggest Dropdown (Google-ähnlich) */
.base-suggest-wrapper {
    position: relative;
}

.base-suggest-input-wrapper {
    position: relative;
}

.base-suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: -1px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.base-suggest-dropdown.base-suggest-dropdown-open {
    display: block;
}

.base-suggest-dropdown-item {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    padding: 10px 12px;
    color: var(--color-text-primary);
    cursor: pointer;
}

.base-suggest-dropdown-item:hover,
.base-suggest-dropdown-item.base-suggest-dropdown-item-active {
    background: var(--color-surface-secondary);
}

.base-suggest-wrapper.base-suggest-open .base-suggest-input {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
