.od-route-box {
  align-self: center;
  justify-self: end;
  width: 320px;
  background: #ffffff;
  color: #061f47;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
  scroll-margin-top: 120px;
  outline: none;
}

.od-card-header {
  background: #061f47;
  padding: 8px 22px;
}

.od-card-title.od-card-title {
  display: block !important;
  visibility: visible !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
}

.od-card-stat {
  margin: 1px 0 0;
  color: #ffc400;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.od-card-body {
  padding: 18px 22px 22px;
}

.od-form-hint {
  margin: 0 0 14px;
  color: #526176;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 650;
}

.od-chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.od-chip-label {
  color: #526176;
  font-size: 10px;
  font-weight: 700;
  margin-right: 2px;
}

.od-chip {
  border: 1px solid #d8deea;
  background: #f4f6fb;
  color: #07346b;
  font-size: 10.5px;
  font-weight: 650;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.od-chip:hover,
.od-chip:focus-visible {
  background: #e8edf8;
  border-color: #07346b;
}

.od-route-box.od-attention {
  animation: odFormPulse 1.35s ease-out 0s 2;
}

@keyframes odFormPulse {
  0% {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20), 0 0 0 0 rgba(255, 196, 0, 0.95);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20), 0 0 0 9px rgba(255, 196, 0, 0.45);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20), 0 0 0 0 rgba(255, 196, 0, 0);
    transform: scale(1);
  }
}

.od-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.od-input {
  position: relative;
  margin-bottom: 11px;
}

.od-input-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #07346b;
  font-size: 13px;
  pointer-events: none;
}

.od-input input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d8deea;
  border-radius: 7px;
  color: #061f47;
  background: #ffffff;
  font-size: 13px;
  outline: none;
}

.od-input input[type="text"] {
  padding-left: 32px;
}

.od-input input::placeholder {
  color: #66758c;
}

.od-input input:focus {
  border-color: #07346b;
  box-shadow: 0 0 0 2px rgba(7, 52, 107, 0.12);
}

.od-input input[aria-invalid="true"] {
  border-color: #b00020;
  box-shadow: 0 0 0 2px rgba(176, 0, 32, 0.12);
}

.od-route-box .od-swap-btn {
  display: block;
  margin: -4px 5px 5px auto;
  border: none !important;
  background: transparent !important;
  color: #07346b !important;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  width: auto;
  height: auto;
}

.od-error {
  display: none;
  margin: 0 0 8px;
  color: #b00020;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 750;
}

.od-submit {
  width: 100%;
  height: 42px;
  margin-top: 2px;
  border: none;
  border-radius: 7px;
  background: #07346b;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.od-submit:hover,
.od-submit:focus {
  background: #052850;
  transform: translateY(-1px);
}

.od-note {
  position: relative;
  margin: 13px 0 0;
  padding-left: 16px;
  color: #526176;
  font-size: 10px;
  line-height: 1.45;
  font-weight: 550;
}

.od-note::before {
  content: "▧";
  position: absolute;
  left: 0;
  top: 0;
  color: #526176;
}

/* Focus ring shared with card inputs */
.od-swap-btn:focus-visible,
.od-submit:focus-visible,
.od-input input:focus-visible {
  outline: 3px solid rgba(255, 196, 0, 0.95);
  outline-offset: 3px;
}

/* Responsive — card at ≤1080px */
@media (max-width: 1080px) {
  .od-route-box {
    width: 300px;
  }

  .od-card-body {
    padding: 16px 20px 20px;
  }
}

/* Responsive — card at ≤780px */
@media (max-width: 780px) {
  .od-route-box {
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }
}

/* ---------------------------------------------------------------------
 * Custom autocomplete dropdown (replaces the dynamically-built
 * <datalist> that was unreliable inside the Elementor Hero)
 * ------------------------------------------------------------------- */

.od-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 999;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #d8deea;
  border-radius: 7px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  max-height: 200px;
  overflow-y: auto;
}

.od-suggestion-item {
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.35;
  color: #061f47;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-suggestion-item:hover,
.od-suggestion-item.is-active {
  background: #eef2fb;
}

.od-submit:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}