/* BCF Admin Styles */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
body, html {font-family: "Open Sans", sans-serif!important; font-weight: 400;}
/* common style */
h1, h2, h3, h4, h5, h6 {margin: 0; padding: 0; font-weight: 700!important; color: #111827!important; line-height: 100%;}
h2 {font-size: 32px!important;}
h3 {font-size: 20px!important;}
h4 {font-size: 16px!important;}
h5 {font-size: 14px!important;}
a, .bfc-main-color {color: #2563EB;}

.strong, b, strong {font-weight: 700!important;}
.form-clear {display: block; width: 100%;}
.bcf-align-aitems-row {display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;}
.bfc-simple-text {font-size: 16px; font-weight: 400; line-height: 20px; color: #111827; margin: 0;}
.submit {margin: 0!important; padding: 0!important;}
.description { line-height: 100%!important; font-weight: 400!important; color: #6B7280!important; padding: 5px 0 0 0!important; margin: 0!important; font-size: 16px;}
.bcf-backgroud-wrapper {padding: 22px 45px; background: #ECEFF3; border: 1px solid #AAAAAA; border-radius: 15px; overflow: hidden; position: relative;}
.bcf-backgroud-wrapper:before {content: ''; position: absolute; left: 0; top: 0; width: 18px; height: 100%; background-color: #2563EB; }
.bfc-wrapper-flex {display: flex; flex-wrap: wrap; gap: 20px;}
.bfc-align-end {display: flex; justify-content: end;}
.bfc-align-column-between {display: flex; flex-direction: column; justify-content: space-between;}
.bfc-wrapper-flex .bcf-content-wrapper {flex: 0 0 calc(50% - 12px);}
.bfc-flex-align-between {display: flex; justify-content: space-between; width: 100%;}
.bfc-flex-align-center {align-items: center; display: flex;}
.bfc-align-sections {display: flex; gap: 20px; align-items: stretch;}
.flex-1 {flex: 1;}
.gap-14 {gap: 14px;}
.gap-40 {gap: 40px;}

.bcf-content-wrapper {background: #fff; border: 1px solid #AAAAAA; border-radius: 15px; padding: 9px;}
.bfc-divider {width: 100%; height: 1px; display: block; background-color: #AAAAAA; margin: 32px 0;}
.bfc-divider-sm {margin: 16px 0;}
.bfc-spacer {display: block; height: 24px;}
.bfc-spacer-s {display: block; height: 6px;}
.bfc-spacer-xs {display: block; height: 16px;}
.bfc-spacer-sm {display: block; height: 32px;}
.bfc-spacer-md {display: block; height: 40px;}
.bcf-column-25 {width: calc(25% - 5px);}
.bcf-column-50 {width: calc(50% - 5px);}
.bcf-column-33 {width: calc(33% - 5px);}
.bcf-column-75 {width: calc(75% - 5px);}
.bcf-column-100 {width: 100%;}

/* tabs */
.bcf-tab-content {display: none;}
.bcf-tab-content.active {display: block;}
.bcf-tab-content-form-width {max-width: 684px;}
.bcf-tab-nav {width: 100%; display: flex; z-index: 1; position: relative; gap: 6px; }
.bcf-tab-nav:not(.bfc-tabs-compact) .bcf-tab-button {flex: 1;}
.bfc-tabs-compact .bcf-tab-button {min-width: 272px;}

/* form fields */
.field-label label, .field-label-text {font-size: 16px; line-height: 100%; color: #4B5563; font-weight: 700; margin-bottom: 16px; display: block;}
.bcf-field-date {display: inline-flex; align-items: center;}
.bcf-field-date label {font-size: 16px; color: #111827; margin-right: 15px; color: #fff; font-weight: 700;}
input.bcf-field-class, textarea.bcf-field-class, select.bcf-field-class {width: 100%; height: 44px; font-size: 16px; border: 1px solid #AAAAAA; padding: 8px 14px; border-radius: 8px; max-width: none; color: #111827; line-height: 1.2; font-weight: 400;}
select.bcf-field-class:not([multiple]), .bcf-select-arrow {appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("../img/bfc_select_arrow.svg"); background-repeat: no-repeat; background-position: right 12px center; background-size: 11.5px 5.7px;}
textarea.bcf-field-class {height: auto; padding: 12px 16px!important;}
input.bcf-field-class:focus, textarea.bcf-field-class:focus, select.bcf-field-class:focus {outline: none; border-color: #2563EB;}
input.bcf-field-class::placeholder, textarea.bcf-field-class::placeholder {color: #9CA3AF; font-size: 16px;}
.bfc-input-file {position: relative; width: 100%; height: 57px; border: 2px dashed #D1D5DB; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; border-radius: 8px;}
.bfc-input-file input {position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; cursor: pointer;}
.bcf-field-toggle-align {display: flex; align-items: center; gap: 8px;}
.bcf-field-toggle-align p {margin: 0; user-select: none;}
.bcf-field-toggle-slider {position: relative; display: inline-block; width: 28px; height: 17px;}
.bcf-field-toggle-slider input {opacity: 0; width: 0; height: 0;}
.bcf-toggle-slider {position: absolute; cursor: pointer; inset: 0; background-color: #9CA3AF; border-radius: 100px; transition: 0.4s;}
.bcf-toggle-slider::before {content: ""; position: absolute; height: 13px; width: 13px; left: 2px; bottom: 2px; background-color: white; border-radius: 50%; transition: 0.3s;}
.bcf-field-toggle-slider input:checked + .bcf-toggle-slider {background-color: #2563EB;}
.bcf-field-toggle-slider input:checked + .bcf-toggle-slider::before {transform: translateX(11px);}
.bcf-field-class:disabled {opacity: 0.7; cursor: not-allowed!important;}
input[type=time]::-webkit-calendar-picker-indicator {display: none;}
/* buttons */
.bcf-add-field {background: #2563EB; color: #fff; border: none; padding: 0 14px; border-radius: 8px; cursor: pointer; font-size: 12px; text-align: left; transition: background-color 0.2s; height: 30px; display: flex; align-items: center; gap: 12px; font-weight: 700; white-space: nowrap;}
.bcf-add-field code {background: #2563EB; transition: background-color 0.2s;}
.bcf-add-field:hover, .bcf-add-field:hover code {background: #2259cf;}
.bcf-add-field img {flex-shrink: 0; width: 20px; height: initial; filter: brightness(0) invert(1);}
.bcf-button {position: relative; display: inline-flex; height: 49px; align-items: center; justify-content: center; padding: 0 16px; border-radius: 8px; gap: 8px; font-weight: 700; font-size: 16px; line-height: 100%; min-width: 148px; cursor: pointer; outline: none; border: none; text-decoration: none; white-space: nowrap; transition: all 0.3s ease;}
.bcf-button.bcf-button-sm {height: 30px; padding: 0 11px; font-size: 12px; min-width: auto;}
.bcf-button:disabled {opacity: 0.7!important; cursor: not-allowed!important;}
.bcf-button-primary, .bcf-button-secondary.active {background-color: #2563EB!important; color: #fff!important;}
.bcf-button-primary:hover {background: #2259cf!important;}
.bcf-button-secondary {background-color: #334155; color: #fff;}
.bcf-button-secondary:not(.active):hover {background-color: #26303f;}
.bcf-button-outlined {border: 2px solid #2563EB; background-color: transparent; color: #111827;}
.bcf-button-outlined:hover {background-color: #1e59d8; color: #fff;}
.bcf-button-warn {background-color: #DC2626; color: #fff!important;}
.bcf-button-warn:hover {background-color: #c01f1f!important;}
.bcf-button-warn:hover img {color: #fff!important;}
.bcf-button-grey { background-color: #6B7280; color: #fff;}
.bcf-button-grey:hover {background-color: #53575f;}
.bcf-button-wrapper {display: flex; gap: 8px;}
.bcf-button-wrapper-right,
.bcf-button-wrapper-align-right {justify-content: flex-end;}
.bcf-button-template {margin-left: 10px;}
.bcf-radio-button {position: relative; margin-right: 6px;}
.bcf-radio-button input {position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; cursor: pointer; opacity: 0;}
.bcf-radio-button input:checked + .bcf-button {background-color: #2563EB!important; color: #fff!important;}
.bcf-status-badge {padding: 0px 14px; border-radius: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; height: 24px; line-height: 24px; white-space: nowrap; display: inline-block;}
.bcf-status-success {background: #10B981; color: white;}
.bcf-status-failed {background: #CC3030; color: white;}

/* modal window */
.bcf-modal {position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; inset: 0;}
.bcf-modal-content {border-radius: 19px; width: 100%; max-width: 862px; position: relative; max-height: 90vh; overflow-y: auto;}
.bcf-modal-content.bcf-modal-wh-full {max-width: 1730px;}
.bcf-modal-content.bcf-modal-wh-md {max-width: 858px;}
.bcf-modal-header {background-color: #111827; padding: 26px; display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 24px; line-height: 28px; gap: 10px; font-weight: 700;}
.bcf-modal-wrapper {padding: 23px 26px 30px 26px; background-color: #fff;}
.bcf-modal-wrapper-border {border: 1px solid #AAAAAA; border-radius: 15px; padding: 10px; max-height: 559px; overflow-y: auto;}
.modal-overlay {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6);}
.bcf-modal-close {width: 20px; height: 20px; cursor: pointer; background-image: url(../img/bfc_modal_close.svg); background-repeat: no-repeat; background-size: 20px 20px; position: relative;}
.mobile-resize-dialog {position: fixed; left: 10px; top: 10px; right: 10px; bottom: 10px; background-color: #fff; z-index: 100000; align-items: center; justify-content: center; text-align: center; display: none;}
.mobile-resize-dialog h2 {margin-bottom: 24px;}
.mobile-resize-dialog .bcf-button-wrapper {justify-content: center; align-items: center;}
.mobile-resize-dialog .bcf-button {min-width: 150px;}
.bcf-is-mobile .mobile-resize-dialog {display: flex;}
/* color picker  */
.bfc-color-picker .wp-picker-holder * {box-sizing: content-box!important;}
.bfc-color-picker {padding: 0 16px; border: 1px solid #AAAAAA; background: #FFFFFF; border-radius: 8px; display: flex; align-items: center; height: 52px; width: 262px; position: relative;}
.bfc-color-picker .wp-picker-container.wp-picker-active {position: absolute; left: 0; top: 0; z-index: 1100;}
.bfc-color-picker .wp-picker-container .wp-color-result.button {margin: 0;}
.bfc-color-picker .wp-color-result {border: 0 none; background-color: #fff; width: 28px; height: 28px; border-radius: 50%; position: absolute; left: 16px; top: 10px;}
.bfc-color-picker .wp-color-result-text {position: absolute; width: 100%; height: 100%; opacity: 0;}
.bfc-color-picker .bfc-color-name {margin: 0 0 0 38px; font-size: 16px; line-height: 100%; color: #111827;}
.bfc-color-picker .wp-picker-clear {display: none;}

/* Notification styles */
.bcf-notice {padding: 24px 34px; border-radius: 15px; border-width: 1px; border-style: solid; border-color: #AAAAAA; position: relative; width: 100%; overflow: hidden; margin: 25px 0 0;}
.bcf-notice p {margin: 0!important; font-size: 16px; line-height: 18px; color: #111827; font-weight: 700;}
.bcf-notice:after {content:''; position: absolute; left: 0; top: 0; width: 18px; height: 100%;}
.bcf-notice.notice-error:after {background-color: #DC2626;}
.bcf-notice.notice-success:after {background-color: #00a32a;}
.bcf-notice.notice-info:after {background-color: #2563EB;}
.bcf-notice.notice-warning:after {background-color: #ebb813;}
.bcf-notification li {margin-bottom: 5px;}
.bcf-notification ul {margin: 5px 0 3px 0!important; padding: 0;}
.bcf-notice.update-nag {max-width: 50%;}

.bcf-results-info {font-size: 16px; line-height: 100%; margin-bottom: 7px; color: #334155;}
li.hidden-menu-item { display: none !important; }
/* table */
.wp-list-table {width: 100%; border-spacing: 0; outline: none;}

.wp-list-table th {font-weight: 700; font-size: 16px; color: #fff; padding: 10px 16px; background-color: #111827; text-align: left; text-transform: uppercase;}
.wp-list-table tbody::before {content: ''; display: block; height: 10px;}
.wp-list-table th:first-child {border-top-left-radius: 8px; border-bottom-left-radius: 8px;}
.wp-list-table th:last-child {border-top-right-radius: 8px; border-bottom-right-radius: 8px;}
.wp-list-table td {vertical-align: middle; padding: 6px 15px; color: #111827; font-size: 14px; line-height: 1.2; }
.wp-list-table td:first-child { border-left: 1px solid #AAAAAA;}
.wp-list-table td:last-child {border-right: 1px solid #AAAAAA;}
.wp-list-table tr:nth-child(2n) td {background-color: #fff;}
.wp-list-table tr:nth-child(2n + 1) td {background-color: #ECEFF3;}

.wp-list-table tr:first-child td:first-child {border-top-left-radius: 8px;}
.wp-list-table tr:first-child td:last-child {border-top-right-radius: 8px;}
.wp-list-table tr:last-child td:first-child { border-bottom-left-radius: 8px;}
.wp-list-table tr:last-child td:last-child {border-bottom-right-radius: 8px;}
.wp-list-table tr:last-child td {border-bottom: 1px solid #AAAAAA;}
.wp-list-table tr:first-child td {border-top: 1px solid #AAAAAA;}

.bcf-wrap {margin: 10px 20px 0 2px;}
.bcf-wrap-header {display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; width: 100%;}
.wrap-header .wp-heading-inline {padding: 0!important; margin: 0 10px 0 0!important;}
#toplevel_page_proformanceplus ul li a[href*="page=profor-edit-form"] {display: none !important;}
.bcf-builder-container {display: flex; gap: 20px; margin-top: 10px;}
.bcf-builder-sidebar {width: 548px; background: #fff; overflow: hidden;}
.bcf-form-builder-sidebar {background: none; box-shadow: none; border: none;}
.bcf-builder-main {flex: 1;}
.bcf-field-buttons {display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px;}
.bcf-form-preview h3 {margin-top: 0; margin-bottom: 15px; color: #111827; font-size: 16px;}
#bcf-form-structure {width: 100%;}
.bcf-config-editor {margin-bottom: 20px;}
#bcf-form {width: 100%; min-height: 400px; font-size: 13px; line-height: 1.4; border: 1px solid #ddd; border-radius: 3px; padding: 10px; resize: vertical;}
/* CC Recipients field styling */
#cc-recipients { font-size: 16px; line-height: 1.4;}
.bcf-popup-footer {margin-top: 20px;}

/* Dialog styles */
#bcf-popupWindow, #bcf-popupOverlay {display: none;}
#bcf-popupWindow.size-md {width: 575px;}
.bcf-open-popup {display: flex!important;}

.bcf-popup-header {display: flex; justify-content: center; align-items: center; padding-bottom: 32px;}
.bcf-popup-close {background: none; border: none; font-size: 24px; color: #6b7280; cursor: pointer; padding: 0; width: 26px; height: 26px; display: flex; line-height: 22px; justify-content: center; border-radius: 50%; transition: all 0.2s ease; position: absolute; right: 10px; background-color: #f3f4f6; top: 10px;}
.bcf-close-icon {background-image: url(../img/close.svg); background-color: transparent; background-repeat: no-repeat; background-size: contain;}
.bcf-popup-close:not(.bcf-close-icon):hover {background-color: #D6D6D6;}

.bcf-popup-inner {position: relative;}
.bcf-popup-close {position: absolute; top: -5px; right: -15px; font-size: 24px; cursor: pointer; width: 32px; height: 32px;}
.bcf-popup-header h3 {margin-top: 0px;}

.bcf-option-item {display: flex; gap: 4px; margin-bottom: 12px;}
.bcf-tabs {display: flex;}
.bcf-button-tab {margin-right: 9px; min-width: none!important;}
.bcf-content-tab {display: none;}
.bcf-content-tab.active {display: block;}
.bfc-titlewrap {display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px;}
/* Form Cards Row Layout */
.bcf-form-header-row {display: flex; align-items: center; gap: 20px; padding: 10px 16px; background-color: #111827; font-weight: 700; color: #fff; font-size: 16px; border-radius: 8px; margin-bottom: 10px;}
.bcf-form-title-header {flex: 0 0 250px;}
.bcf-form-shortcode-header {flex: 0 0 200px;}
.bcf-form-date-header {flex: 0 0 140px;}
.bcf-form-actions-header {flex: 1; text-align: right;}
.bcf-form-row {display: flex; align-items: center; gap: 20px; padding: 5px 16px; background: #fff; margin-bottom: 0; transition: box-shadow 0.2s ease; }
.bcf-form-row:nth-child(2n) {background-color: #ECEFF3;}
.bcf-forms-grid-content {border: 1px solid #AAAAAA; border-radius: 8px; overflow: hidden;}
.bcf-form-row:hover {box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);}
.bcf-form-title {flex: 0 0 250px; display: flex; align-items: center; gap: 10px;}
.bcf-form-title h3 {margin: 0; font-size: 16px; font-weight: 700; color: #111827;}
.bcf-form-title a {text-decoration: none;}
.bcf-status-badge.active {background: #d4edda; color: #155724;}
.bcf-status-badge.inactive {background: #f8d7da; color: #721c24;}
.bcf-form-shortcode {flex: 0 0 200px;}
.bcf-form-shortcode code {background: #E5E7EB; padding: 4px 8px; border-radius: 3px; font-size: 12px; color: #666;}
.bcf-form-date {flex: 0 0 140px; color: #111827; font-size: 14px;}
.bcf-forms-grid {border-radius: 15px; border: 1px solid #AAAAAA; background-color: #fff; padding: 9px;}
.bcf-forms-grid .bcf-form-actions {justify-content: flex-end; display: flex; width: 100%;}
.bcf-form-actions .button {font-size: 13px; padding: 6px 12px; height: auto; line-height: 1.4; margin-right: 10px;}
/* Copy shortcode button states */
.bcf-copy-shortcode.copied {background-color: #46b450; border-color: #46b450; color: #fff;}
.bcf-copy-shortcode.error {background-color: #dc3232; border-color: #dc3232; color: #fff;}
#bcf-form-builder {margin-top: 15px;}
.wrapper_tabs_button_fields {gap: 6px; justify-content: space-between; display: flex;}
.tab_button_field {cursor: pointer; flex: 1;}
.tab_button_field.bcf-tab-disabled {pointer-events: none; opacity: 0.45; cursor: not-allowed;}
.tab_button_field p {margin: 0; font-size: 16px;}
.tab_content_field {display: none;}
.tab_content_field.active {display: block;}
.bcf-logic-empty-state {padding: 20px 12px; border: 1px dashed #9CA3AF; border-radius: 8px; background: #F8FAFC;}
.bcf-logic-empty-state p {margin: 0; color: #475569; font-size: 14px; line-height: 1.4;}
.bcf-options-container-wrapper {max-height: 600px; overflow-y: auto;}

.bcf-conditional-logic-panel-wrap {margin-top: 16px; padding-top: 16px; border-top: 1px solid #E5E7EB;}
.bcf-conditional-logic-panel {display: flex; flex-direction: column; gap: 14px;}
.bcf-logic-headline {font-size: 16px; font-weight: 700; color: #111827; margin: 0;}
.bcf-logic-toggle-row {display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #D1D5DB; border-radius: 8px; background: #fff;}
.bcf-logic-rows input.bcf-field-class, .bcf-logic-rows textarea.bcf-field-class, .bcf-logic-rows select.bcf-field-class {font-size: 14px;}
.bcf-logic-toggle-row p {margin: 0; font-size: 14px; color: #111827; font-weight: 600;}
.bcf-logic-builder {display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid #D1D5DB; border-radius: 8px; background: #fff;}
.bcf-logic-row {display: grid; grid-template-columns: 1.25fr 1fr 1fr 40px; gap: 8px; align-items: center; margin-bottom: 10px;}
.bcf-logic-join-label {text-align: center; margin: 2px 0 8px; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: #64748B;}
.bcf-logic-row .bcf-remove-option {width: 40px; height: 40px;}
.bcf-logic-row .bcf-field-class {margin: 0;}
.bcf-logic-actions {display: flex; gap: 10px; align-items: center; flex-wrap: wrap;}
.bcf-logic-note {margin: 0; color: #64748B; font-size: 12px; line-height: 1.4;}
.bcf-logic-warn {padding: 10px 12px; border-radius: 8px; background: #FEF3C7; color: #92400E; font-size: 13px; line-height: 1.35;}

.bcf-form-item.bcf-has-logic {border-color: #2563EB;}
.bcf-logic-indicator {position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 12px; background: #2563EB; display: flex; align-items: center; justify-content: center; z-index: 3;}
.bcf-logic-indicator img {display: block; width: 16px; height: 16px;}
@media (max-width: 768px) {.bcf-builder-sidebar { width: 100%;}
.bcf-builder-container {flex-direction: column;}
.bcf-form-header-row,.bcf-form-row {flex-direction: column; align-items: stretch; gap: 15px;}
.bcf-form-title-header,
    .bcf-form-shortcode-header,
    .bcf-form-date-header,
    .bcf-form-actions-header,
    .bcf-form-title,
    .bcf-form-shortcode,
    .bcf-form-date {flex: none;}
.bcf-form-actions-header {text-align: center;}
.bcf-form-actions {justify-content: center;}
}
/* Pagination Styles */
.bcf-pagination-wrapper {margin-top: 20px; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; flex-direction: column;}

.bcf-pagination-info {color: #334155; font-size: 16px; margin-top: 13px; width: 100%;}
.bcf-pagination {display: flex; align-items: flex-start; gap: 5px; justify-content: space-between; width: 100%;}
.bcf-pagination-pages {display: flex; align-items: center; gap: 11px;justify-content: center;}
.bcf-pagination-btn,.tablenav-pages .page-numbers {display: inline-block; padding: 15px 18px; background: #fff; border: 1px solid #AAAAAA; border-radius: 8px; color: #334155; text-decoration: none; font-size: 16px; line-height: 1; transition: all 0.2s ease; cursor: pointer; font-weight: 700;}
.bcf-pagination-btn:hover,.tablenav-pages .page-numbers:hover {background: #f1f1f1; border-color: #999; color: #005a87;}
.bcf-pagination-btn.bcf-current,.page-numbers.current {background: #2563EB; color: #fff; border-color: #2563EB; cursor: default;}
.bcf-pagination-btn.bcf-current:hover,.page-numbers.current:hover {background: #2563EB; color: #fff;}
.bcf-pagination-btn.bcf-prev,
.bcf-pagination-btn.bcf-next {font-weight: 500; padding: 11px 16px; margin-bottom: 18px; min-width: 132px; text-align: center; font-size: 16px; font-weight: 700; color: #334155;display: inline-flex; align-items: center; gap: 8px;justify-content: center;}
.bcf-pagination-btn.bcf-prev img{transform: rotate(180deg);}
.bcf-pagination-dots {padding: 8px 5px; color: #666; font-size: 13px;}
/* Responsive pagination */
@media (max-width: 768px) {.bcf-pagination-wrapper { flex-direction: column; gap: 15px; text-align: center;}
.bcf-pagination {flex-wrap: wrap; justify-content: center;}
.bcf-pagination-btn {padding: 10px 14px; font-size: 14px;}
}
/* Email Configuration Styles */
.bcf-email-config {margin-top: 0;}
.bcf-email-fields {max-width: 100%;}
.bcf-field-group {margin-bottom: 20px;}
.bcf-field-group label {display: block; font-weight: 700; margin: 0 0 6px 0; color: #111827; font-size: 16px; text-align: left;}
.bcf-field-group label p {font-size: 16px; color: #111827; font-weight: 400; margin: 0;}
/* Mail Tags Styles */
.bcf-mail-tags {display: flex; flex-direction: row; gap: 6px; flex-wrap: wrap; overflow-y: auto;}
.bcf-mail-tag {width: calc(50% - 3px);}
/* Copy notification styles */
.bcf-copy-notification {position: absolute; z-index: 9999; padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: bold; color: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2); animation: bcf-fade-in 0.3s ease-in-out;}
.bcf-copy-success {background-color: #2271b1;}
.bcf-copy-error {background-color: #dc3545;}
.bcf-top-snackbar {position: fixed;top: 16px;left: 50%;transform: translateX(-50%) translateY(-12px);
z-index: 100200;background-color: #111827;color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 700; line-height: 1.2; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease;}
.bcf-top-snackbar.is-visible { opacity: 1; transform: translateX(-50%) translateY(0);}
.bcf-top-snackbar-error {background-color: #dc3545;}
.bcf-top-snackbar-success {background-color: #46b450;}
@keyframes bcf-fade-in {from { opacity: 0; transform: translateY(-10px);}
to {opacity: 1; transform: translateY(0);}
}
.bcf-no-tags {color: #666; font-style: italic; padding: 20px; text-align: center; background: #f9f9f9; border: 1px dashed #ddd; border-radius: 3px;}
/* Enhanced Email Configuration Styles */
.bcf-field-with-variables {position: relative;}
.bcf-input-wrapper {display: flex; gap: 10px; align-items: center;}
.bcf-input-wrapper input {flex: 1;}
.bcf-insert-variable {background: #2563EB; color: #fff; border: none; padding: 8px 12px; border-radius: 3px; cursor: pointer; font-size: 12px; white-space: nowrap;}
.bcf-insert-variable:hover {background: #005a87;}
/* HTML Editor Styles */
.bcf-editor-toolbar {background: #f1f1f1; border: 1px solid #ddd; border-bottom: none; padding: 10px; border-radius: 3px 3px 0 0;}
.bcf-format-buttons {display: flex; align-items: center; gap: 5px; flex-wrap: wrap;}
.bcf-format-btn {background: #fff; border: 1px solid #ddd; padding: 6px 10px; border-radius: 3px; cursor: pointer; font-size: 12px; min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;}
.bcf-format-btn:hover {background: #e1e1e1; border-color: #999;}
.bcf-format-btn.active {background: #2563EB; color: #fff; border-color: #2563EB;}
.bcf-separator {color: #ddd; margin: 0 5px; font-size: 16px;}
.bcf-insert-variable-btn {background: #46b450; color: #fff; border: none; padding: 6px 12px; border-radius: 3px; cursor: pointer; font-size: 12px;}
.bcf-insert-variable-btn:hover {background: #3a9940;}
.bcf-html-editor-wrapper {position: relative;}
.bcf-html-editor {min-height: 200px; max-height: 400px; overflow-y: auto; padding: 15px; border: 1px solid #ddd; border-radius: 0 0 3px 3px; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 14px; line-height: 1.6;}
.bcf-html-editor:focus {outline: none; border-color: #2563EB; box-shadow: 0 0 0 1px #2563EB;}
.bcf-html-editor-actions {display: flex; justify-content: flex-end; margin-bottom: 10px;}
body.bcf-editor-fullscreen-open {overflow: hidden;}
.bcf-editor-fullscreen-backdrop {position: fixed; inset: 0; background: rgba(17, 24, 39, 0.6); z-index: 100000;}
.wp-editor-wrap.bcf-editor-fullscreen {position: fixed; top: 40px; right: 24px; bottom: 24px; left: 24px; z-index: 100001; background: #fff; border: 2px solid #AAAAAA; border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; gap: 10px;}
.wp-editor-wrap.bcf-editor-fullscreen .wp-editor-tools {padding-top: 0;}
.wp-editor-wrap.bcf-editor-fullscreen .wp-editor-container {height: auto; min-height: var(--bcf-editor-fullscreen-min-height, 80%); flex: 1 1 auto; display: flex; flex-direction: column; padding-bottom: 64px;}
.wp-editor-wrap.bcf-editor-fullscreen .mce-tinymce {min-height: var(--bcf-editor-fullscreen-min-height, 80%); flex: 1 1 auto; display: flex; flex-direction: column;}
.wp-editor-wrap.bcf-editor-fullscreen .mce-container-body {min-height: 0; flex: 1 1 auto; display: flex; flex-direction: column;}
.wp-editor-wrap.bcf-editor-fullscreen .mce-edit-area {min-height: 0; flex: 1 1 auto;}
.wp-editor-wrap.bcf-editor-fullscreen .mce-edit-area iframe {height: 100% !important;}
.wp-editor-wrap.bcf-editor-fullscreen textarea.wp-editor-area {height: auto !important; min-height: var(--bcf-editor-fullscreen-min-height, 80%) !important; resize: vertical !important;}
.wp-editor-wrap textarea.wp-editor-area {resize: vertical;}
.wp-editor-wrap.bcf-editor-fullscreen .bcf-editor-fullscreen-actions {position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid #AAAAAA; background: #fff;}
.wp-editor-wrap.bcf-editor-fullscreen .bcf-editor-fullscreen-close {min-width: 110px;}
.wp-editor-container textarea {display: block; width: 100%;}
.bcf-mail-tag-highlight {background: #fff3cd; color: #856404; padding: 2px 4px; border-radius: 3px; font-family: monospace; font-size: 13px; border: 1px solid #ffeaa7;}
/* Variable Insertion Panel */
.bcf-variable-panel {position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 500px; max-width: 90vw; max-height: 80vh; background: #fff; border: 1px solid #ddd; border-radius: 5px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); z-index: 10000; overflow: hidden;}
.bcf-variable-panel-header {display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; background: #f9f9f9; border-bottom: 1px solid #ddd;}
.bcf-variable-panel-header h4 {margin: 0; color: #111827;}
.bcf-close-panel {background: none; border: none; font-size: 20px; color: #666; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 3px;}
.bcf-close-panel:hover {background: #e1e1e1; color: #333;}
.bcf-variable-panel-body {padding: 20px; max-height: 60vh; overflow-y: auto;}
.bcf-variable-group {margin-bottom: 25px;}
.bcf-variable-group h5 {margin: 0 0 10px 0; color: #111827; font-size: 14px; font-weight: 700;}
.bcf-variable-list,
.bcf-template-list {display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px;}
.bcf-variable-item,
.bcf-template-item {background: #f9f9f9; border: 1px solid #ddd; padding: 10px 12px; border-radius: 3px; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 8px; transition: all 0.2s ease;}
.bcf-variable-item:hover,
.bcf-template-item:hover {background: #e1e1e1; border-color: #999;}
.bcf-variable-item code {background: none; color: #2563EB; font-weight: 500; font-size: 12px;}
.bcf-variable-label,
.bcf-template-label {font-size: 12px; color: #666; flex: 1;}
.bcf-no-variables {text-align: center; color: #666; font-style: italic; grid-column: 1 / -1; padding: 20px;}
/* Panel Overlay */
.bcf-panel-overlay {position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9999;}
/* Responsive adjustments */
@media (max-width: 768px) {.bcf-input-wrapper { flex-direction: column; align-items: stretch;}
.bcf-format-buttons {justify-content: center;}
.bcf-variable-panel {width: 95vw; height: 90vh;}
.bcf-variable-list, .bcf-template-list {grid-template-columns: 1fr;}
.wp-editor-wrap.bcf-editor-fullscreen {left: 10px; right: 10px; top: 44px; bottom: 10px;}
}
/* Form-specific Messages Styles */
.bcf-messages-config {margin-top: 0;}
.bcf-messages-notice {margin-bottom: 20px; padding: 15px; background: #f0f6fc; border: 1px solid #c6e2ff; border-radius: 4px;}
.bcf-info-notice {color: #0969da; font-size: 14px; line-height: 1.4; margin: 0; display: flex; align-items: center; gap: 8px;}
.bcf-info-notice .dashicons {font-size: 16px; flex-shrink: 0;}
/* Email Manager Modal Styles */
.submission-details-table td {line-height: 100%; padding: 8px 14px; font-size: 16px; line-height: 22px; font-weight: 400; color: #111827; border-bottom: 1px solid #E5E7EB; text-align: left;}
.submission-details-table td:first-child {font-weight: 700; color: #111827; white-space: nowrap;}
/* Additional Tab Styles */
.bcf-action-type-select {min-width: 200px;}
.bcf-popup-settings,
.bcf-redirect-settings {margin-top: 32px;}
.width-md-wrapper {max-width: 600px;}
.method-name {margin-bottom: 8px;}
.method-name strong {font-weight: 700; font-size: 16px; color: #111827;}
.method-description {font-size: 16px; color: #111827;}
.method-wrapp {display: inline-block;}
.method-code {background-color: #EAF1FF; padding: 6px 16px; border-radius: 8px;}
.method-code code {font-size: 16px; color: #4B5563; background-color: #EAF1FF;}
/* Email Manager Filter Styles */
.bcf-filter-form {display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%;}
.bcf-filter-form .bcf-field-class, .bcf-filter-form .bcf-field-date {max-width: 269px; width: 100%;}
/* Filter status indicators */
.bcf-filter-active {background-color: #e7f7ff; border-color: #2563EB;}
#priority_method {width: 328px;}
#cc-recipients {width: 100%;}
/* form elements */
.bcf-generated-form { position: relative;min-height: 500px;align-content: flex-start; display: flex; flex-wrap: wrap; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 10px;}
.bcf-generated-form > * { box-sizing: border-box;flex: 0 0 auto;}
.bcf-generated-form:empty::before {content: "Select or drag form elements here";color: #aaa; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; font-size: 16px;}
.bcf-form-item {padding: 11px 16px 16px; position: relative; border: 1px dashed rgba(255, 255, 255, 0); border-radius: 8px; background-color: #fff; cursor: pointer; min-height: 90px;}
.bcf-form-click-layer {position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 1;}
.bcf-item-resize-handle {position: absolute; right: -2px; top: 0; width: 12px; height: 100%; z-index: 4; cursor: ew-resize; touch-action: none;}
.bcf-add-field-wrapper {display: inline-block; margin-top: 8px;}
.bcf-item-edit-wrapper {position: absolute; right: 7px; top: 7px; display: flex; align-items: center; opacity: 0; z-index: 2;}
.bcf-item-edit-button {background-color: #2563EB; width: 32px; height: 32px; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 8px;}
.bcf-item-edit-button img {object-fit: cover;width: 20px;height: 20px;}
.bcf-item-delete {background-color: #CC3030;}
.bcf-action-info {position: absolute; right: 7px; bottom: 7px; padding: 7px 15px; background-color: #2563EB; border-radius: 8px; color: #fff; opacity: 0; display: flex; align-items: center; z-index: 3;}
.bcf-action-info p {font-size: 12px; line-height: 16px; margin: 0 6px 0 0;}
.bcf-item-clear {cursor: pointer;}
.bcf-hide-action-info .bcf-action-info {display: none;}
.bcf-input-label {display: flex; align-items: start;}
.bcf-input-style-label {font-size: 16px; font-weight: 700; line-height: 28px; margin-bottom: 6px; color: #111827; min-height: 28px;}
.bcf-required {font-size: 16px; margin-left: 2px; line-height: 28px; color: #DC2626;}
.bcf-input-style-field, .bcf-input-style-textarea {border: 1px solid #AAAAAA!important; padding: 12px 14px!important; border-radius: 8px!important; font-size: 16px; line-height: 100%!important; background-color: #fff; min-height: 44px;}
#form-title {flex: 1; padding: 12px 14px!important;}
.bcf-input-hidden {opacity: 0.8;}
.bcf-input-style-textarea {width: 100%; min-height: 114px;}
.bcf-input-style-select,
.bcf-input-style-checkbox {width: 100%; overflow: hidden; min-height: 68px; border-radius: 8px; border: 1px solid #AAAAAA; padding: 8px 8px 2px 8px; column-gap: 10px; display: flex; flex-direction: column;}
.bcf-select-arrow .bcf-input-style-select {display: none!important;}
.bcf-input-style-option {display: flex; align-items: center; margin-bottom: 8px;}
.bcf-input-style-checkbox img,
.bcf-input-style-option img {margin-right: 8px;}
.bcf-option-text {font-size: 16px; color: #4B5563; line-height: 1.2; font-weight: 400; position: relative; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
.bcf-item-divider {width: 100%; height: 1px; background-color: #AAAAAA; margin: 24px 0;}
.bcf-form-item:hover > .bcf-item-edit-wrapper,
.bcf-form-item:hover > .bcf-action-info {opacity: 1;}
.bcf-form-item:hover {border-color: #334155;}
.bcf-form-item.active {background-color: #E5E7EB; border: 1px dashed #334155;}
.bcf-form-item.bcf-resizing {border-color: #2563EB;}
.bcf-dragging {cursor: grab;}
.bcf-form-item-placeholder {background: #AAAAAA; border: 1px dashed #334155; border-radius: 8px; margin: 4px 0; transition: height 0.2s; width: 100%; min-width: 100%;}
.bcf-field-buttons.bcf-hide-local-placeholder .bcf-form-item-placeholder {visibility: hidden !important; opacity: 0 !important; border-color: transparent !important; background: transparent !important;}
.bcf-form-item.animation-pulse,.tab_content_field_parametrs.animation-pulse {position: relative; pointer-events: none;}
.bcf-form-item.animation-pulse:after,.tab_content_field_parametrs.animation-pulse:after {position: absolute; left: calc(50% - 16px); top: calc(50% - 16px); content: ''; width: 32px; height: 32px; background: url('../img/ajax_pulse_animation.svg') no-repeat;}
.bcf-form-item.animation-pulse > div,.tab_content_field_parametrs.animation-pulse > div {opacity: 0.5;}
.bcf-resize-active {cursor: ew-resize;}
.bcf-resize-active, .bcf-resize-active * {user-select: none !important;}
.form_builder_mode .bcf-popup-footer {display: none;}
/* toggle slider */
.bcf-field-group-required {display: flex; align-items: center;}
.bcf-field-group-required label {margin: 0;}
.bcf-field-group-required p {font-size: 16px; margin: 0 0 0 8px; display: block; color: #111827;}
.bcf-remove-option {display: block; width: 40px; height: 40px; flex-shrink: 0; border: 2px solid #2563EB; border-radius: 8px; background-color: #fff; outline: none; background-image: url(../img/bfc-remove.svg); background-repeat: no-repeat; background-position: center center; background-size: 10px 10px; cursor: pointer;}
.bcf-label-with-info {display: flex!important; align-items: center;}
.bcf-description {width: 16px; height: 16px; display: block; border-radius: 50%; background-repeat: no-repeat; background-position: center center; background-size: contain; background-image: url(../img/bfc-info.svg); cursor: help;}
.bcf-label-with-info .bcf-description {margin-left: 8px;}
/* WP */
#wpfooter {position: relative;}
#wpcontent {min-height: calc(100vh - 72px);}
#wpcontent * {box-sizing: border-box;}
.group-inner {position: relative; width: 100%; min-height: 300px; background-color: #E5E7EB; border-radius: 8px;  align-content: flex-start; display: flex; flex-wrap: wrap; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 10px;}
.group-inner > * {box-sizing: border-box;flex: 0 0 auto;}
.group-inner .bcf-form-item {margin-bottom: 10px;}
.bcf-input-star-rating {display: flex; align-items: center; gap: 2px; flex-wrap: wrap; color: rgb(202, 202, 0);}
.bcf-input-star-rating-option {display: block;}
input[type=number]#bcf-field-value {appearance: textfield; -moz-appearance: textfield;}
input[type=number]#bcf-field-value::-webkit-outer-spin-button, input[type=number]#bcf-field-value::-webkit-inner-spin-button {-webkit-appearance: none; margin: 0;}
.bcf-option-row {display: flex; gap: 5px; margin-bottom: 10px; align-items: center;}
.bcf-option-image-wrapper {flex: 1;}
.bcf-option-image-container {position: relative; border: 1px solid #AAAAAA; border-radius: 8px; overflow: hidden; background: #fff;}
.bcf-option-image-placeholder {padding: 12px; text-align: center; cursor: pointer; transition: background-color 0.2s;}
.bcf-option-image-placeholder:hover {background-color: #F9FBFF;}
.bcf-option-image-text {display: block; font-size: 14px; color: #9CA3AF; margin-bottom: 8px;}
.bcf-option-image-btn {background: #2563EB; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 14px; transition: background-color 0.2s;}
.bcf-option-image-btn:hover {background: #1d4ed8;}
.bcf-option-image-preview {position: relative; padding: 8px; width: 50px; height: 50px; overflow: hidden;}
.bcf-option-image-preview-img {display: block; margin: 0 auto; border-radius: 4px; width: 100%; height: 100%; object-fit: cover;}
.bcf-option-image-remove {position: absolute; top: 2px; right: 2px; background-color: #dc3545; color: #fff; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; background-image: url(../img/bfc-remove_white.svg); background-position: center center; background-repeat: no-repeat; background-size: 8px 8px;}
.bcf-option-image-remove:hover {background-color: #c82333;}
/* segment button */
.bcf-segmented-control {display: flex; position: relative; background: #f0f0f1; border-radius: 8px; padding: 2px; width: 100%; max-width: 300px;}
.bcf-segmented-control input[type="radio"] {display: none;}
.bcf-segmented-control label {flex: 1; text-align: center; padding: 8px 12px; cursor: pointer; position: relative; z-index: 2; margin: 0; transition: color 0.3s ease; font-size: 13px; font-weight: 500; color: #666;}
.bcf-segmented-control input[type="radio"]:checked + label {color: #fff;}
.bcf-segmented-selection {position: absolute; top: 2px; left: 2px; height: calc(100% - 4px); width: calc(50% - 2px); background: #2563EB; border-radius: 6px; transition: transform 0.3s cubic-bezier(0.45, 0.05, 0.55, 0.95); z-index: 1;}
#bcf-value-first:checked ~ .bcf-segmented-selection {transform: translateX(0);}
#bcf-value-second:checked ~ .bcf-segmented-selection {transform: translateX(100%);}
.bcf-option-icon {display: flex; gap: 10px; align-items: center; color: #4B5563;}
.bcf-option-icon p {margin: 0;}
.bcf-group-title {padding-bottom: 6px; margin: 16px 0 12px; border-bottom: 1px solid #AAAAAA; display: block; width: 100%;}

.bcf-template-buttons {display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;}
.bcf-template-type {border: 1px solid #AAAAAA; padding: 23px 17px; cursor: pointer; border-radius: 8px; transition: all 0.3s ease-in;}
.bcf-template-type:hover {background-color: #2563EB; border-color: #2563EB;}
.bcf-template-type h3 {margin: 0 0 14px 0; font-size: 18px!important;  transition: all 0.3s ease-in;}
.bcf-template-type p {margin: 0; color: #334155; font-size: 16px; line-height: 22px;  transition: all 0.3s ease-in;}
.bcf-template-type:hover h3, .bcf-template-type:hover p {color: #fff!important;}

.bcf-empty-form {text-align: center; color: #4B5563; padding: 80px 0;}
.bcf-disable-toolbar{
    opacity: 0.5;
    pointer-events: none;
}
.field_placeholder, .field-select-insert {font-size: 14px; line-height: 18px; color: #4B5563;}


.bfc-container {position: relative; background-color: #fff;}
.bfc-container-header {border-top-left-radius: 10px; border-top-right-radius: 10px; background-color: #111827; padding: 9px;}
.bfc-container-content {border-bottom-left-radius: 10px; border-bottom-right-radius: 10px;  padding: 24px 10px; border: 1px solid #AAAAAA; background-color: #fff;}
.bfc-container-header-background {padding: 15px 12px;background-color: #111827; color: #fff; font-size: 20px; line-height: 22px; border-radius: 8px; font-weight: 700;}
.bfc-header-background-sexondary {background-color: #6B7280;}
.bcf-is-hidden,.bcf-hidden-textarea{
    display: none;
}
@media (max-width: 1200px) {
    .bfc-align-sections { flex-direction: column;}
}

@media screen and (max-width: 1390px) {
    .bcf-form-title, .bcf-form-title-header { flex: 0 0 150px;}
    .bcf-content-wrapper, .bfc-titlewrap, .bcf-backgroud-wrapper, .bcf-custom-tab-content {padding: 16px;}
    .tab_button_field {padding: 0 16px;}
    .bcf-field-group {margin-bottom: 16px;}
    .description {font-size: 14px!important; padding: 6px 0 0 0!important;}
    .bfc-divider {margin: 20px 0;}
    .bfc-spacer-sm {height: 20px;}
    .bfc-align-sections, .bfc-wrapper-flex {gap: 16px;}
    .bcf-filter-form {gap: 10px;}
    .wp-list-table th {padding: 14px 10px;}
    .wp-list-table td {padding: 10px; font-size: 14px;}
    .wp-list-table th {font-size: 14px;}
    .wp-list-table td:first-child, .wp-list-table th:first-child {padding-left: 10px;}
    .submission-details-table td {padding: 10px; font-size: 14px;}
    .gap-40 {gap: 20px;}
}
@media screen and (max-width: 1300px) {
    .bcf-filter-form select {min-width: 120px;}
    .bcf-main-title {font-size: 24px!important;}
    h2 {font-size: 24px;}
    h3 {font-size: 16px;}
    .bcf-action-info {padding: 6px;}
    .bcf-action-info p {font-size: 12px; line-height: 12px;}
    .bcf-input-style-label {font-size: 14px; margin-bottom: 8px;}
    .bcf-form-item {padding: 11px 11px 16px;}
    .bcf-button, .bcf-add-field, input.bcf-field-class, textarea.bcf-field-class, select.bcf-field-class {padding: 0 10px; font-size: 14px;}
    select.bcf-field-class {padding-right: 25px; background-position: right 10px center; background-size: 15px;}
}
@media screen and (max-width: 1200px) {.bfc-wrapper-flex {gap: 0;}
    .bfc-wrapper-flex .bcf-content-wrapper {flex: 0 0 100%; margin-bottom: 20px;}
}
