.form {
  margin-top: 100px;
  display: grid;
  justify-content: center;
  gap: 10px;
}
.form h2 {
  text-align: center;
}
form {
  width: 680px;
}
.form-group input {
  width: 100%;
  background-color: unset;
  color: #07583b;
  font-family: "Inter", Sans-Serif;
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 400;
  margin-top: 40px;
  border-bottom: 1px #07583b solid;
}
.text-area {
  margin-top: 20px;
}
.form-textarea {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  background-color: unset;
  color: #07583b;
  font-family: "Inter", Sans-Serif;
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 400;
  border: 1px #07583b solid;
  padding: 2px 0 0 2px;
}
.text-area p {
  color: #757575;
}
.soglasie {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.soglasie input {
  width: 15px;
  height: 15px;
  background-color: unset;
  border: 1px #07583b solid;
}
.soglasie p {
  color: #07583b;
  font-size: 16px;
}
.soglasie a {
  color: #07583b;
  font-size: 16px;
  text-decoration: underline;
}
.submit-button {
  font-size: 30px;
  color: #faf5ef;
  background-color: #07583b;
  border-radius: 12px;
  font-family: "Inter", Sans-Serif;
  font-weight: 400;
  padding: 10px 110px;
  display: block;
  margin: auto;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s;
}
@media (max-width: 440px) {
  .form {
    margin-top: 60px;
  }
  form {
    width: 100%;
  }
  .form-group input {
    font-size: 18px;
  }
  .form-textarea {
    font-size: 18px;
  }
  .soglasie {
    gap: 5px;
    margin-top: 15px;
  }
  .soglasie p {
    font-size: 14px;
  }
  .soglasie a {
    font-size: 14px;
  }
  .submit-button {
    font-size: 26px;
    margin-top: 30px;
  }
}

.submit-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.loader-dots span {
  font-size: 1.5em;
  animation: dotPulse 1.4s infinite;
  opacity: 0;
}
.loader-dots span:nth-child(1) { animation-delay: 0s; }
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.form-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  display: none;
  font-family: "Inter", Sans-Serif;
  font-size: clamp(18px, 1.25vw, 24px);
  font-weight: 400;
}
.form-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}
.form-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}
@media (max-width: 440px){
  .form-message {
    font-size: 12px;
  }
}
.submit-button:hover {
  background-color: #06472f;
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loader-dots {
  font-size: 1.2em;
  letter-spacing: 2px;
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@media (max-width: 440px) {
  .form-message {
    font-size: 0.8rem;
  }
}