.step-container {
    width: 100%;
    max-width: 800px;
    background: #e2e8f0;
    padding: 10px 20px 20px;
    border-radius: 15px;
    border: 2px dashed #cbd5e1;
    position: relative;
    transition: background 0.2s;
    box-sizing: border-box;
}

.step-container.drag-over {
    background: #dbeafe;
    border-color: var(--primary);
}

.step-header {
    position: absolute;
    top: -35px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step-title {
    font-weight: 800;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: move;
    padding: 5px 10px;
    background: #cbd5e1;
    border-radius: 4px;
}

.elements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    min-height: 60px;
    margin: 0 -10px;
}

.form-element-wrapper {
    padding: 10px;
    cursor: grab;
    position: relative;
    box-sizing: border-box;
    transition: width 0.1s ease;
}

.element-inner.element-inner-edit {
    padding: 20px;
}

.element-inner-edit {
    background: white;
    border-radius: 10px;
    border: 2px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s;
    border-radius: 0 10px 10px 0;
    z-index: 10;
}

.form-element-wrapper:hover .resize-handle {
    background: rgba(37, 99, 235, 0.05);
}

.resize-handle:hover, .resize-handle.active {
    background: var(--primary) !important;
    width: 4px;
}

.form-element-wrapper.dragging {
    opacity: 0.3;
}

.form-element-wrapper.selected .element-inner {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.element-actions {
    position: absolute;
    top: 5px;
    right: 10px;
    display: none;
    gap: 6px;
    z-index: 5;
}

.form-element-wrapper:hover .element-actions {
    display: flex;
}

.action-icon {
    width: 32px;
    height: 32px;
    background: #f8fafc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #cbd5e1;
    font-size: 16px;
    transition: all 0.2s;
}

.action-icon:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.add-step-card {
    width: 100%;
    max-width: 800px;
    height: 60px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    font-weight: bold;
    transition: all 0.2s;
}

.add-step-card:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #eff6ff;
}

.resizing {
    user-select: none;
    cursor: col-resize !important;
}
