.app-form__wrapper {
  display: flex;
  align-items: flex-start;
}

.app-form__col {
  width: 290px;
}

.app-form__content {
  width: calc(100% - 290px);
}

.app-form__wrapGlobal {
  display: flex;
  align-items: flex-start;
}

.app-form-item {
  width: 50%;
}
.app-form-item:last-child {
  padding-left: 60px;
}

.app-form__buutton {
  margin-bottom: 17px;
}

.app-form__content .control {
  font-size: 14px;
}

.app-form__buutton .btn {
  width: 100%;
  background-color: rgba(255,255,255,0);
}

.app-form__title {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 30px;
  font-feature-settings: "pnum" on, "lnum" on;
  color: #212529;
}

.app-form__descript {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.2;
  color: #6c757d;
}

.app-form__descript span {
  display: block;
}

.app-form__label {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  font-feature-settings: "pnum" on, "lnum" on;
  color: #1c1f20;
  display: block;
  margin-bottom: 22px;
}

.app-form__content {
  padding-left: 96px;
}

.app-form__wrap {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-left: -5px;
  margin-right: -5px;
  margin-bottom: -10px;
}

.app-form__link {
  display: block;
  padding-left: 5px;
  padding-right: 5px;
  margin-bottom: 10px;
  cursor: pointer;
}

.app-form__link input {
  opacity: 0;
  display: none;
}

.app-form__link span {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  display: inline-block;
  color: #1c1f20;
  padding: 8px 19px;
  border: 1px solid #03c9a9;
  border-radius: 25px;
}

.input-app-form-link:checked ~ span {
  color: #fff;
  background-color: #03c9a9;
}

.app-form__services {
  padding-bottom: 40px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ececec;
}

.app-form-range {
  border-bottom: 1px solid #ececec;
}

.app-form__block {
  padding-bottom: 40px;
}

.app-form__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}
.app-form__list span {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: #1c1f20;
}

.app-form_green {
  border: 1px solid #03c9a9;
  border-radius: 4px;
  padding: 7px 19px;

  font-weight: 500;
  font-size: 22px;
  line-height: 22px;
  color: #03c9a9;
}

span.app-from-rub {
  font-weight: 500;
  font-size: 22px;
  line-height: 22px;
  color: #03c9a9;
}


.app-form-item .popup-upload {
  margin-top: 28px;
}

.noui-w__control {
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  color: #03c9a9;
  border: none;
  outline: none;
  width: 100px;
  background-color: rgba(255,255,255,0);
}

.app-form__content .noUi-horizontal {
  height: 4px;
  background-color: #eaeaea;
  box-shadow: none;
  border: none;
}

.app-form__content .noUi-horizontal .noUi-handle {
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border: 2px solid #03C9A9;
  border-radius: 50%;
  top: -8px;
  box-shadow: none;
  cursor: pointer;
}


.app-form__content .noUi-handle:before, .app-form__content .noUi-handle:after {
  display: none;
}

.app-form__content .noUi-connects {
  background-color: #EAEAEA;
}

.app-form__block-offset {
  padding-top: 40px;
}

.app-form__content .btn-default {
  width: 100%;
}

.app-form__content .textarea__default {
  resize: auto;
  height: auto;
}

.app-form__content .textarea__default::placeholder {
  color: #BABABA;
}

.app-form__content .textarea__default {
  color: #1C1F20;
}

.app-form__content .input__default::placeholder {
  color: #BABABA;
}

.app-form__content .input__default {
  color: #1C1F20;
}
.popup-upload-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.popup-upload-wrap img {
  margin-right: 7px;
}

input[type="file"] {
  position: absolute;
  left: -9999px;
}

label[for="appFileInput"] {
  cursor: pointer;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: #F76964;
}

.popup-upload {
  position: relative;
}

.popup-upload span {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  display: block;
  margin-left: 26px;
  color: #FBB9B7;
}

.app-form_bg {
  background: #F8F9FA;
}

.maxwidth-theme-offset-form {
  padding-top: 60px;
  padding-bottom: 60px;
}

@media (max-width: 1200px) {
  .app-form__content {
    padding-left: 34px;
  }
}

@media (max-width: 1100px) {
  .app-form__wrapper {
    flex-direction: column;
  }

  .app-form__col {
    text-align: center;
    width: 100%;
    margin-bottom: 60px;
  }

  .app-form__content {
    padding-left: 0;
    width: 100%;
  }

  .app-form__descript span {
    display: inline-block;
  }
}

