* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: #000;
  font: 14px Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.search-panel {
  margin: 0 5px;
  overflow: visible;
  border: 5px solid #31627a;
  border-radius: 8px;
  background: #31627a;
}

.search-title {
  padding: 6px 5px 10px;
  color: #fff;
  text-align: center;
  font-size: 16px;
  line-height: 26px;
}

#frmTSearch1 {
  padding: 20px 10px;
  background: #fff;
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 10px 4px;
  align-items: center;
}

.city-field,
.date-field {
  position: relative;
  min-width: 0;
}

.date-field {
  grid-column: 1;
}

.search-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 8px;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  background: #fff;
  color: #111;
  font-size: 16px;
}

.city-input {
  padding-right: 28px;
}

.city-field::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 10px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: #777;
  pointer-events: none;
}

.search-input:focus,
.search-button:focus-visible,
.exchange:focus-visible {
  outline: 2px solid #d75b00;
  outline-offset: 1px;
}

.exchange {
  width: 28px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2d9b45;
  cursor: pointer;
  font-size: 25px;
  line-height: 34px;
}

.search-button {
  grid-column: 3;
  justify-self: center;
  min-width: 100px;
  height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: 18px;
  background: #c94f00;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
}

.search-button:hover {
  background: #ac4300;
}

.search-icon {
  display: inline-block;
  position: relative;
  width: 13px;
  height: 13px;
  margin-right: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
  vertical-align: -1px;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -2px;
  width: 6px;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.city-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 160px;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  border: 1px solid #bbb;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  list-style: none;
}

.city-list[hidden] {
  display: none;
}

.city-option {
  padding: 7px 8px;
  cursor: pointer;
  line-height: 20px;
}

.city-option[aria-selected="true"],
.city-option:hover {
  background: #31627a;
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media screen and (max-width: 600px) and (max-device-width: 600px) {
  .mobile-title-hidden {
    display: none;
  }
}

@media (max-width: 365px) {
  .search-panel {
    margin: 0;
  }

  #frmTSearch1 {
    padding: 15px 10px;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .exchange {
    display: none;
  }

  .date-field,
  .search-button {
    grid-column: 1;
  }
}
