/* ESSC local booking prototype — scoped so it can sit beside the public site styles. */
.seat-meter {
  display: flex;
  gap: 3px;
  margin-top: 0.5rem;
}
.seat-meter i {
  width: 13px;
  height: 5px;
  border-radius: 99px;
  background: #dfe7ef;
}
.seat-meter i.filled {
  background: #303d99;
}
.course-filters {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}
.booking-success h1 {
  margin-top: 0;
}
.booking-shell {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
  background: #f5f8fc;
  color: #172033;
}
.booking-shell * {
  box-sizing: border-box;
}
.booking-shell h1,
.booking-shell h2,
.booking-shell h3 {
  color: #303d99;
}
.booking-shell h1 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.04;
  margin: 0.3rem 0 1rem;
}
.booking-shell h2 {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  margin: 0 0 0.8rem;
}
.booking-shell p {
  line-height: 1.65;
}
.booking-shell a {
  color: #303d99;
}
.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 2rem;
  align-items: start;
}
.booking-card,
.booking-panel {
  background: #fff;
  border: 1px solid rgba(48, 61, 153, 0.14);
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.08);
  border-radius: 18px;
}
.booking-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}
.booking-panel {
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}
.booking-note {
  border-left: 4px solid #9ecaec;
  background: #eaf4fb;
  padding: 0.85rem 1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.2rem 0;
  color: #25365d;
}
.booking-warning {
  border-left-color: #ed1f24;
  background: #fff4f4;
}
.booking-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5862ad;
  margin: 0 0 0.3rem;
}
.booking-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.2rem;
}
.booking-actions .btn {
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 750;
  cursor: pointer;
}
.booking-actions .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.course-list {
  display: grid;
  gap: 1rem;
}
.course-row {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.8fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(48, 61, 153, 0.13);
  border-radius: 14px;
  transition:
    0.2s background,
    0.2s transform,
    0.2s box-shadow;
}
.course-row:hover {
  background: #f7fbfe;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(23, 32, 51, 0.08);
}
.course-row h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}
.course-row p,
.course-row small {
  margin: 0;
  color: #5862ad;
}
.course-meta {
  font-size: 0.92rem;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.38rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  background: #eaf4fb;
  color: #303d99;
}
.availability.few {
  background: #fff8d9;
  color: #625800;
}
.availability.full,
.availability.closed {
  background: #fdf0f0;
  color: #9f2024;
}
.availability::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.booking-steps {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}
.booking-step {
  padding: 0.45rem 0.7rem;
  border-radius: 99px;
  background: #edf1f7;
  color: #5862ad;
  font-weight: 750;
  font-size: 0.82rem;
}
.booking-step.active {
  background: #303d99;
  color: #fff;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.booking-shell label {
  font-weight: 750;
  font-size: 0.92rem;
  color: #303d99;
  display: block;
}
.booking-shell input,
.booking-shell select,
.booking-shell textarea {
  width: 100%;
  border: 1px solid #bcbfc8;
  border-radius: 9px;
  padding: 0.75rem;
  margin-top: 0.38rem;
  font: inherit;
  color: #172033;
  background: #fff;
}
.booking-shell textarea {
  min-height: 105px;
  resize: vertical;
}
.booking-shell input:focus,
.booking-shell select:focus,
.booking-shell textarea:focus {
  outline: 3px solid rgba(158, 202, 236, 0.55);
  border-color: #303d99;
}
.booking-shell fieldset {
  border: 0;
  margin: 1.3rem 0 0;
  padding: 0;
}
.booking-shell legend {
  font-weight: 800;
  font-size: 1.1rem;
  color: #303d99;
  margin-bottom: 0.55rem;
}
.field-error {
  font-size: 0.82rem;
  color: #b91f23;
  margin: 0.25rem 0 0;
}
.form-error {
  border: 1px solid #ed1f24;
  background: #fff5f5;
  color: #8d2024;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  margin: 1rem 0;
}
.review-box {
  background: #f5f8fc;
  border-radius: 12px;
  padding: 1rem;
  display: grid;
  gap: 0.45rem;
}
.review-box strong {
  color: #303d99;
}
.booking-success {
  background: #eaf8f0;
  border-left: 4px solid #2f8f5b;
  border-radius: 0 10px 10px 0;
  padding: 1rem;
  color: #1d5c3d;
}
.admin-tabs {
  display: flex;
  gap: 0.4rem;
  overflow: auto;
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #d9dfe8;
}
.admin-tab {
  background: transparent;
  border: 0;
  color: #5862ad;
  padding: 0.6rem 0.75rem;
  white-space: nowrap;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  border-radius: 8px;
}
.admin-tab[aria-selected="true"] {
  background: #e8f3fb;
  color: #303d99;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
}
.admin-table th {
  text-align: left;
  color: #5862ad;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid #d9dfe8;
}
.admin-table td {
  padding: 0.8rem 0.5rem;
  vertical-align: top;
  border-bottom: 1px solid #edf0f4;
}
.admin-table select {
  min-width: 125px;
  margin: 0;
  padding: 0.45rem;
}
.mini-btn {
  border: 1px solid #303d99;
  color: #303d99;
  background: #fff;
  border-radius: 8px;
  padding: 0.42rem 0.64rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}
