/* RESET */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
  background: #0f172a;
}

/* HERO SECTION */
.hero {
  height: 100vh;
  background-image: url("../images/bg-mobile.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

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

/* Desktop override */
@media (min-width: 768px) {
  .hero {
    background-image: url("../images/bg-desktop.webp");
  }
}
.hero {
  background-attachment: scroll;
}

/* OVERLAY */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.6)
  );
}

/* CONTENT */
.hero-content {
  position: absolute;
  left: 10%;
  top: 75%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 1;

  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.hero p {
  font-size: 20px;
  margin-bottom: 20px;
}

.hero button {
  padding: 12px 24px;
  background: #3b82f6;
  border: none;
  color: white;
  cursor: pointer;
}

.hero button:hover {
  opacity: 0.85;
  transition: 0.3s;
}

/* FORM SECTION */
.form-section {
  padding: 60px 20px;
  text-align: center;
  background: #020617;
}

.form-section h2 {
  margin-bottom: 20px;
}

/* INPUTS */
input,
textarea {
  display: block;
  width: 90%;
  max-width: 400px;
  margin: 10px auto;
  padding: 10px;
  border-radius: 5px;
  border: none;
}
select {
  display: block;
  width: 95%;
  max-width: 422px;
  margin: 10px auto;
  padding: 10px;
  border-radius: 5px;
  border: none;
}
textarea {
  resize: none;
  height: 80px;
}


/* BUTTON */
button {
  padding: 10px 20px;
  background: #22c55e;
  border: none;
  cursor: pointer;
}

button:active {
  transform: scale(0.97);
}

/* SUCCESS MESSAGE */
#successMessage {
  text-align: center;
}

/* ANIMATION */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HAMBURGER ICON */
.menu-icon {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  cursor: pointer;
}

.menu-icon div {
  width: 30px;
  height: 3px;
  background: white;
  margin: 6px 0;
  transition: 0.3s;
}

/* SIDE MENU */
.side-menu {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #020617;
  padding-top: 60px;
  transition: 0.3s;
  z-index: 999;
}

.side-menu a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
}

.side-menu a:hover {
  background: #1e293b;
}

.side-menu.active {
  left: 0;
}

/* OVERLAY */
.overlay {
  position: fixed;
  inset: 0;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* MENU ANIMATION */
.menu-icon.active div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-icon.active div:nth-child(2) {
  opacity: 0;
}

.menu-icon.active div:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== LAYOUT ===== */
.form-wrapper {
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: stretch;
}

.form-box {
  flex: 1;
}

/* MAP */
#map {
  flex: 1;
  width: 100%;
  height: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* MOBILE FIXES */
@media (max-width: 768px) {
  .form-wrapper {
    flex-direction: column; /* Stack vertically */
    padding: 10px;
  }

  .form-box {
    width: 100%;
    order: 1; /* Move form to bottom */
  }

  #map {
    order: 2; /* Move map to top */
    width: 100% !important;
    height: 350px !important; /* FORCED HEIGHT FOR MOBILE */
    min-height: 350px;
    display: block !important;
    margin-bottom: 20px;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
#map-search {
  width: 100%;
  max-width: 400px;
  margin: 10px auto;
  padding: 10px;
  border-radius: 5px;
  border: none;
  display: block;
}
