#wefb-builder {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.wefb-sidebar {
  width: 200px;
  background: #f8f8f8;
  padding: 15px;
  border: 1px solid #ccc;
  height: fit-content;
}
    
.field-item {
      background: #fff;
    border: 1px solid #e6e6e6;
    font-size: 13px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 30px;
    padding: 6px 10px;
    color: #383838;
}

.wefb-builder-controls {
  margin: 10px 0;
}

.builder-canvas {
  flex: 1;
  border: 2px dashed #ccc;
  padding: 15px;
  background: #fdfdfd;
  min-height: 300px;
}

.section {
  margin-bottom: 25px;
  border: 1px solid #bbb;
  padding: 10px;
  background: #fff;
  position: relative;
}

.section-controls {
  text-align: right;
  margin-bottom: 10px;
}

.columns {
  display: flex;
  gap: 10px;
}

.column {
  flex: 1;
  min-height: 60px;
  border: 2px dashed #ccc;
  background: #fafafa;
  padding: 10px;
  position: relative;
}

.column.empty::after {
  content: "Drop Field Here";
  position: absolute;
  top: 35%;
  left: 0;
  right: 0;
  text-align: center;
  color: #aaa;
  font-style: italic;
}

.field-rendered {
  cursor: grab;
  padding: 10px 15px;
    border: 1px solid #ececec;
    background: #fff;
    border-radius: 4px;
    position: relative;
  
}

.section-placeholder {
  border: 2px dashed #aaa;
  background: #f0f0f0;
  height: 120px;
  margin-bottom: 15px;
}

.field-placeholder {
  border: 2px dashed #3399ff;
  background: #eaf4ff;
  height: 40px;
  margin: 5px 0;
}

.field-rendered {
  position: relative;
  padding-right: 25px;
}

