.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-page main {
  width: 100%;
  flex: 1;
}

.contact-head {
  padding-bottom: 34px;
}

.contact-head__text {
  max-width: 480px;
  margin: 0 auto;
  color: #ffb3c7;
  font-size: 18px;
  line-height: 1.45;
}

.contact-form {
  width: 800px;
  max-width: 100%;
  margin: 0 auto 30px;
  padding: 48px 60px 22px 52px;
  color: #19212c;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.contact-form__row {
  display: flex;
  gap: 20px;
}

.contact-form__row .contact-form__field {
  width: calc(50% - 10px);
}

.contact-form__field {
  margin-bottom: 22px;
}

.contact-form__field label {
  display: block;
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.contact-form__field input,
.contact-form__field textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  color: #19212c;
  background: #f3f4f6;
  border: 1px solid transparent;
  max-height: 300px;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.contact-form__field input {
  height: 52px;
}

.contact-form__field textarea {
  min-height: 176px;
  resize: vertical;
}

.contact-form__field input:hover,
.contact-form__field textarea:hover {
  background: #eceef1;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  background: #fff;
  border-color: #ca09ff;
  box-shadow: 0 0 0 4px rgba(202, 9, 255, 0.12);
}

.contact-form__field input[aria-invalid="true"],
.contact-form__field textarea[aria-invalid="true"] {
  border-color: #d82e5b;
}

.contact-form__submit {
  min-width: 190px;
  min-height: 52px;
  padding: 13px 24px;
  border: 0;
  border-radius: 26px;
  color: #fff;
  background: #ca09ff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, opacity 0.2s;
}

.contact-form__submit:hover {
  background: #ad00dd;
  transform: translateY(-2px);
}

.contact-form__submit:focus-visible {
  outline: 3px solid rgba(202, 9, 255, 0.3);
  outline-offset: 3px;
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.contact-form__status {
  min-height: 22px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 22px;
}

.contact-form__status.is-success {
  color: #18794e;
}

.contact-form__status.is-error {
  color: #b42348;
}

.contact-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-page .footer__links {
  text-align: right;
}

.contact-page .footer__links a[aria-current="page"] {
  color: #fff;
}

@media (max-width: 768px) {
  .contact-head {
    padding-bottom: 28px;
  }

  .contact-head__text {
    padding: 0 25px;
    font-size: 16px;
  }

  .contact-form {
    padding: 28px 24px 32px;
    border-radius: 24px;
  }

  .contact-form__row {
    display: block;
  }

  .contact-form__row .contact-form__field {
    width: 100%;
  }

  .contact-form__field {
    margin-bottom: 18px;
  }

  .contact-form__submit {
    width: 100%;
  }

  .contact-page .footer {
    padding-top: 28px;
  }

  .contact-page .footer__links {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-head .head__h1 {
    font-size: 31px;
  }

  .contact-form {
    padding-right: 18px;
    padding-left: 18px;
  }

  .contact-page .footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .contact-page .footer__links a {
    margin: 0;
  }
}
