/*
 * Online booking pages (book_appt.jsp, book_appt_group.jsp, book_empeded.jsp)
 * - Header: blue bar only as wide as the page content, not the full screen.
 * - Tech / time / service pickers: instead of popups, each one is shown as its
 *   own screen on the same page (booking form hidden), with a back arrow.
 *   Behaviour is in /js/appt/booking-screens.js
 */

/* ---------------------------------------------------------------- header */
.topbar.header-menu {
  background: #DEF0F6;
  padding-left: 0;
  padding-right: 0;
}
.topbar.header-menu > .container {
  background: #038BA9;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------- page background
 * One white column (same width as the header / form) from the header down to
 * the footer, instead of white boxes on the light blue page background.
 */
main.main-container {
  --booking-col: 100%;
  background: linear-gradient(#fff, #fff) top center / var(--booking-col) 100% no-repeat;
  min-height: 100vh;
  padding-bottom: 80px; /* room for the fixed CANCEL / SUBMIT bar */
}
@media (min-width: 576px) { main.main-container { --booking-col: 540px; } }
@media (min-width: 768px) { main.main-container { --booking-col: 720px; } }
@media (min-width: 992px) { main.main-container { --booking-col: 960px; } }
@media (min-width: 1200px) { main.main-container { --booking-col: 1140px; } }
main.main-container .site-footer {
  margin-bottom: 0;
}
.button-bottom > .container {
  background: #fff;
}

/* ---------------------------------------------------------------- picker screens */
.inline-picker {
  display: none;
  background: #fff;
  min-height: calc(100vh - 55px);
  width: 100%;
  margin: 55px auto 0;
}
/* same width as the booking form / header (Bootstrap .container) */
@media (min-width: 576px) { .inline-picker { max-width: 540px; } }
@media (min-width: 768px) { .inline-picker { max-width: 720px; } }
@media (min-width: 992px) { .inline-picker { max-width: 960px; } }
@media (min-width: 1200px) { .inline-picker { max-width: 1140px; } }

.inline-picker .picker-dialog,
.inline-picker .picker-content {
  width: 100%;
  margin: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.inline-picker .header-center {
  position: sticky;
  top: 55px;
  z-index: 5;
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e3f1f5;
  border-radius: 0;
  padding: 0;
}
.inline-picker .modal-header {
  flex: 1;
  padding: 14px 15px 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.inline-picker .modal-title {
  font-size: 17px;
  margin: 0;
  color: #038BA9 !important;
}
.inline-picker .picker-back {
  border: 0;
  background: transparent;
  color: #038BA9;
  font-size: 20px;
  padding: 10px 15px;
  cursor: pointer;
  line-height: 1;
}
.inline-picker .modal-body {
  padding-bottom: 90px;
}
.inline-picker .picker-done {
  position: sticky;
  bottom: 0;
  padding: 12px 15px;
  background: #fff;
  border-top: 1px solid #e3f1f5;
}
.inline-picker .picker-done .btn {
  width: 100%;
}
body.picker-open main.main-container {
  display: none !important;
}
[data-inline-picker] {
  cursor: pointer;
}

/* ---------------------------------------------------------------- top message banner
 * Errors / info shown at the top of the page (under the header) instead of a
 * popup dialog. See showTopMessage() in /js/appt/booking-screens.js
 */
.top-message {
  display: none;
  position: fixed;
  top: 55px;
  left: 0;
  right: 0;
  z-index: 1035;
  pointer-events: none;
}
.top-message .top-message-box {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 auto;
  padding: 12px 15px;
  background: #fdecec;
  border-left: 4px solid #d92d20;
  color: #9b1c1c;
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}
.top-message.top-message-info .top-message-box {
  background: #e6f6f9;
  border-left-color: #038BA9;
  color: #035e72;
}
.top-message .top-message-icon {
  font-size: 18px;
  line-height: 1.2;
}
.top-message .top-message-text {
  flex: 1;
  word-break: break-word;
}
.top-message .top-message-text a {
  color: inherit;
  font-weight: bold;
  text-decoration: underline;
}
.top-message .top-message-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  opacity: 0.7;
}
.top-message .top-message-close:hover {
  opacity: 1;
}
@media (min-width: 576px) { .top-message .top-message-box { max-width: 540px; } }
@media (min-width: 768px) { .top-message .top-message-box { max-width: 720px; } }
@media (min-width: 992px) { .top-message .top-message-box { max-width: 960px; } }
@media (min-width: 1200px) { .top-message .top-message-box { max-width: 1140px; } }