.field-rendered .remove-field{
  position: absolute;
  right: 5px;
  top: 5px;
  border: none;
  background: transparent;
  color: #c00;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}

.field-rendered .field-settings {
  position: absolute;
  right: 30px;
  top: 7px;
  border: none;
  background: transparent;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
}


.add-row-button-wrapper {
  text-align: center;
  margin-top: 20px;
}

.add-row-button {
  font-size: 24px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  line-height: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease;
}

.add-row-button:hover {
  background: #005b8c;
}


.field-rendered button {
  margin-left: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.field-rendered .field-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #2f5f7f;
  background: #eef5fb;
  border: 1px solid #c8dcea;
  border-radius: 999px;
  padding: 2px 8px;
  flex: 0 0 auto;
}

.field-rendered .field-title {
  display: block;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.field-rendered .field-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.field-rendered .field-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.field-rendered .field-actions button {
  margin-left: 0;
}
.section-settings-panel {
  background: #f9f9f9;
  padding: 10px;
  border: 1px dashed #ccc;
  margin-bottom: 10px;
}


.layout-options {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.layout-option {
  position: relative;
  cursor: pointer;
}

.layout-option input[type="radio"] {
  display: none;
}

.layout-box {
  display: flex;
  width: 60px;
  height: 40px;
  border: 2px solid #ccc;
  background: #eee;
  transition: border-color 0.3s;
}

.layout-box .col-box {
  flex: 1;
  margin: 2px;
  background: #bbb;
}

.layout-option input[type="radio"]:checked + .layout-box {
  border-color: #007cba;
  background-color: #d8ecff;
}

.section-clone,
.field-clone {
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 5px;
  font-size: 16px;
}

.erfb-drag-handle {
    display: inline-block;
    position: relative;
    height: 17px;
    width: 15px;
    transform: translateY(2px);
    z-index: 3;
    cursor: move;
}

.erfb-drag-handle:after, .erfb-drag-handle:before {
    content: '\2807';
    font-size: 15px;
    position: absolute;
    top: 0;
    left: 0;
}

.erfb-drag-handle:after {
    left: 5px;
}



/* field settings form css start */

.wefb-field-settings-form {
  background: #fff;
  padding: 20px;
  border: 1px solid #ccd0d4;
  border-radius: 5px;
  max-width: 700px;
  font-family: "Segoe UI", Roboto, sans-serif;
}

.wefb-field-settings-form h3 {
  margin-bottom: 20px;
  font-size: 20px;
}

.form-row {
  margin-bottom: 15px;
}

.form-row label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.form-row small {
  font-weight: 400;
  font-size: 12px;
  color: #666;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  background-color: #f9f9f9;
  transition: all 0.2s ease-in-out;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2271b1;
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

fieldset {
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 10px 15px;
  border-radius: 4px;
}

legend {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 10px;
}

/* Radio Buttons */
.radio-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.toggle input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: relative;
  width: 42px;
  height: 22px;
  background-color: #ccc;
  border-radius: 30px;
  transition: 0.4s;
}

.toggle .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

.toggle input:checked + .slider {
  background-color: #2271b1;
}

.toggle input:checked + .slider:before {
  transform: translateX(20px);
}

.label-text {
  font-weight: 500;
  color: #333;
}

.form-actions {
  margin-top: 20px;
}


.option-list {
  margin-top: 10px;
  border: 1px dashed #ccc;
  padding: 10px;
  border-radius: 10px;
  background: #f8fbfb;
}
.option-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
  gap: 10px;
  margin-bottom: 8px;
  align-items: center;
}
.option-item input[type="text"] {
  width: 100%;
}
.option-item.wefb-option-item-invalid .option-label {
  border-color: #d63638 !important;
  box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.2);
}
.remove-option {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(166, 36, 36, 0.2);
  background: rgba(166, 36, 36, 0.08);
  color: #a62424;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.add-option {
  margin-top: 5px;
  border-radius: 999px;
  border: 1px solid #b6d9d7;
  background: #e8f4f3;
  color: #0f5d5c;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}
.sortable-placeholder {
  border: 2px dashed #999;
  background: #f9f9f9;
  height: 40px;
  margin-bottom: 10px;
}

.wefb-setting-error-input {
  border-color: #d63638 !important;
  box-shadow: 0 0 0 1px rgba(214, 54, 56, 0.2);
}

.wefb-setting-error {
  color: #d63638;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

.wefb-option-item-error,
.wefb-option-list-error {
  margin-top: 6px;
}

.wefb-setting-summary {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fcf0f1;
  border: 1px solid #f1b8bd;
  color: #a21b26;
  font-weight: 600;
}

.wefb-text-preview-card {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfd;
}

.wefb-text-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.wefb-text-preview-input {
  width: 100%;
  background: #fff;
}

.wefb-dropdown-preview-card {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfd;
}

.wefb-dropdown-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.wefb-dropdown-preview-select {
  width: 100%;
  background: #fff;
}

.wefb-textarea-preview-card {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfd;
}

.wefb-textarea-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.wefb-textarea-preview-input {
  width: 100%;
  background: #fff;
  resize: vertical;
}

.wefb-checkbox-preview-card {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfd;
}

.wefb-checkbox-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.wefb-checkbox-preview-options {
  display: grid;
  gap: 6px;
}

.wefb-checkbox-preview-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}

.wefb-radio-preview-card {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfd;
}

.wefb-radio-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.wefb-radio-preview-options {
  display: grid;
  gap: 6px;
}

.wefb-radio-preview-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}

.wefb-date-preview-card,
.wefb-country-preview-card,
.wefb-timezone-preview-card,
.wefb-language-preview-card,
.wefb-file-preview-card,
.wefb-terms-preview-card {
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 12px;
  background: #f9fbfd;
}

.wefb-date-preview-label,
.wefb-country-preview-label,
.wefb-timezone-preview-label,
.wefb-language-preview-label,
.wefb-file-preview-label,
.wefb-terms-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

.wefb-date-preview-input,
.wefb-country-preview-select,
.wefb-timezone-preview-select,
.wefb-language-preview-select,
.wefb-file-preview-input {
  width: 100%;
  background: #fff;
}

.wefb-terms-preview-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}


/* field settings form css end */

.wefb-field-locked {
  opacity: 0.75;
  border-style: dashed;
  position: relative;
}

.wefb-field-locked .erfb-drag-handle {
  opacity: 0.5;
}

.wefb-pro-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: #6d28d9;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.3;
}


body.wefb-pro-modal-open {
  overflow: hidden;
}

.wefb-pro-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}

.wefb-pro-modal.is-open {
  display: block;
}

.wefb-pro-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}

.wefb-pro-modal-dialog {
  position: relative;
  background: #ffffff;
  width: min(520px, calc(100vw - 32px));
  margin: 10vh auto 0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}

.wefb-pro-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
}

.wefb-pro-modal-title {
  margin: 0 28px 8px 0;
  font-size: 22px;
  color: #0f172a;
}

.wefb-pro-modal-message {
  margin: 0 0 18px;
  color: #475569;
  font-size: 14px;
}

.wefb-pro-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}


.wefb-pro-modal-brand {
  margin-bottom: 14px;
}

.wefb-pro-modal-logo {
  max-width: 260px;
  width: 100%;
  height: auto;
  display: block;
}

