/* Nanhey Dil - additions on top of nanheydil-styles.css (server error banner, field-stack, combo dropdown). */

.field-error-banner {
  display: block;
  background: #fdecea;
  border: 1px solid #e8a39b;
  color: #8a2316;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.field-success-banner {
  display: block;
  background: #e4f4e8;
  border: 1px solid #8fc9a1;
  color: #0b5a2b;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.field-stack { display: flex; flex-direction: column; gap: .9rem; }

.counter .btn-icon { min-width: 2.6rem; padding: 0.5rem 0.9rem; }

/* Summary bar: stack on narrow screens so the button never gets squeezed off */
@media (max-width: 640px) {
  .summary-inner { flex-wrap: wrap; row-gap: .6rem; }
  .summary-info { flex: 1 1 100%; min-width: 0; }
  .summary-line { white-space: normal; line-height: 1.4; word-break: break-word; }
  #confirm-btn { flex: 1 1 100%; width: 100%; }
}

/* Custom searchable dropdown for city/theatre (works on every browser, incl. iOS Safari) */
.combo { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 15rem; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: .6rem;
  z-index: 50; box-shadow: 0 12px 30px rgba(13,44,91,.18);
}
.combo-item { padding: .7rem .9rem; font-size: .92rem; color: var(--navy); cursor: pointer; }
.combo-item:hover, .combo-item.active { background: var(--green-soft); color: var(--green); }
.combo-empty { padding: .7rem .9rem; font-size: .85rem; color: var(--muted); }
