.form-container, .thanks-container {
  padding: 60px 0;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

@media screen and (max-width: 1024px) {
  .form-container {
    padding: 20px 20px 60px 20px;
  }
}

.form-parts:has(.form-lead) + * {
  margin-top: 40px;
}

.form-parts + .form-parts {
  margin-top: 20px;
}

.form-scroll {
  overflow-y: scroll;
  border: 1px solid #ccc;
  max-height: 200px;
  padding: 20px;
}

* + .form-text {
  margin-top: 40px;
}

.question-title {
  font-size: 1.4rem;
  font-weight: bold;
}

.question-title + * {
  margin-top: 4px;
}

.question-contents {
  width: 100%;
}

.question-contents > select,
.question-contents > input,
.question-contents > textarea {
  padding: 10px;
  width: 100%;
  border: 1px solid #CCC;
  border-radius: 3px;
}

.question-contents > textarea {
  height: 300px;
}

div:has(> .button--general) {
  display: grid;
  place-items: center;
}

.button--general {
  margin-top: 40px;
  transition: background-color .3s, color .3s;
}

@media (hover: hover) {
  .button--general:hover {
    cursor: pointer;
    color: #e6002d;
  }
}

.error-message {
  color: #e6002d;
  margin-top: 2px;
}

.thanks-container {
  text-align: center;
}

.thanks-title {
  font-size: 2rem;
  font-weight: bold;
  color: #e6002d;
}

.thanks-title + * {
  margin-top: 20px;
}

.thanks-from {
  margin-top: 12px;
  font-size: 1.4rem;
}