@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap");

:root {
  --darker-grey: hsl(0, 0%, 17%);
  --grey: hsl(0, 0%, 59%);
}

input::-webkit-input-placeholder {
  color: var(--grey);
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Rubik", sans-serif;
  font-size: 1.8rem;
  background-color: #000;
}

h1 {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 500;
  text-align: center;
  padding: 2.5rem;
}

.wrapper {
  width: 144rem;
  height: 80rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.searchSection {
  height: 28rem;
  width: 100%;
  background: url("../images/pattern-bg.png") no-repeat;
  background-size: 144rem 28rem;
}

.searchForm {
  padding-top: 1rem;
  position: relative;
}

.searchBar {
  display: block;
  margin: 0 auto;
  height: 6rem;
  width: 38.2%;
  font-family: inherit;
  font-size: 1.8rem;
  padding-left: 3rem;
  border: none;
  border-radius: 1.5rem;
}

.searchBar:focus {
  outline: none;
}

.searchButton {
  position: absolute;
  top: 1rem;
  right: 30%;
  height: 6rem;
  width: 6rem;
  border-top-right-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
  border: none;
  background-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='14'%3E%3Cpath fill='none' stroke='%23FFF' stroke-width='3' d='M2 1l6 6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.searchButton:hover {
  background-color: var(--darker-grey);
}

.flexContainer {
  z-index: 100;
  display: flex;
  position: absolute;
  background-color: #fff;
  height: 16rem;
  width: 77%;
  border-radius: 1.5rem;
  top: 25.5%;
  left: 11.5%;
  padding: 3.5rem 3rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
}

.col {
  width: 25%;
  text-transform: uppercase;
  color: var(--grey);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.col:not(.col:last-child) {
  margin-right: 1rem;
}

.col:not(.col:first-child) {
  margin-left: 3rem;
}

.verticalLine {
  width: 1px;
  height: 85%;
  margin: auto 0;
  background-color: #ddd;
}

.geoInfo {
  padding-top: 2rem;
  color: black;
  font-weight: 500;
  font-size: 2rem;
  text-transform: capitalize;
  letter-spacing: 0;
  transition: all 0.5s;
}

#mapid {
  height: 52rem;
  z-index: -1;
  background-color: var(--grey);
}

@media (max-width: 1440px) and (min-width: 1130px) {
  .wrapper {
    width: 80vw;
  }

  .searchBar {
    font-size: 1.5rem;
  }
}

@media (max-width: 1129px) {
  .wrapper {
    width: 80vw;
  }
  .col {
    font-size: 1rem;
  }

  .geoInfo {
    font-size: 1.5rem;
    font-weight: 400;
  }

  .searchBar {
    font-size: 1.3rem;
  }
}

@media (max-width: 756px) {
  .wrapper {
    width: 37.5rem;
  }

  .searchSection {
    background-size: cover;
  }

  .searchBar {
    width: 90%;
    font-size: 1.5rem;
    padding-left: 1.5rem;
  }

  .searchButton {
    right: 4.8%;
  }

  .flexContainer {
    width: 90%;
    left: 5%;
    top: 23%;
    padding: 1.5rem;
    flex-direction: column;
    height: 28rem;
    text-align: center;
    align-items: center;
  }

  .verticalLine {
    display: none;
  }

  .col {
    width: 100%;
    height: 25%;
  }

  .col:not(.col:last-child) {
    margin-right: 0;
  }

  .col:not(.col:first-child) {
    margin-left: 0;
  }
  .geoInfo {
    padding: 1.5rem;
    font-weight: 500;
    font-size: 1.8rem;
  }
}
