.ncrm-form-popup-button {
  padding: 9px 14px;
  border: 1px solid transparent;
  background: #111827;
  color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  margin: 10px auto 10px auto;
  display: block;
}
.ncrm-form-popup-button.hide {
  display: none;
}
.ncrm-form-popup-button:hover {
  background: #0d32f2;
  border: 0;
  color: #fff;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transform: none;
          transform: none;
}

.ncrm-form-wrapper {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  margin: 10vh auto 10vh auto;
  padding: 28px;
}
.ncrm-form-wrapper.boxed_layout {
  border-radius: 18px;
  -webkit-box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
          box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
}
@-webkit-keyframes spin {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
            transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
            transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes spin {
  0% {
    -webkit-transform: translate(-50%, -50%) rotate(0deg);
            transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    -webkit-transform: translate(-50%, -50%) rotate(360deg);
            transform: translate(-50%, -50%) rotate(360deg);
  }
}
.ncrm-form-wrapper .ncrm-preview-form {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}
.ncrm-form-wrapper .ncrm-preview-form.loading {
  opacity: 0.4;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.ncrm-form-wrapper .ncrm-preview-form.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  -webkit-animation: spin 1s linear infinite;
          animation: spin 1s linear infinite;
}
.ncrm-form-wrapper .ncrm-preview-form .ncrm-error {
  margin-top: 12px;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  display: none;
}
.ncrm-form-wrapper .ncrm-preview-form .ncrm-error.ncrm-error-msg {
  color: #ef4444;
  display: block;
}
.ncrm-form-wrapper .ncrm-preview-form .ncrm-error.ncrm-success-msg {
  color: #10b981;
  display: block;
}
.ncrm-form-wrapper .ncrm-preview-columns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 16px;
  width: 100%;
}
.ncrm-form-wrapper .ncrm-preview-column {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14px;
}
.ncrm-form-wrapper .ncrm-preview-field {
  width: 100%;
}
.ncrm-form-wrapper .ncrm-preview-field .field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.ncrm-form-wrapper .ncrm-preview-field input,
.ncrm-form-wrapper .ncrm-preview-field textarea,
.ncrm-form-wrapper .ncrm-preview-field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
}
.ncrm-form-wrapper .ncrm-preview-field textarea {
  min-height: 100px;
  resize: vertical;
}
.ncrm-form-wrapper .ncrm-preview-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 7px;
}
.ncrm-form-wrapper .ncrm-preview-field input,
.ncrm-form-wrapper .ncrm-preview-field textarea,
.ncrm-form-wrapper .ncrm-preview-field select {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  font-size: 14px;
}
.ncrm-form-wrapper .ncrm-preview-field input[type=checkbox],
.ncrm-form-wrapper .ncrm-preview-field input[type=radio] {
  width: auto;
  height: auto;
  cursor: pointer;
  margin: 0;
  margin-top: 12px;
  margin-right: 7px;
}
.ncrm-form-wrapper .ncrm-preview-field input[type=checkbox] + label,
.ncrm-form-wrapper .ncrm-preview-field input[type=radio] + label {
  margin-top: 0;
  display: inline;
}
.ncrm-form-wrapper .ncrm-preview-field textarea {
  min-height: 90px;
  resize: vertical;
}
.ncrm-form-wrapper .ncrm-preview-field button {
  margin-bottom: 0;
}
.ncrm-form-wrapper .ncrm-preview-field a {
  color: #2271b1;
  font-weight: 700;
  text-decoration: none;
}
.ncrm-form-wrapper .ncrm-preview-field a:hover {
  text-decoration: underline;
}
.ncrm-form-wrapper .ncrm-preview-field .ncrm-radio-inline,
.ncrm-form-wrapper .ncrm-preview-field .ncrm-checkbox-inline {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.ncrm-form-wrapper .ncrm-preview-field .ncrm-radio-inline input[type=checkbox],
.ncrm-form-wrapper .ncrm-preview-field .ncrm-radio-inline input[type=radio],
.ncrm-form-wrapper .ncrm-preview-field .ncrm-checkbox-inline input[type=checkbox],
.ncrm-form-wrapper .ncrm-preview-field .ncrm-checkbox-inline input[type=radio] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2271b1;
  min-height: auto;
}
.ncrm-form-wrapper .ncrm-preview-field .ncrm-radio-inline input[type=checkbox],
.ncrm-form-wrapper .ncrm-preview-field .ncrm-checkbox-inline input[type=checkbox] {
  border-radius: 2px;
}
.ncrm-form-wrapper .ncrm-preview-field .ncrm-radio-inline label,
.ncrm-form-wrapper .ncrm-preview-field .ncrm-checkbox-inline label {
  margin: 0;
  font-weight: 700;
  color: #374151;
}
.ncrm-form-wrapper .ncrm-preview-field .ncrm-inline-select {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}
.ncrm-form-wrapper .ncrm-preview-field .ncrm-inline-select select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  border-radius: 10px;
  font-size: 13px;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.ncrm-form-wrapper .ncrm-preview-field .ncrm-inline-select select:focus {
  outline: none;
  border-color: #2271b1;
  -webkit-box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
          box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}
