/* ==============================
   Contact Page
================================= */

/* Page title */
.page .entry-title {
  margin: 0 0 72px;
  padding: 0;
  text-align: center;
  color: #000;
  font-size: 44px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.12em;
}


/* ==============================
   MW WP Form Wrapper
================================= */

.contact-form-wrap {
  width: 100%;
  max-width: 748px;
  margin: 0 auto;
  padding: 0 0 60px;
  box-sizing: border-box;
}


/* ==============================
   Form
================================= */

.contact-form {
  width: 100%;
  border-top: 1px solid #222;
}


/* Each row */
.contact-form-row {
  display: flex;
  align-items: center;
  min-height: 89px;
  border-bottom: 1px solid #222;
  box-sizing: border-box;
}


/* ==============================
   Label
================================= */

.contact-form-label {
  width: 222px;
  flex: 0 0 222px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px 28px 20px 12px;

  box-sizing: border-box;

  color: #000;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.contact-form-label label {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}


/* ==============================
   Required
================================= */

.contact-form-label .required {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 30px;

  margin-left: 10px;

  background: #ee5369;
  color: #fff;

  font-size: 12px;
  font-weight: 400;
  line-height: 1;

  white-space: nowrap;
  box-sizing: border-box;
}


/* ==============================
   Field area
================================= */

.contact-form-field {
  flex: 1;
  padding: 19px 0 19px 12px;
  box-sizing: border-box;
}


/* ==============================
   Input
================================= */

.contact-form-field input[type="text"],
.contact-form-field input[type="email"],
.contact-form-field input[type="tel"] {
  display: block;

  width: 366px;
  max-width: 100%;
  height: 34px;

  margin: 0;
  padding: 5px 10px;

  background: #fff;
  border: 1px solid #888;
  border-radius: 0;
  box-shadow: none;

  color: #222;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;

  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
}


/* Focus */
.contact-form-field input[type="text"]:focus,
.contact-form-field input[type="email"]:focus,
.contact-form-field input[type="tel"]:focus,
.contact-form-field textarea:focus {
  border-color: #555;
  outline: none;
  box-shadow: none;
}


/* ==============================
   Textarea
================================= */

.contact-form-row--textarea {
  min-height: 224px;
}

.contact-form-row--textarea .contact-form-label {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.contact-form-row--textarea .contact-form-field {
  padding-top: 28px;
  padding-bottom: 28px;
}

.contact-form-field textarea {
  display: block;

  width: 514px;
  max-width: 100%;
  height: 158px;
  min-height: 158px;

  margin: 0;
  padding: 10px;

  background: #fff;
  border: 1px solid #888;
  border-radius: 0;
  box-shadow: none;

  color: #222;

  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;

  resize: vertical;
  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
}


/* ==============================
   MW WP Form Error
================================= */

.contact-form-wrap .error {
  display: block;
  margin-top: 7px;

  color: #ee5369;

  font-size: 12px;
  line-height: 1.5;
}


/* ==============================
   Buttons
================================= */

.contact-form-buttons {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 20px;

  margin-top: 45px;
}

.contact-form-buttons input[type="submit"],
.contact-form-buttons input[type="button"],
.contact-form-buttons button {
  min-width: 200px;
  height: 52px;

  padding: 0 30px;

  border: 1px solid #ee5369;
  border-radius: 0;

  background: #ee5369;
  color: #fff;

  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;

  box-sizing: border-box;
}

.contact-form-buttons input[type="submit"]:hover,
.contact-form-buttons input[type="button"]:hover,
.contact-form-buttons button:hover {
  background: #fff;
  color: #ee5369;
}


/* Back button */
.contact-form-buttons input[name="submitBack"] {
  background: #fff;
  color: #555;
  border-color: #aaa;
}

.contact-form-buttons input[name="submitBack"]:hover {
  background: #eee;
  color: #333;
  border-color: #888;
}


/* ==============================
   MW WP Form Fixes
================================= */

.contact-form-wrap p {
  margin-top: 0;
  margin-bottom: 0;
}

.contact-form-wrap input,
.contact-form-wrap textarea,
.contact-form-wrap button {
  font-family: inherit;
}

.contact-form-field br {
  display: none;
}


/* Confirmation page */
.mw_wp_form_confirm .contact-form-field {
  color: #222;
  font-size: 14px;
  line-height: 1.8;
}


/* ==============================
   Mobile
================================= */

@media screen and (max-width: 767px) {

  /* Page title */
  .page .entry-title {
    margin-bottom: 45px;

    color: #000;

    font-size: 32px;
    line-height: 1.4;
    letter-spacing: 0.08em;
  }


  /* Wrapper */
  .contact-form-wrap {
    width: 100%;
    max-width: none;

    padding: 0 20px 50px;

    box-sizing: border-box;
  }


  /* Row */
  .contact-form-row {
    display: block;

    min-height: 0;

    padding: 20px 0 24px;
  }


  /* Label */
  .contact-form-label {
    width: 100%;
    flex: none;

    justify-content: flex-start;

    gap: 15px;

    padding: 0 0 12px;
  }


  /* Required */
  .contact-form-label .required {
    width: auto;
    height: 24px;

    margin-left: 0;
    padding: 0 7px;

    font-size: 11px;
  }


  /* Fields */
  .contact-form-field {
    width: 100%;
    padding: 0;
  }


  /* Inputs */
  .contact-form-field input[type="text"],
  .contact-form-field input[type="email"],
  .contact-form-field input[type="tel"] {
    width: 100%;
    max-width: 100%;
    height: 44px;
  }


  /* Textarea */
  .contact-form-row--textarea {
    min-height: 0;
  }

  .contact-form-row--textarea .contact-form-label {
    display: flex;
  }

  .contact-form-row--textarea .contact-form-field {
    padding: 0;
  }

  .contact-form-field textarea {
    width: 100%;
    max-width: 100%;

    height: 160px;
    min-height: 160px;
  }


  /* Buttons */
  .contact-form-buttons {
    flex-direction: column;

    gap: 12px;

    margin-top: 35px;
  }

  .contact-form-buttons input[type="submit"],
  .contact-form-buttons input[type="button"],
  .contact-form-buttons button {
    width: 100%;
    min-width: 0;
  }
}

.contact-complete {
  text-align: center;
  padding: 60px 20px 100px;
  font-size: 15px;
  line-height: 2;
  color: #000;
}

.contact-complete-title {
  margin-bottom: 30px;
  font-size: 24px;
  font-weight: 700;
}

@media screen and (max-width: 767px) {
  .contact-complete {
    padding: 40px 20px 70px;
    font-size: 14px;
  }

  .contact-complete-title {
    font-size: 20px;
  }
}