.form-control_error .input {
  border-color: #d53a21 !important;
  box-shadow: 0 0 0 1px #d53a21 inset;
}

.form-control_error .checkbox__text::before {
  outline: 1px solid #d53a21;
  outline-offset: 2px;
  border-radius: 0.3rem;
}

.form-control_error .checkbox {
  padding: 1.2rem 1.2rem 1.2rem 4rem;
  border: 1px solid #d53a21;
  border-radius: 1rem;
  background: rgba(213, 58, 33, 0.08);
}

.form-control_error .checkbox__text {
  color: #d53a21;
}

/* Индикатор загрузки на кнопке отправки */
.btn._loading {
  position: relative;
  pointer-events: none;
}

.btn._loading > span,
.btn._loading > svg {
  opacity: 0;
}

.btn__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 0.25rem solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Всплывающие уведомления (toast) */
.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: calc(100vw - 4rem);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 28rem;
  max-width: 40rem;
  padding: 1.6rem 2rem;
  border-radius: 1.2rem;
  background: #fff;
  color: #1a1a1a;
  font-size: 1.5rem;
  line-height: 1.4;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.18);
  border-left: 0.5rem solid #f47316;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: auto;
}

.toast._show {
  transform: translateX(0);
  opacity: 1;
}

.toast._success {
  border-left-color: #1faa59;
}

.toast._error {
  border-left-color: #d53a21;
}

.toast__icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.toast._success .toast__icon {
  background: #1faa59;
}

.toast._error .toast__icon {
  background: #d53a21;
}

@media (max-width: 780px) {
  .toast-container {
    top: auto;
    bottom: 1.6rem;
    left: 1.6rem;
    right: 1.6rem;
    align-items: stretch;
  }

  .toast {
    min-width: 0;
    max-width: none;
    transform: translateY(150%);
  }

  .toast._show {
    transform: translateY(0);
  }
}
