/* Baby Do Die Do — small additions on top of bdd-styles.css for pieces the
   original static mockup didn't need (server error banner, BookMyShow note,
   admin screens). Kept separate so bdd-styles.css stays an unmodified port. */

.field-error-banner {
  display: block;
  background: #3a0d0d;
  border: 1px solid #b0221b;
  color: #ffdada;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.field-success-banner {
  display: block;
  background: #0d3a1a;
  border: 1px solid #1fa34d;
  color: #d9ffe4;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-family: Inter, sans-serif;
  font-size: 14px;
}

.bms-note {
  margin-top: 10px;
  font-family: Inter, sans-serif;
  font-size: 12.5px;
  line-height: 18px;
  color: #b7b1a8;
}

.bms-note a {
  color: #ff4d4d;
  word-break: break-all;
}

/* The original static mockup put the register fields inside a real <form>, which had
   display:flex;flex-direction:column;gap:1.25rem (see bdd-styles.css line ~61) — that's
   where the vertical rhythm between fields came from. WebForms only allows one
   runat="server" <form> per page, so Default.aspx wraps the fields in a plain <div>
   instead; this class restores the exact same spacing on that div. */
.field-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Date field: deliberately NOT built on .select — appearance:none there suppresses
   Chromium's own calendar affordance on <input type="date">, which is exactly what
   caused the picker not to open. Kept as a plain themed input, paired with an explicit
   calendar button (JS calls showPicker()) so opening the calendar never depends on
   clicking the exact right pixel of the browser's native icon. */
.date-field-wrap {
  display: flex;
  gap: 0.6rem;
  max-width: 24rem;
}

.date-field {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  color: var(--off-white);
  border-radius: .5rem;
  padding: .75rem .875rem;
  font-family: Inter, sans-serif;
  font-size: .9rem;
  color-scheme: dark;
}

.date-field:focus {
  border-color: var(--movie-red);
  box-shadow: 0 0 0 3px rgba(196,19,34,.25);
  outline: none;
}

.date-field::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
}

.date-cal-btn {
  flex: 0 0 auto;
  width: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  border-radius: .5rem;
  color: var(--off-white);
  cursor: pointer;
}

.date-cal-btn:hover {
  border-color: var(--movie-red);
  color: var(--movie-red);
}

.date-cal-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

/* Ticket stepper: give the −/+ buttons and count some air instead of sitting flush. */
.counter {
  gap: 1.25rem;
}

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

/* The sticky summary bar's flex row (title+line on the left, button on the right,
   justify-content:space-between, no wrap) works at desktop widths but has no room on a
   phone once the theatre name/ticket count get long — the button gets squeezed off.
   Stack it on narrow screens instead: text on its own row, full-width button below. */
@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%;
  }
}

/* .ticket-ref in bdd-styles.css was sized for the static mockup's short client-generated
   ref ("BDD-XXXXXXXX", 13 chars). Our real Transaction No. is much longer
   ("BDD" + timestamp + 4 chars, ~24 chars) and overflowed/forced horizontal scroll on
   phones at the original 1.75rem. Override smaller and let it wrap instead of scroll. */
.ticket-ref {
  font-size: 1.15rem;
  line-height: 1.5;
  word-break: break-all;
}

@media (max-width: 480px) {
  .ticket-ref {
    font-size: 1rem;
  }
}

/* Admin screens (C/Dashboard.aspx, C/AcceptedReport.aspx, C/RejectedReport.aspx,
   C/BDDTheatreMaster.aspx) live inside the shared Bootstrap admin shell and use their
   own page-scoped <style> blocks matching that template, not this file. */
