.probonoform-form-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.probonoform-form-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.probonoform-form-info-label {
    font-size: 13px;
    color: #666;
}

.probonoform-form-name-edit {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: white;
    min-width: 200px;
    transition: all 0.2s ease;
}

.probonoform-form-name-edit:hover {
    border-color: #667eea;
}

.probonoform-form-name-edit:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-form-name-hint {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

.probonoform-form-info-shortcode {
    display: flex;
    align-items: center;
    gap: 10px;
}

.probonoform-current-shortcode {
    background: #f0f0f5;
    color: #667eea;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-weight: 600;
}

.probonoform-copy-shortcode-btn {
    background: #f0f0f5;
    color: #667eea;
    border: 1px solid #d0d0e0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 90px;
}

.probonoform-copy-shortcode-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.probonoform-copy-shortcode-btn.copied {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.probonoform-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

.probonoform-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probonoform-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.probonoform-insert-btn {
    background: #f0f0f1;
    border: 1px solid #ccd0d4;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #50575e;
}

.probonoform-insert-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.probonoform-insert-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.probonoform-editor {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    min-height: 120px;
}

.probonoform-editor-textarea {
    width: 100%;
    height: 400px;
    min-height: 400px;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
}

.probonoform-editor-textarea:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #667eea;
}

.probonoform-editor-textarea::placeholder {
    color: #999;
}

.probonoform-field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 16px;
    min-height: 80px;
    align-content: flex-start;
}

.probonoform-field-tags-empty {
    font-size: 13px;
    color: #aaa;
    margin: 0;
    width: 100%;
    padding: 20px 0;
    text-align: center;
}

.probonoform-field-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f5;
    border: 1px solid #d0d0e0;
    border-radius: 20px;
    padding: 6px 10px 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    transition: all 0.15s ease;
}

.probonoform-field-tag:hover {
    background: #e8e8f5;
    border-color: #667eea;
}

.probonoform-field-tag-label {
    line-height: 1;
}

.probonoform-field-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: #c8c8d8;
    color: white;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease;
    flex-shrink: 0;
}

.probonoform-field-tag-remove:hover {
    background: #dc3545;
}

.probonoform-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 32px;
}

.probonoform-preview-box {
    display: flex;
    flex-direction: column;
}

.probonoform-preview-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.probonoform-preview {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    max-height: 60vh;
    padding: 16px;
    overflow-y: auto;
}

.probonoform-preview-empty {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 120px;
}

.probonoform-preview-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probonoform-preview-form.has-border {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.probonoform-preview-form.font-small { font-size: 13px; }
.probonoform-preview-form.font-medium { font-size: 14px; }
.probonoform-preview-form.font-large { font-size: 16px; }

.probonoform-preview-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.probonoform-preview-field label {
    font-size: inherit;
    font-weight: 500;
    color: #333;
}

.probonoform-preview-field label .required {
    color: #e53935;
    margin-left: 4px;
}

.probonoform-preview-field input[type="text"],
.probonoform-preview-field input[type="email"],
.probonoform-preview-field input[type="tel"],
.probonoform-preview-field select,
.probonoform-preview-field textarea {
    padding: 8px 12px;
    border: 1px solid;
    border-radius: 4px;
    font-size: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.probonoform-preview-field textarea {
    min-height: 80px;
    resize: vertical;
}

.probonoform-preview-checkbox-group,
.probonoform-preview-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.probonoform-preview-checkbox-label,
.probonoform-preview-radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: inherit;
    color: #333;
    cursor: pointer;
}

.probonoform-preview-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid;
    border-radius: 3px;
    background: white;
    position: relative;
}

.probonoform-preview-checkbox-label input[type="checkbox"]:checked {
    border-color: currentColor;
    background-color: currentColor;
}

.probonoform-preview-checkbox-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.probonoform-preview-radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid;
    border-radius: 50%;
    background: white;
    position: relative;
}

.probonoform-preview-radio-label input[type="radio"]:checked {
    border-color: currentColor;
}

.probonoform-preview-radio-label input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    background-color: currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.probonoform-preview-checkbox-label .required,
.probonoform-preview-radio-label .required {
    color: #e53935;
    margin-left: 4px;
}

