/* =========================
   Contact section layout
   ========================= */

.section-contact {
  padding-top: 100px;
  padding-bottom: 160px;
  position: relative;
}

.contact-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4rem;
  padding-right: 4rem;
}

.contact {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  grid-column-gap: 10rem;
  grid-row-gap: 10rem;
}

/* If you still wrap form in .form-block you can keep this */
.form-block {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.form {
  display: flex;
  flex-flow: column;
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.input-flex {
  display: flex;
  justify-content: space-between;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
}

.input-100 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.message-area {
  display: flex;
  flex-flow: column;
  justify-content: space-between;
  grid-column-gap: 16px;
  grid-row-gap: 16px;
}

/* =========================
   Labels + fields
   ========================= */

.field-label {
  opacity: 0.7;
  color: #fff;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-family: Clashdisplay Variable, Arial, sans-serif;
  font-size: .75rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.text-field {
  width: 100%;  
  color: var(--colors--white);
  background-color: #080808;
  border: 1px solid #ffffff1f;
  height: 56px;
  margin-bottom: 10px;
  padding: 0 16px;
  font-family: Clashdisplay Variable, Arial, sans-serif;
  font-weight: 500;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}

.text-field:hover,
.text-field:focus {
  border-color: #ffffff3b;
  box-shadow: 0 0 0 1px #ffffff1f;
  outline: none;
}

.text-field::placeholder {
  color: #ffffff8d;
  font-size: 1rem;
  font-weight: 400;
}

.text-field.area {
  height: auto;
  padding-top: 20px;
  padding-bottom: 70px;
  resize: vertical;
  min-height: 160px;
  overflow: auto;
}

/* =========================
   Submit button
   ========================= */

.submit-button {
  color: #d8d8d8;
  background-color: transparent;
  border: 1px solid #ffffff40;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 22px;
  font-family: Clashdisplay Variable, Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color .3s, background-color .3s, border-color .3s;
  cursor: pointer;
}

.submit-button:hover {
  color: var(--colors--white);
  background-color: #282828;
  border-color: #ffffff80;
}

/* Loading state from JS (.is-loading) */
.submit-button.is-loading {
  opacity: 0.7;
  cursor: wait;
  pointer-events: none;
}

/* =========================
   Messages (title / email)
   ========================= */

.contact-title {
  font-family: var(--font--heading);
  text-align: center;
  text-transform: uppercase;
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 3rem;
}

.section-contact-top {
  padding-top: 160px;
}

.top-contact-wrap {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 4rem;
  padding-right: 4rem;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}

/* Email link under the form */

.email-note-link {
  display: flex;
  grid-column-gap: 2px;
  grid-row-gap: 2px;
  justify-content: center;
  align-items: flex-end;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  transition: color .3s;
}

.email-note-link:hover {
  color: var(--colors--accent);
}

.email-note-link.email-note {
  font-weight: 300;
}

.email-note {
  color: var(--colors--white);
  font-family: Clashdisplay Variable, Arial, sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 100%;
}

.icon-arrow-up {
  width: 2.6rem;
  height: 2.6rem;
}

/* =========================
   Success / error messages
   (for .form-message elements)
   ========================= */

.form-message {
  margin-top: 16px;
  font-family: Clashdisplay Variable, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 16px;
}

/* Success */
.form-message--success {
  background-color: #73e87f;
  color: #031005;
}

/* Error */
.form-message--error {
  background-color: #f71818;
  color: #fff;
}

/* Respect [hidden] attribute (JS toggles this) */
.form-message[hidden] {
  display: none !important;
}

/* =========================
   Old Webflow messages
   (safe to keep if used elsewhere)
   ========================= */

.success-message {
  text-transform: uppercase;
  background-color: #73e87f;
  font-family: Clashdisplay Variable, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.error-message {
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  background-color: #f71818;
  margin-top: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  font-family: Clashdisplay Variable, Arial, sans-serif;
  font-weight: 500;
}

/* =========================
   Responsive tweaks
   ========================= */

@media screen and (max-width: 767px) {
  .contact-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

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

  .input-flex {
    flex-flow: column;
  }

  .text-field {
    font-size: 16px;
  }

  .submit-button {
    max-width: 100%;
  }

  .contact-title {
    font-size: 3rem;
  }

  .email-note {
    font-size: 20px;
  }

  .icon-arrow-up {
    width: 1.4rem;
    height: 1.4rem;
  }
}