.ncrm-form-wrapper .ncrm-preview-field.ncrm-inline-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 auto;
          flex: 0 0 auto;
}
.ncrm-form-wrapper .ncrm-preview-field.ncrm-inline-field label {
  margin-bottom: 0px;
}
.ncrm-form-wrapper .ncrm-preview-field.ncrm-inline-field .ncrm-radio-inline,
.ncrm-form-wrapper .ncrm-preview-field.ncrm-inline-field .ncrm-checkbox-inline {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-item-align: center;
      -ms-grid-row-align: center;
      align-self: center;
  width: 100%;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.ncrm-form-wrapper button {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid transparent;
  background: #111827;
  color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.ncrm-form-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
}
.ncrm-form-wrapper a {
  color: unset;
  text-decoration: unset;
  font-weight: unset;
}

.ncrm-form-preview {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 30px;
}
.ncrm-form-preview.active {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.ncrm-form-preview .ncrm-form-preview-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: transparent;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  z-index: 999;
}
.ncrm-form-preview .ncrm-form-preview-close:hover {
  background: none;
  -webkit-box-shadow: none;
          box-shadow: none;
  -webkit-transform: none;
          transform: none;
}
.ncrm-form-preview .ncrm-form-wrapper {
  border-radius: 18px;
  -webkit-box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
          box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  padding: 8vh;
}
@media (max-width: 600px) {
  .ncrm-form-preview .ncrm-form-wrapper {
    padding: 5vh 5px;
  }
}
.ncrm-form-preview.pisition_center {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}
.ncrm-form-preview:not(.pisition_center) {
  width: min(760px, 100%);
}
.ncrm-form-preview:not(.pisition_center) .ncrm-form-wrapper {
  width: 100%;
  margin: 2vh auto 2vh auto;
}
@media (max-width: 768px) {
  .ncrm-form-preview:not(.pisition_center) .ncrm-form-wrapper {
    padding: 3vh 10px;
  }
}
.ncrm-form-preview.pisition_bottom_right {
  top: unset;
  bottom: 5px;
  right: 5px;
  left: auto;
}
.ncrm-form-preview.pisition_bottom_left {
  top: unset;
  bottom: 5px;
  left: 5px;
  right: auto;
}
.ncrm-form-preview.pisition_top_right {
  top: 5px;
  bottom: unset;
  right: 5px;
  left: auto;
}
.ncrm-form-preview.pisition_top_left {
  top: 5px;
  bottom: unset;
  left: 5px;
  right: auto;
}
.ncrm-form-preview.pisition_top_center {
  top: 5px;
  bottom: unset;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}
.ncrm-form-preview.pisition_bottom_center {
  bottom: 5px;
  top: unset;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
}