.probonoform-agreement-link {
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.probonoform-agreement-link:hover {
    opacity: 0.8;
}

.probonoform-preview-file {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.probonoform-preview-file input[type="file"] {
    padding: 8px;
    border: 1px dashed;
    border-radius: 4px;
    background: #f9f9f9;
}

.probonoform-preview-file-hint {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.probonoform-preview-submit {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.probonoform-preview-submit-btn {
    border: 2px solid;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.probonoform-preview-submit-btn:hover { opacity: 0.9; }
.probonoform-preview-submit-btn.style-rounded { border-radius: 6px; }
.probonoform-preview-submit-btn.style-square { border-radius: 0; }
.probonoform-preview-submit-btn.style-pill { border-radius: 50px; }
.probonoform-preview-submit-btn.fill-filled { color: #ffffff; }
.probonoform-preview-submit-btn.fill-outline { background-color: transparent; }

.probonoform-guide {
    display: flex;
    flex-direction: column;
}

.probonoform-guide-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.probonoform-guide-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.probonoform-guide-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

.probonoform-guide-step:last-child { margin-bottom: 0; }

.probonoform-guide-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.probonoform-guide-text {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    padding-top: 3px;
}

.probonoform-settings {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.probonoform-settings-tabs {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    gap: 2px;
}

.probonoform-tab-btn {
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.probonoform-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.probonoform-tab-btn.active {
    color: #667eea;
    background: white;
    border-bottom-color: transparent;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
    padding-bottom: 15px;
}

.probonoform-settings-content {
    padding: 20px;
    min-height: 120px;
    background: white;
}

.probonoform-tab-panel { display: none; }
.probonoform-tab-panel.active { display: block; }

.probonoform-required-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.probonoform-required-empty {
    font-size: 14px;
    color: #999;
    text-align: center;
    width: 100%;
    margin-top: 40px;
}

.probonoform-required-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 10px;
    transition: all 0.2s ease;
}

.probonoform-required-item:hover {
    border-color: #667eea;
    background: #f5f6ff;
}

.probonoform-required-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #667eea;
}

.probonoform-required-item label {
    font-size: 12px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.probonoform-fields-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.probonoform-fields-empty {
    font-size: 14px;
    color: #999;
    text-align: center;
    width: 100%;
    margin-top: 40px;
}

.probonoform-fields-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.probonoform-fields-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probonoform-field-setting-group {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
}

.probonoform-field-setting-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.probonoform-field-setting-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.probonoform-field-setting-item:last-child { margin-bottom: 0; }

.probonoform-field-setting-label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.probonoform-field-setting-input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.probonoform-field-setting-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-field-setting-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.probonoform-field-setting-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-field-setting-select-short { max-width: 100px; }

.probonoform-field-setting-hint {
    font-size: 11px;
    color: #666;
    margin: 2px 0 0 0;
}

.probonoform-labels-container {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
}

.probonoform-labels-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}

.probonoform-labels-grid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.probonoform-general-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.probonoform-general-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.probonoform-general-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.probonoform-general-input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.probonoform-general-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-general-input-short { max-width: 200px; }

.probonoform-general-hint {
    font-size: 11px;
    color: #666;
    margin: 2px 0 0 0;
}

.probonoform-email-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.probonoform-email-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.probonoform-email-item input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.probonoform-email-item input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-email-remove-btn {
    background: #f0f0f1;
    border: 1px solid #ccc;
    color: #666;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.probonoform-email-remove-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.probonoform-email-add-btn {
    background: #f0f0f5;
    border: 1px dashed #ccc;
    color: #667eea;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.probonoform-email-add-btn:hover {
    background: #667eea;
    border-style: solid;
    border-color: #667eea;
    color: white;
}

.probonoform-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.probonoform-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.probonoform-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.probonoform-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.probonoform-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.probonoform-toggle input:checked + .probonoform-toggle-slider {
    background-color: #667eea;
}

.probonoform-toggle input:checked + .probonoform-toggle-slider:before {
    transform: translateX(22px);
}

.probonoform-toggle-text {
    font-size: 14px;
    color: #333;
}

.probonoform-style-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.probonoform-style-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.probonoform-style-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.probonoform-color-presets {
    display: flex;
    gap: 8px;
}

.probonoform-color-preset {
    width: 36px;
    height: 36px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.probonoform-color-preset:hover { transform: scale(1.1); }

.probonoform-color-preset.active {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

.probonoform-style-select {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    max-width: 220px;
}

.probonoform-style-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.probonoform-style-hint {
    font-size: 11px;
    color: #888;
    margin: 0;
}

.probonoform-save-area {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap;
}

.probonoform-save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.probonoform-save-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.probonoform-save-btn.saving { opacity: 0.7; cursor: not-allowed; }
.probonoform-save-btn.saved { background: linear-gradient(135deg, #28a745 0%, #20893a 100%); }
.probonoform-save-btn.error { background: linear-gradient(135deg, #dc3545 0%, #c62a37 100%); }

.probonoform-autosave-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.probonoform-autosave-status.autosave-saving {
    color: #888;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.probonoform-autosave-status.autosave-saved {
    color: #1a7a36;
    background: #e8f5ec;
    border: 1px solid #b2dfbb;
}

.probonoform-autosave-status.autosave-error {
    color: #c0392b;
    background: #fdecea;
    border: 1px solid #f5c6c2;
}

.probonoform-save-hint {
    font-size: 12px;
    color: #888;
    margin: 0;
    margin-left: auto;
}

@media screen and (max-width: 1200px) {
    .probonoform-main {
        grid-template-columns: 1fr;
    }

    .probonoform-right {
        position: static;
    }

    .probonoform-fields-two-col {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .probonoform-labels-grid {
        grid-template-columns: 1fr;
    }
}