/* Reset & base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* HERO */
.contact-hero {
  position: relative;
  width: 100%;
  height: 80vh;               /* adjust as needed */
  overflow: hidden;
}
.contact-hero__bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* cover the section */
  z-index: -1;                /* behind the title */
}
.contact-hero__title {
  position: absolute;
  bottom: 20px;   /* 20px up from the bottom */
  left: 20px;    /* 20px in from the right */
  color: #fff;
  font-size: 5rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* CONTAINER */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* MAP */
.map {
  flex: 1 1 300px;
  min-width: 300px;
  height: 400px;
  border: 2px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
}

/* FORM */
.contact-form {
  flex: 1 1 300px;
  min-width: 300px;
}
#js-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#js-contact-form label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
}
#js-contact-form input,
#js-contact-form textarea {
  padding: 0.5rem;
  border: 1px solid #888;
  border-radius: 4px;
  font-size: 1rem;
}
#js-contact-form button {
  padding: 0.75rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#js-contact-form button:hover {
  background: #555;
}
#form-status {
  margin-top: 1rem;
  font-style: italic;
}


/* ============================= */
/* Tablet (≤1024px)              */
/* ============================= */
@media screen and (max-width: 1024px) {
  /* HERO */
  .contact-hero {
    height: 60vh;
  }
  .contact-hero__title {
    font-size: 3.5rem;
    bottom: 15px;
    left: 15px;
  }

  /* CONTAINER */
  .contact-container {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  /* MAP & FORM */
  .map,
  .contact-form {
    flex: 1 1 100%;
    min-width: unset;
  }
  .map {
    height: 300px;
  }

  /* FORM inputs/buttons */
  #js-contact-form input,
  #js-contact-form textarea {
    font-size: 0.95rem;
    padding: 0.4rem;
  }
  #js-contact-form button {
    font-size: 1rem;
    padding: 0.6rem;
  }
}

/* ============================= */
/* Mobile (≤768px)               */
/* ============================= */
@media screen and (max-width: 768px) {
  /* HERO */
  .contact-hero {
    height: 50vh;
  }
  .contact-hero__title {
    font-size: 2.5rem;
    bottom: 10px;
    left: 10px;
  }

  /* CONTAINER */
  .contact-container {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  /* MAP */
  .map {
    width: 100%;
    height: 200px;
    border-radius: 6px;
  }

  /* FORM */
  .contact-form {
    width: 100%;
  }
  #js-contact-form label {
    font-size: 0.95rem;
  }
  #js-contact-form input,
  #js-contact-form textarea {
    padding: 0.4rem;
    font-size: 0.9rem;
  }
  #js-contact-form button {
    padding: 0.5rem;
    font-size: 0.95rem;
  }
  #form-status {
    font-size: 0.9rem;
  }
}
