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

.header-background {
  position: relative;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0)), 
    url("/img/contact_us.png");
  background-repeat: no-repeat;
  background-size: 300%;
  background-position-x: 50%;
  background-position-y: 0%;
  height: 400px;
}

.header-text {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Inter", san-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
}

.contact-details-wrapper {
  font-family: "Inter", sans-serif;
  background: linear-gradient(to bottom, #2478d3, #003976);
  padding: 50px 0;
}

.contact-details {
  display: grid;
  grid-template-rows: 2;
  grid-gap: 50px;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map_container {
    transform: translateY(-200px);
}
.cards-container .card {
  padding: 10px;
  transform: translateY(-200px);
}

.cards-container .card h5{
  color: #575757;
  font-size: 1.35rem;
}

.icon-container {
  width: 25px;
  height: 25px;
}

.contact-number, .email {
  display: flex;
  gap: 10px;
  align-items: start;
}

.cards-container .card .hr-line {
  width: 100%;
  background: #333;
  height: 1px;
  margin-bottom: 5px;
}

.form-container {
  grid-row: 1;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  top: -150px;
  transform: translateY(5%);
  transition: transform .5s linear;
}

.form-container.active {
  transform: translateY(-5%);
}

/* Hide arrows in Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide arrows in Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.submit-btn {
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 30px;
  border: none;
  padding: 10px 15px;
  background: #94C653;
  color: #fff;
}
.submit-btn:hover {
  cursor: pointer;
  background: #85B24A;
  color: #fff;
}


/**** TAB *****/
@media screen and (min-width: 768px) {

  .header-background {
    background-position: center center;
    background-size: 170%;
    height: 600px;
  }

  .header-text {
    font-size: 2.4rem;
  }

}

/***  Desktop ****/

@media screen and (min-width: 1024px) {
    .header-background {
        background-position: center center;
        background-size: 130%;
        height: 800px;
    }

    .contact-details {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto; 
        grid-gap: 50px;
    }

    .contact-text-content {
        top: 0px;
    }

    .form-container {
        grid-column: 2;
    }

    .map_container {
        transform: translateY(0);
    }
    .cards-container .card {
        width: 80%;
    }

}
