.search-cockpit-wrap {
  margin-bottom: 32px;
}

.hero-header {
  text-align: center;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-text-main);
}

.hero-title span {
  color: var(--color-strong-cyan);
}

.hero-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-top: 6px;
}

.search-card {
  background: var(--color-surface);
  border: 1px solid var(--color-ash-grey);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1.2fr auto 1.2fr 140px 140px 48px auto;
  gap: 10px;
  align-items: center;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  gap: 4px;
  background: var(--color-eggshell);
  border: 1px solid var(--color-ash-grey);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.input-field-group:focus-within {
  border-color: var(--color-strong-cyan);
  background: var(--color-surface);
}

.field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.text-input {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-main);
  outline: none;
  width: 100%;
}

.date-input-wrap {
  cursor: pointer;
}

.btn-swap {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: var(--color-frosted-blue);
  border: 1px solid var(--color-ash-grey);
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.15s ease;
}

.btn-swap:hover {
  background: var(--color-strong-cyan);
  color: #ffffff;
}

.btn-mode-toggle-inline {
  width: 48px;
  height: 54px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-frosted-blue);
  border: 1px solid var(--color-ash-grey);
  color: var(--color-text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-mode-toggle-inline:hover {
  background: var(--color-strong-cyan);
  color: #ffffff;
}

.btn-search {
  background: var(--color-strong-cyan);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  min-width: 44px;
  transition: opacity 0.15s ease;
}

.btn-search:hover {
  opacity: 0.9;
}

@media (max-width: 960px) {
  .search-form-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
  }
  #group-date-out { grid-column: 1 / 2; }
  #group-date-ret { grid-column: 2 / 3; }
  #btn-toggle-date-mode { grid-column: 3 / 4; width: 48px; }
  .btn-search { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .search-card { padding: 14px; }
  .search-form-grid {
    grid-template-columns: 1fr 1fr 48px;
    gap: 8px;
  }
  .input-field-group:nth-of-type(1) { grid-column: 1 / -1; }
  .btn-swap { grid-column: 1 / -1; justify-self: center; }
  .input-field-group:nth-of-type(2) { grid-column: 1 / -1; }
  #group-date-out { grid-column: 1 / 2; }
  #group-date-ret { grid-column: 2 / 3; }
  #btn-toggle-date-mode { grid-column: 3 / 4; width: 48px; }
  .btn-search { grid-column: 1 / -1; width: 100%; }
  .hero-title { font-size: 1.5rem; }
}
