@charset "UTF-8";

/* ========================================
   Contact page
======================================== */
.contact-page .site-header {
  background: #fff;
}

.contact-page-main {
  padding-top: 100px;
  background: #fff;
}

.contact-form-section {
  padding: 70px 32px 120px;
  background: #fff;
}

.contact-form-section__inner {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.contact-page-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 80px;
  text-align: center;
}

.contact-page-heading h1 {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1;
}

.contact-page-heading > span {
  width: 42.5px;
  height: 1px;
  background: #dedfe4;
}

.contact-form {
  width: 100%;
  color: var(--color-text);
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 400;
}

.contact-form label {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 50px 0 0;
  font-weight: 500;
  line-height: 30px;
}

.contact-form label:first-of-type {
  margin-top: 0;
}

.contact-form__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 60px;
  width: 60px;
  height: 30px;
  margin-right: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.contact-form input,
.contact-form textarea {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
}

.contact-form input:not([type="submit"]),
.contact-form textarea {
  width: 100%;
  margin-top: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #747a88;
  outline: 0;
  line-height: 30px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:not([type="submit"]):focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 1px 0 var(--color-primary);
}

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

.contact-form__name-fields {
  display: flex;
  gap: 7%;
  width: 100%;
}

.contact-form__name-fields input {
  flex: 1 1 0;
  min-width: 0;
}

.contact-form__alert {
  min-height: 24px;
  margin: 40px 0 0;
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
}

.contact-form__alert.is-error {
  color: #d03030;
}

.contact-form input[type="submit"] {
  display: block;
  width: 300px;
  height: 60px;
  margin: 24px auto 0;
  border-radius: 100px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.contact-form input[type="submit"]:disabled {
  opacity: .5;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .contact-form input[type="submit"]:not(:disabled):hover {
    background: #193f6d;
    box-shadow: 0 8px 20px rgba(18, 57, 101, .2);
    transform: translateY(-2px);
  }
}

@media (max-width: 999px) {
  .contact-form-section {
    padding: 64px 32px 100px;
  }

  .contact-page-heading {
    margin-bottom: 60px;
  }
}

@media (max-width: 1150px) {
  .contact-page-main {
    padding-top: 53px;
  }
}

@media (max-width: 599px) {
  .contact-form-section {
    padding: 50px 16px 80px;
  }

  .contact-page-heading {
    gap: 14px;
    margin-bottom: 50px;
  }

  .contact-page-heading h1 {
    font-size: 30px;
  }

  .contact-form {
    font-size: 16px;
  }

  .contact-form label {
    margin-top: 40px;
  }

  .contact-form__required {
    flex-basis: 52px;
    width: 52px;
    height: 26px;
    font-size: 12px;
  }

  .contact-form__name-fields {
    gap: 16px;
  }

  .contact-form__alert {
    margin-top: 32px;
  }

  .contact-form input[type="submit"] {
    width: min(300px, 100%);
    margin-top: 20px;
  }
}
