@font-face {
  font-family: Raleway;
  src: url("Raleway-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.contact {
  padding: 80px 32px 110px;
  background: var(--ink);
}

.contact-inner {
  max-width: 828px;
  text-align: center;
}

.contact h2 {
  margin: 0 0 40px;
  font-family: Raleway, Arial, sans-serif;
  font-size: 42px;
  font-weight: 250;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.contact .intro {
  margin: 0 0 40px;
  color: var(--light);
  font-family: Raleway, Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 40px;
}

.contact-form {
  width: 100%;
  max-width: 828px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 312fr) minmax(0, 492fr);
  align-items: stretch;
  gap: 18px 24px;
  text-align: left;
}

.contact-form .details {
  gap: 14px;
}

.contact-form .names {
  grid-template-columns: 1fr;
  gap: 14px;
}

.contact-form .field {
  gap: 8px;
}

.contact-form label {
  color: var(--light);
  font-family: Raleway, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 20px;
}

.contact-form .required-mark {
  color: #cdb18a;
  display: inline-block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  padding-left: 2px;
  vertical-align: 1px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #aab8b9;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--light);
  font-family: Raleway, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 12px 14px;
}

.contact-form input {
  height: 50px;
  min-height: 50px;
}

.contact-form .message textarea {
  height: 330px;
  min-height: 330px;
  resize: vertical;
}

.contact-form .form-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.contact-form .form-bottom button {
  width: 100%;
  min-height: 50px;
  border: 1px solid #a37b45;
  border-radius: 0;
  background: #989792;
  color: #031e26;
  font-family: Raleway, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 12px 20px;
  transition: background-color 120ms ease, color 120ms ease;
}

.contact-form .form-bottom button:hover {
  background: #b3a891;
  color: #031e26;
}

.contact-form .form-bottom button:focus-visible {
  outline: 3px solid #e3c291;
  outline-offset: 4px;
}

.contact-form .form-bottom .success-message {
  margin: 4px 0 0;
  color: #d8f2df;
  font-family: Raleway, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

.contact-form .form-bottom p {
  margin: 0;
  color: #b7c5c7;
  font-family: Raleway, Arial, sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 700px) {
  .contact {
    padding: 64px 24px 58px;
  }

  .contact h2 {
    margin-bottom: 20px;
    font-size: 38px;
  }

  .contact .intro {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.7;
  }

  .contact-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .contact-form .details,
  .contact-form .names {
    gap: 14px;
  }

  .contact-form .message textarea {
    height: 250px;
    min-height: 250px;
  }

  .contact-form .form-bottom {
    gap: 10px;
  }

  .contact-form .form-bottom .success-message {
    margin-top: 6px;
  }
}
