/* mod_cruise_hero_finder — self-contained styles, ch- namespaced. */

.ch-hero {
  --ch-accent: #0f6e5c;
  --ch-accent-dark: #0b4f42;
  --ch-border: #e0e0e0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ch-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 180px;
  min-width: 160px;
}

.ch-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
}

.ch-pier-select,
.ch-experience-select {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--ch-border);
  border-radius: 8px;
  font-size: 0.92rem;
  background: #fff;
  color: #222;
}

.ch-submit-btn {
  flex: 0 0 auto;
  background: var(--ch-accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.ch-submit-btn:hover {
  background: var(--ch-accent-dark);
}

@media (max-width: 560px) {
  .ch-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .ch-field {
    /* Without this, the 180px flex-basis set above (which sizes WIDTH
       while flex-direction is row) instead sizes HEIGHT once flex-
       direction switches to column here — forcing each field to be
       180px tall regardless of its actual content. */
    flex-basis: auto;
  }
  .ch-submit-btn {
    width: 100%;
  }
}
