#rn_form_template
{
	opacity: 0;
    pointer-events: auto;
    overflow-y: auto;
    position: fixed;
    align-items: center;
    justify-items: center;
    display: none;
    top: 0px;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000000;
    transition: opacity 300ms ease-in;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
    display: grid;
    align-items: center;
    justify-items: center;
}

.modal-content {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background-color: #fff;
    background-clip: padding-box;
    border-radius: 20px;
    outline: 0;
    min-width: 600px;
	min-width: 680px !important;
}

.modal-header {
    height: 80px;
    border-radius: 20px 20px 0px 0px;
    background-color: #F7F9F9;
    display: grid;
    grid-template-columns: auto 80px;
    align-items: center;
}

.modal-header-h1 {
    text-align: center;
    font-size: 1.8em;
    color: #525252;
    padding: 0em 0.5em;
}

.modal-header-cell_del {
    display: grid;
}

.modal-header_del {
    display: inline-grid;
    background-color: #9ACABE;
    border-radius: 3em 0px 0px 3em;
}

.modal_cicle {
    border-radius: 50%;
    border: 2px #0B5F4A solid;
    background-color: #BFE6DC;
    height: 2.2em;
    width: 2.2em;
    display: grid;
    align-items: center;
    justify-items: center;
    box-shadow: 2px 2px 8px -2px #7a7e80;
    margin: 0.4em;
    transition: 300ms;
    transform: rotate(-180deg);
    cursor: pointer;
}

.textImgInsrtd {
    cursor: pointer;
    position: relative;
	text-align: center;
    margin: 12px 0px;
}

.bnt_ico_close {
    width: 1.4em;
    cursor: pointer;
}

.modal-footer-bg {
    background-color: #F7F9F9;
    border-radius: 0px 0px 20px 20px;
    padding: 0.7em;
}

.modal-footer-btn {
    display: inline-grid;
    position: relative;
}

.btn_green {
    border: 1px #75A99C solid;
    border-radius: 20px;
    background-color: #E3F0ED;
    display: grid;
    grid-template-columns: 40px auto;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: 400ms;
    user-select: none;
}

.btn_ico {
    display: grid;
    justify-items: center;
}

.textImgInsrtd {
    cursor: pointer;
    position: relative;
	text-align: center;
    margin: 12px 0px;
}

.bnt_ico_1 {
    width: 30px;
    padding-left: 0.2em;
}

.btn_green_in {
    background-color: #9acabe;
    border: 1px #9ACABE solid;
    border-radius: 17px;
    padding: 0.5em 1.5em;
    text-align: center;
    line-height: 1.3;
    margin: 0.2em;
    font-size: 0.85em;
    transition: 400ms;
    color: #000;
	height: 3em;
    display: grid;
    align-items: center;
}

.RN-formItemsWrap
{
    background-color: #fff;
    background-clip: padding-box;
    outline: 0;
    min-width: 600px;
    min-width: 680px !important;
    padding-top: 1.5em;
}

.modal center
{
	min-width: 680px !important;
}

#formWarning
{
	background:#ffffff;
	width: 100%;
    text-align: center;
}









/* КНОПКИ */