@media (max-width: 700px) {
  .app-form__wrapGlobal {
    flex-direction: column;
  }

  .app-form-item {
    width: 100%;
  }

  .app-form-item:last-child {
    padding-left: 0;
  }
  .app-form__label {
    font-size: 20px;
  }

  .app-form__title {
    font-size: 25px;
    margin-bottom: 10px;
  }

  .app-form__descript {
    font-size: 18px;
  }

  .app-form__col {
    margin-bottom: 32px;
  }
}


.app-form__label {
  position: relative;
}


.app-form__label .error-txt {
    position: absolute;
    right: 0;
    top: 5px;
    font-weight: 700;
    font-size: 13px;
    color: #f76964;
}

.errCheckBox {
  border: solid 1px red !important;
}

/* Functional styling;
 * These styles are required for noUiSlider to function.
 * You don't need to change these rules to apply your design.
 */
.noUi-target,
.noUi-target * {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  -ms-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.noUi-target {
  position: relative;
}
.noUi-base,
.noUi-connects {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}
/* Wrapper for all connect elements.
 */
.noUi-connects {
  overflow: hidden;
  z-index: 0;
}
.noUi-connect,
.noUi-origin {
  will-change: transform;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  -ms-transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
  -webkit-transform-style: preserve-3d;
  transform-origin: 0 0;
  transform-style: flat;
}
/* Offset direction
 */
.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
  left: 0;
  right: auto;
}
/* Give origins 0 height/width so they don't interfere with clicking the
 * connect elements.
 */
.noUi-vertical .noUi-origin {
  top: -100%;
  width: 0;
}
.noUi-horizontal .noUi-origin {
  height: 0;
}
.noUi-handle {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: absolute;
}
.noUi-touch-area {
  height: 100%;
  width: 100%;
}
.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
  -webkit-transition: transform 0.3s;
  transition: transform 0.3s;
}
.noUi-state-drag * {
  cursor: inherit !important;
}
/* Slider size and handle placement;
 */
.noUi-horizontal {
  height: 18px;
}
.noUi-horizontal .noUi-handle {
  width: 34px;
  height: 28px;
  right: -17px;
  top: -6px;
}
.noUi-vertical {
  width: 18px;
}
.noUi-vertical .noUi-handle {
  width: 28px;
  height: 34px;
  right: -6px;
  bottom: -17px;
}
.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
  left: -17px;
  right: auto;
}
/* Styling;
 * Giving the connect element a border radius causes issues with using transform: scale
 */
.noUi-target {
  background: #FAFAFA;
  border-radius: 4px;
  border: 1px solid #D3D3D3;
  box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}
.noUi-connects {
  border-radius: 3px;
}
.noUi-connect {
  background: #3FB8AF;
}
/* Handles and cursors;
 */
.noUi-draggable {
  cursor: ew-resize;
}
.noUi-vertical .noUi-draggable {
  cursor: ns-resize;
}
.noUi-handle {
  border: 1px solid #D9D9D9;
  border-radius: 3px;
  background: #FFF;
  cursor: default;
  box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
}
.noUi-active {
  box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;
}
/* Handle stripes;
 */
.noUi-handle:before,
.noUi-handle:after {
  content: "";
  display: block;
  position: absolute;
  height: 14px;
  width: 1px;
  background: #E8E7E6;
  left: 14px;
  top: 6px;
}
.noUi-handle:after {
  left: 17px;
}
.noUi-vertical .noUi-handle:before,
.noUi-vertical .noUi-handle:after {
  width: 14px;
  height: 1px;
  left: 6px;
  top: 14px;
}
.noUi-vertical .noUi-handle:after {
  top: 17px;
}
/* Disabled state;
 */
[disabled] .noUi-connect {
  background: #B8B8B8;
}
[disabled].noUi-target,
[disabled].noUi-handle,
[disabled] .noUi-handle {
  cursor: not-allowed;
}
/* Base;
 *
 */
.noUi-pips,
.noUi-pips * {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}
.noUi-pips {
  position: absolute;
  color: #999;
}
/* Values;
 *
 */
.noUi-value {
  position: absolute;
  white-space: nowrap;
  text-align: center;
}
.noUi-value-sub {
  color: #ccc;
  font-size: 10px;
}
/* Markings;
 *
 */
