/* ================================
   LAYOUT
================================ */

#container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
}

.row {
  display: flex;
  width: 100%;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.column {
  padding: 1rem;
}

/* 40% FORM / 60% MAP */
.col-form {
  flex: 0 0 40%;
  max-width: 500px;
}

.col-map {
  flex: 0 0 60%;
}

/* ================================
   FORM WRAPPER
================================ */

#routeform {
  background-color: limegreen;
  color: black;
  border-radius: 20px;
  padding: 15px;
  box-shadow: 10px 10px 5px gray;
}

#mapinfo {
  color: white;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 10px;
}

/* ================================
   INPUTS
================================ */

#origin,
#destination {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 8px;
  font-size: 14px;
}

#origin {
  color: darkgreen;
}

#destination {
  color: darkred;
}

input:focus {
  background-color: greenyellow;
  outline: none;
}

/* ================================
   OUTPUT TEXT
================================ */

#output {
  line-height: 1.1;
  text-align: center;
}

#faretxt {
  color: white;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

#distancetxt {
  color: white;
  font-size: 11px;
  line-height: 1;
}

#surge {
  color: crimson;
  font-weight: bold;
  font-size: 15px;
  text-align: center;
}

#surgetwo {
  font-size: 11px;
  text-align: center;
  display: none;
}

#tax {
  font-size: 10px;
  font-style: italic;
  text-align: center;
  display: none;
}

/* ================================
   BUTTONS
================================ */

.btncontainer {
  position: relative;
  height: 60px;
  margin-top: 10px;
}

.btncenter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

#submitBtn,
#resetBtn {
  width: 100%;
  max-width: 220px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid black;
  background-color: white;
  cursor: pointer;
}

#submitBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#resetBtn {
  display: none;
}

/* NEXT BUTTON */
.next-btn {
  width: 90%;
  max-width: 280px;
  margin-top: 15px;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 20px;
  background-color: white;
  color: limegreen;
  border: 1px solid black;
  cursor: pointer;
}

.next-btn:hover {
  background-color: #6c2db9;
  color: white;
  font-weight: bold;
}

/* ================================
   MAP
================================ */

#map {
  width: 100%;
  height: 500px;
  border-radius: 20px;
  box-shadow: 10px 10px 5px gray;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  #container,
  .row {
    flex-direction: column;
  }

  .col-form,
  .col-map {
    max-width: 100%;
    flex: 1 1 auto;
  }

  #map {
    height: 350px;
  }
}