:root{ --bg:#f6f7f9; --card:#fff; --ink:#111827; --sub:#6b7280; --line:#75ad9d; --accent:#10b981; --radius:5px; }
/* *{box-sizing:border-box} */


/* === MODAL SHELL (standalone). Если встраиваешь В СВОЮ модалку — возьми только .btn-editor из <main> === */
.modal__head{flex:0 0 auto; display:flex;align-items:center;padding:10px 16px;border-bottom:1px solid var(--line);background:linear-gradient(#fff,#fafbfc)}
.modal__title{font-weight:700}
.modal__scroll{flex:1 1 auto; overflow:auto}

/* Top preview */
.previewTop
{
    display:grid;
    place-items:center;
    background:repeating-conic-gradient(#f8f9fb 0% 25%,#f2f3f5 0% 50%) 50%/22px 22px;
    /*border-bottom:1px solid var(--line); */
    padding:16px;
    margin-bottom: 10px;
}
.preview__bg{width:100%;min-height:120px;border-radius:16px;background:#fff;display:grid;place-items:center;box-shadow:inset 0 0 0 1px var(--line)}
.btn-sample{cursor:pointer;border:2px solid transparent;padding:12px 22px;border-radius:12px;font-weight:600;transition:transform .15s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease, color .15s ease; display:inline-flex; justify-content:center}

/* Tabs */
.tabs
{
    position:sticky; 
    top:0; 
    z-index:2; 
    gap:6px;
    border-bottom:1px solid #2e826a;
    background:#fcfdff
}
.tab{height:34px;padding:0 10px;border:1px solid var(--line);border-bottom:none;border-radius:8px 8px 0 0;background:#fff;color:#374151;cursor:pointer;font-size:13px}
.tab.is-active
{
    background-color: #fff;
    border-bottom: 1px solid #fff;
    color: #0B5F4A;
    border-top: 1px solid #2e826a;
    border-left: 1px solid #2e826a;
    border-right: 1px solid #2e826a;
}
.panes
{
    padding:10px;
    background-color: #d1e6e1;
}

/* Controls */
.group{border:1px solid var(--line);border-radius:var(--radius);padding:10px;margin-bottom:10px;background:#fff}
.group h3{margin:0 0 8px;font-size:12px;letter-spacing:.02em;text-transform:uppercase;color:var(--sub)}

.row
{
    display:grid;
    grid-template-columns:205px 1fr;
    align-items:center;
    gap:10px;
    padding:5px 0}
.row-ctrl
{
    display:grid;
    grid-template-columns: auto 100px;
    gap:10px;
    align-items:center;
}
input[type="text"],input[type="url"],select,input[type="number"]
{
    padding:8px 10px;
    border-radius:5px;
    border:1px solid var(--line);
    outline:none;
    background: linear-gradient(to top, #f6f6fd, #fff);
}
input[type="color"]
{
    width:40px;
    height:28px;
    border:none;
    border-radius:6px;
    padding:0
    background-color: #fff;
}
input[type="range"]{width:100%}
.inline{display:flex;gap:8px;align-items:center}
.hint{color:var(--sub);font-size:12px}

.modal__foot{flex:0 0 auto; display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-top:1px solid var(--line);background:#f9fafb}
.btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--line);background:#fff;cursor:pointer}
.btn--primary{background:var(--accent);border-color:transparent;color:#fff;font-weight:700}



.cont_form_tab_1
{
    display: grid;
    grid-template-columns: 160px auto;
    grid-column-gap: 10px;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
}
.cont_form_tab_2
{
    display: grid;
    grid-template-columns: auto 130px;
    grid-column-gap: 30px;
}
.cont_form_tab_2_edit {
  display: grid;
  grid-template-columns: auto 110px;
  grid-column-gap: 30px;
  grid-template-rows: auto auto; /* две строки */
}

.cont_form_tab_2_edit > div:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.cont_form_tab_2_edit > div:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}
.cont_form_tab_2_edit>div>.cancelNewFormItem
{background:#2e826a;}
.cont_form_tab_btn_tab
{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    transform: scale(0.9);
}
.cont_form_tab_name
{
    text-align: right;
}
.cont_form_input
{
    width: 100%;
    background: linear-gradient(to top, #f6f6fd, #fff);
}
.btn_move
{
    cursor: move !important;
}
.modal_header_form
{
    margin-bottom: 20px;
}
.new_row_container
{
    max-width: 640px;
    text-align: left;
    margin-top: 10px;
}
.new_row_dot
{
    border: 1px dashed var(--line);
    padding: 15px 10px;
    background-color: #ffffffb8;
}
.new_row_dot_setup
{
    border: 1px dashed #75ad9d;
    padding: 10px;
    background: #ffffff45;
}
.new_row_dot_edit
{
    border: 1px dashed var(--line);
    padding: 10px 10px 0 10px;
    margin: 0 10px 20px 10px;
    background-color: #f7f9f9;
    display:none;
}
.cont_form_h1_edit
{
    border: 1px dashed #aeaeae;
    padding: 0 10px;
}
.cont_form_h1_edit_tab
{
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    grid-column-gap: 10px;
}
.new_row_tab
{
    display: grid;
    grid-template-columns: auto auto auto;
    grid-column-gap: 10px;
    align-items: center;
}
.new_row_btn
{
    background-color: #9acabe;
    color: #000;
    border-radius: 5px;
    padding: 1px 15px;
    display: inline-grid;
    cursor: pointer;
    transition: 200ms;
}
.new_row_btn:hover
{
    background-color: #7cddc5;
    transition: 200ms;
}
.new_row_btn_white
{
    background-color: #fff;
    color: #000;
    border-radius: 5px;
    padding: 0px 15px;
    display: inline-grid;
    border: 1px solid #0b5f4a;
    cursor: pointer;
    transition: 200ms;
}
.new_row_btn_white:hover
{
    background-color: #e3f0ed;
    transition: 200ms;
}
.new_row_btn_red
{
    background-color: #ed3f33;
    color: #fff;
    border-radius: 5px;
    padding: 0px 15px;
    display: inline-grid;
    cursor: pointer;
    transition: 200ms;
}
.new_row_btn_red:hover
{
    background-color: #cd3025;
    transition: 200ms;
}
.cont_form_tab_select
{
    width: 100%;
}
.setup_row_tab
{
    display: grid;
    grid-template-columns: 190px 280px 70px;
    grid-column-gap: 10px;
    align-items: center;
    margin: 10px 0px;
}
.admin_btn_ico_question_setup
{
    height: 22px;
    display: block;
    margin-bottom: -5px;
}
.new_row_padding_ico
{
    padding-left: 20px;
}
.button_edit
{
    position: relative;
    width: 74px;
    height: 36px;
    overflow: hidden; 
    float: left;
}
.new_row_btn_small
{
    transform: scale(0.8);
}
.cont_form_tab_bg
{
    background-color: #9acabe;
    padding: 5px;
    border-radius: 5px;
}

.cont_form_tab_2 fieldset>label
{
    display: block;
    text-align: left;
}

.cont_form_tab_2 fieldset
{
    padding-left: 10px;
}

.showRNform,.showRNform, .btn_green>.addRedButtonSecondary
{
    display:none;
}
.cont_form_tab_1.dragging {
  opacity: 0.5;
  background: #f0f0f0;
}
.drag-placeholder { border: 2px dashed #ddd; border-radius: 8px; margin: 6px 0; }
.drag-ghost{
  position: fixed; z-index: 9999; pointer-events: none; 
  box-shadow: 0 6px 18px rgba(0,0,0,.15); border-radius: 10px; opacity:.95;
}
.cont_form_tab_1.dragging { will-change: transform; cursor: grabbing; transition: transform 120ms ease; }
/* плавность и без дёрганий */
.dragging{
  transition: transform 120ms ease;
  will-change: transform;
  position: relative;
  z-index: 2;
  user-select: none;
}


#currenlyReducting > :first-child
{
    background: #2e826a;
    padding: 5px;
    border-radius: 5px;
    color: white;
}

.notFilledFieldsЦWarn
{
    text-align: center;
    color: red;
    background: #fcebeb;
    margin: 10px;
    border: 1px solid #d5d5d5;
}
/* contactForm END */
/* КНОПКИ END */
input[type="text"], input[type="email"], input[type="tel"], textarea
{
 border: 1px solid var(--line);   
}
/* Общий стиль радио-кнопок */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-right: 10px;
}

/* Наведение */
input[type="radio"]:hover:not(:disabled) {
  border-color: #007aff;
}

/* Активное состояние */
input[type="radio"]:checked {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

/* Синяя точка внутри выбранной кнопки */
input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: #007aff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* Отключённое состояние */
input[type="radio"]:disabled {
  border-color: #ddd;
  background-color: #f3f3f3;
  cursor: not-allowed;
}

/* Визуально отключённое состояние при checked */
input[type="radio"]:disabled:checked::before {
  background-color: #bbb;
}
input[type="radio"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Когда выбрано */
input[type="radio"]:checked::before {
  background-color: #007aff;
  transform: translate(-50%, -50%) scale(1);
}

/* Общий стиль чекбоксов */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  margin-right: 6px;
}

/* Наведение */
input[type="checkbox"]:hover:not(:disabled) {
  border-color: #007aff;
}

/* Активное состояние */
input[type="checkbox"]:checked {
  border-color: #007aff;
  background-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

/* Галочка */
input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(45deg) scale(0);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Плавное появление галочки */
input[type="checkbox"]:checked::after {
  transform: translate(-50%, -60%) rotate(45deg) scale(1);
  opacity: 1;
}

/* Отключённое состояние */
input[type="checkbox"]:disabled {
  border-color: #ddd;
  background-color: #f3f3f3;
  cursor: not-allowed;
}

input[type="checkbox"]:disabled:checked {
  background-color: #bbb;
  border-color: #bbb;
}
