.form-group {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-bottom: 1.6rem;
}

@media (min-width: 768px) {
  .form-group-submit {
    align-items: start;
  }
}

.form-group__privacy-policy {
  text-align: left;
  margin-bottom: 1.6rem;
}

.form-group label,
.form-group input {
  display: block;
  width: 100%;
}

.form-group label {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.form-group input,
.form-group textarea {
  border: 1px solid var(--color-form-borders);
  border-radius: 0.6rem;
  font-size: 1.6rem;
  line-height: 1.5;
  padding: 0.6rem 1.2rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-group textarea {
  resize: vertical;
  width: 100%;
}

.form-group .validation__message,
.form-group__privacy-policy .validation__message {
  color: red;
  text-align: left;
  width: 100%;
}

.form-group__privacy-policy .validation__message {
  display: block;
}

.validation__container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.validation__container > .validation__message {
  color: red;
  white-space: nowrap;
}

.form__counter {
  color: #afb4b9;
  font-size: 14px;
  margin-top: 5px;
  text-align: right;
  width: 100%;
}

.toast {
  border-radius: 0.5rem;
  bottom: 2rem;
  color: white;
  opacity: 0;
  padding: 1.5rem;
  position: fixed;
  right: 50%;
  text-align: center;
  transform: translate(50%, 2rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translate(50%, 0);
}

@media (min-width: 768px) {
  .toast {
    padding: 2rem;
    right: 2rem;
    transform: translate(0, 2rem);
  }

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

.toast-success {
  background-color: #28a745;
}

.toast-error {
  background-color: #dc3545;
}
