/* Form Section - Frontend */
.bform-section {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.bform-section-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.2s ease;
}

.bform-section-header:hover {
    filter: brightness(0.95);
}

.bform-section-header:focus {
    outline: 2px solid #007bff;
    outline-offset: -2px;
}

.bform-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.bform-section-icon svg {
    width: 20px;
    height: 20px;
}

.bform-section-open .bform-section-icon {
    transform: rotate(0deg);
}

.bform-section:not(.bform-section-open) .bform-section-icon {
    transform: rotate(-90deg);
}

.bform-section-title {
    flex: 1;
}

.bform-section-content {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Animation */
.bform-section-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

/* Editor Styles */
.bform-section-editor {
    margin-bottom: 15px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.bform-section-header-editor {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f5f5f5;
}

.bform-section-header-editor .bform-section-icon {
    margin-right: 10px;
    color: #666;
}

.bform-section-header-editor .bform-section-title {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border: none;
    background: transparent;
}

.bform-section-content-editor {
    padding: 15px;
    background: #fafafa;
    min-height: 100px;
}

.bform-color-picker-label {
    margin-bottom: 8px;
    font-weight: 500;
}