.mini-btn:hover {
  background: #303d99;
  color: #fff;
}
.mini-btn.danger {
  border-color: #b91f23;
  color: #b91f23;
}
.mini-btn.danger:hover {
  background: #b91f23;
  color: #fff;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0.5rem;
}
.admin-form .wide {
  grid-column: 1/-1;
}
.asset-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.asset-choice {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #f5f8fc;
}
.asset-choice.selected {
  border-color: #303d99;
}
.asset-choice img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: cover;
}
.asset-choice span {
  font-size: 0.72rem;
  padding: 0.35rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-empty {
  padding: 2rem;
  text-align: center;
  border: 1px dashed #bcbfc8;
  border-radius: 12px;
  color: #5862ad;
}
.inline-status {
  min-height: 1.4rem;
  font-size: 0.9rem;
  color: #2a6048;
}
.backup-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.data-input {
  display: none;
}
.booking-shell .text-link {
  background: none;
  border: 0;
  padding: 0;
  color: #303d99;
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 800px) {
  .booking-grid {
    grid-template-columns: 1fr;
  }
  .booking-panel {
    position: static;
  }
  .course-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .course-row .booking-actions {
    margin-top: 0.15rem;
  }
  .form-grid,
  .admin-form {
    grid-template-columns: 1fr;
  }
  .form-grid .wide,
  .admin-form .wide {
    grid-column: auto;
  }
  .admin-table thead {
    display: none;
  }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }
  .admin-table tr {
    padding: 0.6rem 0;
    border-bottom: 1px solid #d9dfe8;
  }
  .admin-table td {
    border: 0;
    padding: 0.25rem 0.3rem;
  }
  .admin-table td:before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5862ad;
    font-weight: 800;
  }
  .asset-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Workflow and admin refinements. */
