/* MT-14: the visitor's time zone picker (the calendar's .tzp, on this page's light colours). */
@import '../../public/crm/assets/css/components/tz-picker.css';

.crm-public-book {
  /* The tokens tz-picker.css reads; this page is always light. */
  --border: #d0d5dd;
  --border-strong: #98a2b3;
  --surface: #fff;
  --surface-hover: #f5f8fa;
  --text: #101828;
  --text-muted: #667085;
  --brand: #155eef;
  --brand-soft: #eff4ff;
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.16);
  min-height: 100vh;
  padding: 32px 16px 48px;
  background: linear-gradient(180deg, #f4f7fb 0%, #eef2f7 100%);
  color: #101828;
  color-scheme: light;
}
/* The booking page is always light: the CRM's dark-theme heading colour must not reach it. */
.crm-public-book h1,
.crm-public-book h2 {
  color: #101828;
}
.crm-public-book__card {
  max-width: 480px;
  margin: 0 auto;
  padding: 28px 24px;
  border: 1px solid #d0d5dd;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}
.crm-public-book__host {
  margin: 0 0 6px;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}
.crm-public-book h1 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.25;
}
.crm-public-book__desc {
  margin: 0 0 18px;
  color: #475467;
  font-size: 14px;
  line-height: 1.5;
}
.crm-public-book__field {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
}
.crm-public-book__field input,
.crm-public-book__field select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
}
.crm-public-book__slots {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 320px;
  overflow: auto;
}
.crm-public-book__slots button,
.crm-public-book__days button,
.crm-public-book__chips button {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  color: #101828;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.crm-public-book__slots button {
  text-align: center;
  color: #155eef;
  font-weight: 600;
}
.crm-public-book__slots button.is-selected,
.crm-public-book__slots button:hover,
.crm-public-book__days button.is-selected,
.crm-public-book__days button:hover,
.crm-public-book__chips button.is-selected,
.crm-public-book__chips button:hover:not(:disabled) {
  border-color: #155eef;
  background: #eff4ff;
}
.crm-public-book__card--wide {
  max-width: 640px;
}
.crm-public-book__section {
  margin: 18px 0 0;
}
.crm-public-book__step {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
}
.crm-public-book__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crm-public-book__nav {
  display: inline-flex;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  overflow: hidden;
}
.crm-public-book__nav button {
  width: 36px;
  height: 32px;
  border: 0;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}
.crm-public-book__nav button + button {
  border-left: 1px solid #d0d5dd;
}
.crm-public-book__nav button:disabled {
  color: #98a2b3;
  cursor: default;
}
.crm-public-book__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-public-book__chips button {
  text-align: center;
  min-width: 84px;
}
.crm-public-book__picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin: 12px 0 4px;
}
.crm-public-book__days {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 320px;
  overflow: auto;
}
.crm-public-book__days button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.crm-public-book__days small {
  color: #667085;
  font-size: 12px;
}
.crm-public-book__picked {
  margin: 4px 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f7fb;
  font-size: 14px;
}
.crm-public-book__link {
  border: 0;
  padding: 0;
  background: none;
  color: #155eef;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.crm-public-book__field textarea {
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
  font-weight: 400;
  resize: vertical;
}
.crm-public-book__done {
  text-align: center;
}
.crm-public-book__check {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #dcfae6;
  color: #067647;
  font-size: 26px;
  font-weight: 700;
}
.crm-public-book__when {
  font-weight: 650;
}
@media (max-width: 520px) {
  .crm-public-book__picker {
    grid-template-columns: 1fr;
  }
}
.crm-public-book__form button[type='submit'] {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: #155eef;
  color: #fff;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.crm-public-book__form button[type='submit']:disabled {
  opacity: 0.55;
  cursor: default;
}
.crm-public-book__hint {
  margin: 0;
  color: #667085;
  font-size: 13px;
}
.crm-public-book__error {
  margin: 0 0 8px;
  color: #b42318;
  font-size: 13px;
}
/* HUB-662: the page's picture, the welcome screen, consent boxes, CAPTCHA, cancel / reschedule.
 * The page is always light (it has no theme toggle), so its colours are tokens of its own, with
 * this page's light values; the parts below use them (meeting-booking.css's names, `--book-`). */
.crm-public-book {
  --book-brand: #155eef;
  --book-brand-soft: #eff4ff;
  --book-brand-contrast: #fff;
  --book-text: #101828;
  --book-text-muted: #475467;
  --book-border: #d0d5dd;
  --book-surface-2: #f4f7fb;
  --book-danger: #b42318;
}
/* meeting-booking.html .mb-avatar */
.crm-public-book__avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 0 12px;
  border-radius: 50%;
  background: var(--book-brand-soft);
  color: var(--book-brand);
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
}
.crm-public-book__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* create-meeting.html .gm-welcome-preview: picture, title, text, email, Start booking */
.crm-public-book__welcome {
  display: grid;
  justify-items: center;
  text-align: center;
}
.crm-public-book__welcome .crm-public-book__field {
  justify-self: stretch;
  text-align: left;
}
.crm-public-book__welcome-art {
  width: 120px;
  height: 100px;
  margin: 0 0 10px;
}
/* meeting-booking.html .mb-btn--primary */
.crm-public-book__primary,
.crm-public-book__danger {
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--book-brand);
  color: var(--book-brand-contrast);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.crm-public-book__danger {
  background: var(--book-danger);
}
.crm-public-book__primary:disabled,
.crm-public-book__danger:disabled {
  opacity: 0.55;
  cursor: default;
}
/* meeting-booking.html .mb-actions--center */
.crm-public-book__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
}
/* create-meeting.html .gm-preview-consent: the form's consent box */
.crm-public-book__consent {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 10px;
  border: 1px solid var(--book-border);
  border-radius: 6px;
  background: var(--book-surface-2);
  font-size: 13px;
  color: var(--book-text-muted);
}
.crm-public-book__consent p {
  margin: 0;
}
.crm-public-book__consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--book-text);
}
.crm-public-book__captcha {
  margin: 4px 0 12px;
}

/* MT-13 (M-06): the month calendar beside the times, as the scheduling page editor's preview. */
.crm-public-book__card--wide:has(.crm-public-book__cal) {
  max-width: 880px;
}
.crm-public-book__cal {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 18px;
}
.crm-public-book__month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.crm-public-book__month p {
  margin: 0;
  font-weight: 650;
}
.crm-public-book__month-nav {
  width: 34px;
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  background: #fff;
  color: #101828;
  font-size: 18px;
  cursor: pointer;
}
.crm-public-book__month-nav:disabled {
  color: #98a2b3;
  cursor: default;
}
.crm-public-book__weekdays,
.crm-public-book__dates {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}
.crm-public-book__weekdays span {
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: #667085;
}
.crm-public-book__dates button {
  aspect-ratio: 1;
  max-height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eff4ff;
  color: #155eef;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.crm-public-book__dates button:disabled {
  background: none;
  color: #98a2b3;
  font-weight: 400;
  cursor: default;
}
.crm-public-book__dates button.is-today:disabled {
  text-decoration: underline;
}
.crm-public-book__dates button.is-selected {
  background: #155eef;
  color: #fff;
}
.crm-public-book__cal-right .crm-public-book__step {
  margin-top: 14px;
}
.crm-public-book__cal-right .crm-public-book__step:first-child {
  margin-top: 0;
}
.crm-public-book__zone {
  margin: 14px 0 0;
}
.crm-public-book__names {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .crm-public-book__cal,
  .crm-public-book__names {
    grid-template-columns: 1fr;
  }
}
