.contact-inner:has(.contact-form) {
  align-items: start;
}

.contact-inner:has(.contact-form) .contact-copy {
  position: sticky;
  top: 96px;
  align-self: start;
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: 28px 28px 24px;
  border-radius: 8px;
  background: #fff;
  color: #243044;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-field label,
.form-label {
  display: block;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.form-field .req {
  margin-left: 2px;
  color: #e23b3b;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background-color: #f2f3f5;
  color: #243044;
  font: inherit;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select {
  height: 48px;
  padding: 0 14px;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23243044' d='M1.4 0 6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
}

.contact-form textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.form-checks {
  display: grid;
  gap: 10px;
}

.contact-form .check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.contact-form .check-item input {
  width: 16px;
  height: 16px;
  margin-top: 5px;
}

.contact-form .check-item span {
  min-width: 0;
}

.inquiry-other-text {
  margin-top: 12px;
}

.form-privacy {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
}

.form-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-result {
  align-content: start;
}

.contact-confirm {
  display: grid;
  gap: 22px;
}

.form-result-title {
  margin: 0;
  color: #243044;
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
  text-align: center;
}

.form-result-lead {
  margin: 0;
  color: #243044;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
}

.confirm-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.confirm-row dt {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.confirm-row dd {
  margin: 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f2f3f5;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.form-errors {
  display: grid;
  gap: 8px;
}

.form-errors .error_messe {
  margin: 0;
  color: #e23b3b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.form-actions button[type="button"] {
  border: 1px solid #d5d7dc;
  background: #fff;
  color: #243044;
}

.form-actions button:disabled {
  opacity: 0.6;
}

.form-actions button {
  min-height: 48px;
  padding: 0 68px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.form-actions button[type="submit"] {
  border: 1px solid #000;
  background: #000;
  color: #fff;
  transition: background-color 180ms ease, color 180ms ease;
}

.form-actions button[type="submit"]:hover {
  background: #fff;
  color: #111;
}

@media (max-width: 780px) {
  .contact-inner:has(.contact-form) .contact-copy {
    position: static;
  }

  .contact-form {
    padding: 22px 18px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .form-actions {
    justify-content: center;
  }
}
