/* BusFlow — upit.html: kratki upit (e-mail, broj vozila, poruka) s gumbom za termin ispod i „Što slijedi“ uz bok.
   Polja, čipovi i potvrda nakon slanja su zajednički s putnom kartom na početnim stranicama (style.css). */

.upit-body { min-height: 100svh; display: flex; flex-direction: column; background: var(--ground-3); }

/* Zaglavlje upita */
.upit-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ground);
  border-bottom: var(--border);
}
.upit-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}
.upit-header__title { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.upit-header__title strong { font-size: 16px; font-weight: 700; white-space: nowrap; }
.upit-header__short { display: none; }
.upit-header__title > span { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.upit-header__close {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text);
}
.upit-header__close:hover { background: var(--ground-2); }
.upit-header__actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.upit-header__lang {
  display: inline-grid;
  place-items: center;
  min-width: 44px; height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-decoration: none;
}
.upit-header__lang:hover { background: var(--ground-2); color: var(--text); }

/* Tijelo: obrazac + strana */
.upit-main { flex: 1; padding: 40px 0 96px; }

/* Pravne poveznice na dnu upita (Impressum mora biti dostupan sa svake stranice) */
.upit-legal { background: var(--ground-3); border-top: var(--border); }
.upit-legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-2);
}
.upit-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.upit-legal a { color: var(--text-2); text-decoration: none; }
.upit-legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.upit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.upit-card { padding: 32px; display: flex; flex-direction: column; gap: 24px; box-shadow: var(--shadow-card); }
.upit-card__head { display: flex; flex-direction: column; gap: 10px; }
.upit-card__head h1 { font-size: clamp(34px, 4vw, 46px); }
.upit-card__head p { font-size: 16px; line-height: 1.55; color: var(--text-2); }

.upit-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px dashed rgba(var(--ink-rgb), 0.25);
}
.upit-foot__note { display: flex; align-items: flex-start; gap: 8px; max-width: 380px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.upit-foot__note svg { flex-shrink: 0; margin-top: 1px; }
.upit-foot__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Strana: što slijedi */
.upit-side { display: flex; flex-direction: column; gap: 16px; }
.upit-next { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.upit-next h2 { font-size: 24px; }
.upit-next ol { display: flex; flex-direction: column; gap: 12px; counter-reset: k; }
.upit-next ol li { display: flex; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--text-2); counter-increment: k; }
.upit-next ol li::before {
  content: counter(k);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.upit-next ol li strong { color: var(--text); }
.upit-side__note { font-size: 13px; color: var(--text-2); }
.upit-side__note a { white-space: nowrap; }

/* Mobilno */
@media (max-width: 900px) {
  .upit-grid { grid-template-columns: 1fr; gap: 20px; }
  .upit-header__title > span { display: none; }
  .upit-header__title strong { overflow: hidden; text-overflow: ellipsis; }
  .upit-main { padding: 20px 0 64px; }
  .upit-card { padding: 22px 18px; }
  .upit-foot .btn { width: 100%; }
}

/* Telefoni: kratak naslov u zaglavlju (puni naslov ne stane uz logo, jezik i zatvaranje); na 320 px samo logo i gumbi */
@media (max-width: 480px) {
  .upit-header__long { display: none; }
  .upit-header__short { display: inline; }
}
@media (max-width: 340px) {
  .upit-header__title { display: none; }
}
