* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-container {
  width: 100%;
  height: 280px;
}

.bg-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: -1;
}

.bg-image {
  width: 100%;
  height: 100%;
}

.header-container {
  position: relative;
  padding: 1.25rem 1.5rem;
  top: -230px;
  text-align: center;
}

.header-text {
  color: #fff;
  font-weight: 500;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.input-container {
  display: flex;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.input-field {
  font-size: 1rem;
  color: #2c2c2c;
  padding: 1rem 1.5rem;
  border-radius: 10px 0 0 10px;
  border: none;
  width: 100%;
  outline: none;
  cursor: pointer;
}

.input-field::placeholder {
  color: #a9a9a9;
}

input.error::placeholder {
  color: #e74c3c;
  font-style: italic;
}

.button {
  background-color: #000;
  padding: 1rem;
  border-radius: 0 10px 10px 0;
  border: none;
  cursor: pointer;
}

.ip-location-details {
  background-color: white;
  border-radius: 15px;
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: -3rem auto 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  top: -120px;
  z-index: 2;
}

.location-details-container {
  flex: 1;
  text-align: start;
  padding: 0 1.5rem;
  border-right: 1px solid #e0e0e0;
}

.location-details-container h2 {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a9a9a9;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.location-details-container p {
  font-size: 1.25rem;
  font-weight: 500;
  color: #050404;
}

.location-details-container:last-child {
  border-right: none;
}

.map-container {
  flex: 1;
  position: relative;
  z-index: 1;
}

#map {
  height: 100%;
  width: 100%;
  min-height: 400px;
}

@media (max-width: 768px) {
  .ip-location-details {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    top: -160px;
    width: 90%;
  }

  .input-field {
    padding: 0.875rem 1rem;
  }

  .location-details-container {
    text-align: center;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
  }

  .location-details-container:last-child {
    border-bottom: none;
  }

  .map-container {
    width: 100%;
    height: 100vh;
  }

  #map {
    height: 100%;
    width: 100%;
  }
}
