#form_block.form_block {
  margin: 0 auto;
  max-width: 300px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

#form_block .final-page__form {
  width: 100%;
}

#form_block .lead-form {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  color: #fff;
  font-family: "Inter", sans-serif;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group label {
  display: none;
}

.form-input {
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
  color: #0f172a;
  background-color: #fff;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"] {
  margin-bottom: 0 !important;
}

.form-input:focus {
  border-color: #f79e1b;
  box-shadow: 0 0 0 2px rgba(247, 158, 27, 0.25);
  outline: none;
}

.input-error {
  border-color: #ef4444 !important;
}

.form-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
  min-height: 16px;
}

.form-submit {
  height: 50px;
  width: 100%;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: "Encode Sans Expanded", sans-serif;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  background-image: linear-gradient(90deg, #e8890a, #f79e1b, #ffd36a, #f79e1b, #e8890a);
  background-size: 300% 100%;
  animation: formSubmitGradient 3s linear infinite;
  box-shadow: 0 6px 18px rgba(247, 158, 27, 0.45);
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.form-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(247, 158, 27, 0.55);
}

.form-submit:active {
  filter: brightness(0.95);
  transform: translateY(0);
}

@keyframes formSubmitGradient {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

@media screen and (max-width: 1023px) {
  #form_block.form_block,
  #form_block .lead-form {
    max-width: 86%;
  }

  .form-input {
    height: 44px;
    font-size: 16px;
    padding: 0 12px;
  }

  .form-submit {
    height: 48px;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 475px) {
  #form_block.form_block,
  #form_block .lead-form {
    max-width: 85%;
  }
}