.booking-narrow {
  max-width: 760px;
  margin-inline: auto;
}
.booking-steps {
  list-style: none;
  padding: 0;
}
.seat-copy {
  display: block;
  margin-top: 0.45rem;
}
.review-box {
  margin: 0;
}
.review-box div {
  padding: 0.7rem 0;
  border-bottom: 1px solid #dfe5ed;
}
.review-box div:last-child {
  border-bottom: 0;
}
.review-box dt {
  font-weight: 800;
  color: #303d99;
}
.review-box dd {
  margin: 0.15rem 0 0;
}
.check-group {
  display: flex;
  gap: 0.7rem 1.25rem;
  flex-wrap: wrap;
}
.check-group legend {
  width: 100%;
}
.booking-shell .check-group label,
.booking-shell .toggle-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.booking-shell input[type="checkbox"] {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}
.queue-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 240px);
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #f5f8fc;
  border-radius: 12px;
}
.admin-help {
  margin: 0.2rem 0 0;
  color: #5862ad;
}
.admin-section-title {
  margin-top: 2rem;
}
.settings-box {
  padding: 1rem;
  border: 1px solid #d9dfe8;
  border-radius: 12px;
  background: #f8fafc;
}
.settings-box h3 {
  margin-top: 0;
}
.form-error.form-success {
  border-color: #2f8f5b;
  background: #eaf8f0;
  color: #1d5c3d;
}
.admin-table {
  display: block;
  overflow-x: auto;
}
.admin-table tbody,
.admin-table thead {
  width: 100%;
}
.admin-table tr {
  width: 100%;
}
.asset-choice img {
  background: #eaf0f5;
}
@media (max-width: 800px) {
  .queue-filters {
    grid-template-columns: 1fr;
  }
  .booking-steps {
    display: grid;
    grid-template-columns: 1fr;
  }
  .check-group {
    display: grid;
  }
  .admin-table {
    overflow: visible;
  }
}

.course-filters {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) auto;
  align-items: end;
  padding: 1rem;
  background: #fff;
  border: 1px solid rgba(48, 61, 153, 0.14);
  border-radius: 14px;
}
.course-filters select {
  margin-top: 0.35rem;
}
.filter-count {
  margin: 0;
  color: #5862ad;
  font-size: 0.9rem;
  font-weight: 700;
}
.application-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.7fr) minmax(
      220px,
      1fr
    );
  gap: 1rem;
  padding: 1rem;
  background: #f5f8fc;
  border-radius: 12px;
  margin-bottom: 0.65rem;
}
.receipt-details {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
.receipt-details div {
  padding: 0.9rem;
  background: #f5f8fc;
  border-radius: 10px;
}
.receipt-details dt {
  color: #5862ad;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.receipt-details dd {
  margin: 0.25rem 0 0;
  color: #172033;
  font-weight: 750;
}
.receipt-details code {
  overflow-wrap: anywhere;
}
.membership-panel {
  padding: 0 0 1.25rem;
  overflow: hidden;
}
.membership-panel > img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  margin-bottom: 1rem;
}
.membership-panel > p,
.membership-panel > h2,
.membership-panel > h3,
.membership-panel > ol,
.membership-panel > .booking-note {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}
.membership-panel h3 {
  color: #303d99;
  margin-top: 1.2rem;
}
.membership-panel ol {
  padding-left: 1.25rem;
  line-height: 1.6;
}
.application-detail {
  max-width: 760px;
  margin: 1.25rem auto 0;
}
.admin-tabs:focus-within {
  border-bottom-color: #9ecaec;
}
@media (max-width: 900px) {
  .course-filters,
  .application-filters {
    grid-template-columns: 1fr 1fr;
  }
  .course-filters .filter-count,
  .application-filters label:first-child {
    grid-column: 1/-1;
  }
  .receipt-details {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .course-filters,
  .application-filters {
    grid-template-columns: 1fr;
  }
  .course-filters .filter-count,
  .application-filters label:first-child {
    grid-column: auto;
  }
}
.booking-shell a:not(.btn) {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

/* Keep the date list compact and the selected course visible below navigation. */
.course-row {
  background: #fff;
}
.course-row h2 {
  font-size: 1.22rem;
  line-height: 1.25;
  margin: 0 0 0.55rem;
}
.course-row p {
  font-size: 0.88rem;
}
.booking-panel {
  top: 104px;
}
.booking-panel h2 {
  line-height: 1.2;
}
.booking-scene {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 11px;
  margin-bottom: 1.25rem;
}
.booking-panel .booking-kicker {
  margin-top: 0;
}
@media (max-width: 800px) {
  .booking-scene {
    height: 230px;
  }
  .booking-panel {
    position: static;
  }
}
