*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* Hero container */
.contact-hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  min-height: 67.6vh;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blurred background image */
.contact-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/portrait-house.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(7.5px);
}

/* Dark overlay for readability */
.contact-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
}

/* Wrapper for content + form */
.contact-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding-left: 3rem;
  padding-right: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Content layer */
.contact-content {
  text-align: center;
  color: #ffffff;
}

/* Typography */
.contact-content h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.contact-content p {
  font-size: 1rem;
  line-height: 1.63;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.contact-content p a {
  text-decoration: underline;
}

.contact-content p:last-child {
  margin: 0;
}

.contact-content a {
  text-decoration: none;
  color: #ffffff;
}

/* ============================
   CONTACT FORM
   ============================ */

.contact-form {
  width: 100%;
  display: grid;
  gap: 1.5rem;
  max-width: 33rem;
}

/* Inputs */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1rem;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.63;
  border-radius: 8px;
  border: none;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  max-width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #646564;
}

/* Button */
.contact-form button {
  width: fit-content;
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  transition: 200ms ease-in-out;
}

.contact-form button:hover {
  background-color: #e22726;
}

/* =========================================================
   MEDIA QUERIES
   ========================================================= */

@media screen and (min-width: 720px) {
  .contact-content {
    padding-top: 6rem;
  }

  .contact-form {
    padding-bottom: 6rem;
  }

  .contact-inner {
    gap: 3rem;
  }
}

@media screen and (max-width: 719px) {
  .contact-content {
    padding-top: 3rem;
  }

  .contact-form {
    padding-bottom: 3rem;
  }

  .contact-inner {
    gap: 1.5rem;
  }
}
