.form-elements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-element {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    cursor: move;
    transition: all 0.2s ease;
}

.form-element:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.form-builder-area {
    min-height: 300px;
    border: 2px dashed #dee2e6;
    padding: 10px;
    border-radius: 4px;
    background-color: #fbfbfb;
}

.form-element-wrapper {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.form-element-wrapper.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-element-wrapper.has-condition {
    border-left: 3px solid #17a2b8;
}

.element-header {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.element-type {
    font-size: 0.75rem;
    background-color: #6c757d;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

.element-label {
    flex-grow: 1;
    font-weight: 500;
}

.element-drag-handle {
    cursor: move;
    color: #6c757d;
}

.element-preview {
    padding: 12px;
}

.element-preview input,
.element-preview select,
.element-preview textarea {
    /* width: 100%; */
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.element-preview label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.placeholder-text {
    color: #6c757d;
    border: 1px dashed #ced4da;
    border-radius: 4px;
}

.checkbox-options,
.radio-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Form Renderer Styles */
.form-renderer label {
    font-weight: 500;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: .25rem;
    font-size: .875em;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

textarea.is-invalid {
    padding-right: calc(1.5em + .75rem);
    background-position: top calc(.375em + .1875rem) right calc(.375em + .1875rem);
}

select.is-invalid {
    padding-right: 3rem;
    background-position: right .75rem center, center right 2.25rem;
    background-size: 16px 12px, calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-check-input.is-invalid ~ .form-check-label,
.was-validated .form-check-input:invalid ~ .form-check-label {
    color: #dc3545;
}