.noUi-marker {
  position: absolute;
  background: #CCC;
}
.noUi-marker-sub {
  background: #AAA;
}
.noUi-marker-large {
  background: #AAA;
}
/* Horizontal layout;
 *
 */
.noUi-pips-horizontal {
  padding: 10px 0;
  height: 80px;
  top: 100%;
  left: 0;
  width: 100%;
}
.noUi-value-horizontal {
  -webkit-transform: translate(-50%, 50%);
  transform: translate(-50%, 50%);
}
.noUi-rtl .noUi-value-horizontal {
  -webkit-transform: translate(50%, 50%);
  transform: translate(50%, 50%);
}
.noUi-marker-horizontal.noUi-marker {
  margin-left: -1px;
  width: 2px;
  height: 5px;
}
.noUi-marker-horizontal.noUi-marker-sub {
  height: 10px;
}
.noUi-marker-horizontal.noUi-marker-large {
  height: 15px;
}
/* Vertical layout;
 *
 */
.noUi-pips-vertical {
  padding: 0 10px;
  height: 100%;
  top: 0;
  left: 100%;
}
.noUi-value-vertical {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  padding-left: 25px;
}
.noUi-rtl .noUi-value-vertical {
  -webkit-transform: translate(0, 50%);
  transform: translate(0, 50%);
}
.noUi-marker-vertical.noUi-marker {
  width: 5px;
  height: 2px;
  margin-top: -1px;
}
.noUi-marker-vertical.noUi-marker-sub {
  width: 10px;
}
.noUi-marker-vertical.noUi-marker-large {
  width: 15px;
}
.noUi-tooltip {
  display: block;
  position: absolute;
  border: 1px solid #D9D9D9;
  border-radius: 3px;
  background: #fff;
  color: #000;
  padding: 5px;
  text-align: center;
  white-space: nowrap;
}
.noUi-horizontal .noUi-tooltip {
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  left: 50%;
  bottom: 120%;
}
.noUi-vertical .noUi-tooltip {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  top: 50%;
  right: 120%;
}
.noUi-horizontal .noUi-origin > .noUi-tooltip {
  -webkit-transform: translate(50%, 0);
  transform: translate(50%, 0);
  left: auto;
  bottom: 10px;
}
.noUi-vertical .noUi-origin > .noUi-tooltip {
  -webkit-transform: translate(0, -18px);
  transform: translate(0, -18px);
  top: auto;
  right: 28px;
}
.max-container-background {
  background: #f5f5f5;
  margin-top: 50px;

} 


/* Стили для полей с ошибками */
.errField {
    border: 2px solid #e74c3c !important;
    background-color: #fdf2f2 !important;
    transition: all 0.3s ease;
}

.errField:focus {
    border-color: #e74c3c !important;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.3) !important;
    outline: none !important;
}

/* Стили для сообщений об ошибках под полями */
.field-error-message {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для ошибки чекбокса */
.licence_block.error .form-checkbox__box {
    border: 2px solid #e74c3c !important;
    background-color: #fdf2f2 !important;
    transition: all 0.3s ease;
}

.licence_block.error .form-checkbox__label span {
    color: #e74c3c !important;
}

.licence_block .error-txt {
    display: none;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 8px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.licence_block.error .error-txt {
    display: block !important;
}

/* Стили для успешно заполненных полей */
.valid-field {
    border-color: #27ae60 !important;
    background-color: #f8fff9 !important;
    transition: all 0.3s ease;
}

.valid-field:focus {
    border-color: #27ae60 !important;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.3) !important;
}

/* Стили для ошибок в блоке услуг */
.app-form__services.has-error {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 15px;
    background-color: #fdf2f2;
    margin-bottom: 20px;
}

.services-error-message {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
    display: block;
}

/* Стили для ошибок файлов */
.file-error-message {
    color: #e74c3c;
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
    padding: 8px;
    background-color: #fdf2f2;
    border-radius: 4px;
    border-left: 3px solid #e74c3c;
}

/* Дополнительные стили для лучшего UX */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.input {
    position: relative;
}

/* Анимация для появления ошибок */
.errField {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Стили для фокуса на первом поле с ошибкой */
.errField:target,
.licence_block.error:target {
    animation: highlight 1s ease-in-out;
}

@keyframes highlight {
    0% { background-color: rgba(231, 76, 60, 0.1); }
    50% { background-color: rgba(231, 76, 60, 0.2); }
    100% { background-color: transparent; }
}