/* Refined public-site presentation using the blue, gold and ivory palette. */
:root {
  color-scheme: light;
}

body {
  background-image: radial-gradient(ellipse at 50% 0, rgb(200 167 58 / 5%), transparent 36rem);
}

body > header {
  border-color: rgb(49 86 111 / 10%);
  box-shadow: 0 6px 24px rgb(43 43 43 / 3%);
}

body > header .container-x {
  min-height: 4.75rem;
}

body > header nav a:not(.btn-primary) {
  transition: color 180ms ease, background-color 180ms ease;
}

.site-hero h1 {
  max-width: 12ch;
  text-wrap: balance;
}

.site-hero > div:last-child {
  padding-bottom: clamp(4rem, 9vw, 7rem);
}

.site-hero img {
  background: #f1f0e9;
}

#services article {
  border: 1px solid rgb(49 86 111 / 8%);
  box-shadow: 0 12px 36px rgb(43 43 43 / 5%);
}

#services article:hover {
  border-color: rgb(64 106 135 / 22%);
  box-shadow: 0 20px 48px rgb(43 43 43 / 9%);
  transform: translateY(-3px);
}

#testimonials #testimonialCarousel > div:first-child > div {
  border: 1px solid rgb(49 86 111 / 8%);
  border-radius: 1.25rem;
}

.testimonial-slide {
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 640px) {
  #testimonials #testimonialCarousel > div:first-child > div {
    padding-right: 3.5rem;
    padding-left: 3.5rem;
  }

  .cookie-consent-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .cookie-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-consent-actions > button {
    min-height: 2.8rem;
    padding-right: 0.65rem;
    padding-left: 0.65rem;
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #testimonialTrack {
    transition-duration: 0.01ms !important;
  }
}

.btn-primary,
.btn-secondary,
.btn-danger {
  border-radius: 0.85rem;
  font-weight: 600;
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card,
.booking-form {
  border: 1px solid rgb(49 86 111 / 9%);
  box-shadow: 0 18px 50px rgb(43 43 43 / 6%);
}

.field {
  min-height: 3rem;
  border-color: rgb(43 43 43 / 16%);
}

.booking-heading {
  max-width: 42rem;
  margin-right: auto;
  margin-left: auto;
}

.booking-form {
  gap: 1.75rem;
}

.booking-form > div > label,
.booking-form > div > .block {
  color: #2b2b2b;
}

#calGrid button:not(:disabled):hover {
  box-shadow: inset 0 0 0 1px rgb(64 106 135 / 30%);
}

.slot {
  min-width: 5rem;
  background: #fff;
}

.booking-confirmation {
  margin-bottom: 1.5rem;
}

.booking-confirmation-icon {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(64 106 135 / 9%);
}

.booking-confirmation-icon svg {
  width: 3.5rem;
  height: 3.5rem;
  overflow: visible;
}

.confirmation-ring {
  stroke: #406a87;
  stroke-width: 2;
}

.confirmation-check {
  stroke: #c8a73a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-details {
  row-gap: 1rem;
}

.booking-details dt {
  font-size: 0.9rem;
}

.booking-details dd {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.blog-card {
  border: 1px solid rgb(49 86 111 / 9%);
  border-radius: 1rem;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgb(43 43 43 / 9%);
}

.blog-listing-header,
.blog-article-header,
.booking-admin-header {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.blog-listing-header h1,
.blog-article-header h1 {
  max-width: 19ch;
  margin-right: auto;
  margin-left: auto;
  color: #31566f;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-wrap: balance;
}

.blog-article-header h1 {
  margin-left: 0;
}

.blog-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  color: #687780;
  font-size: 0.875rem;
}

.blog-metadata-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-metadata-item svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-post-heading {
  max-width: 18ch;
  margin: 0.75rem 0 1rem;
  color: #31566f;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.17;
  text-wrap: balance;
}

.blog-card-title {
  margin-bottom: 0.8rem;
  color: #31566f;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover,
.blog-card-title a:focus-visible {
  color: #406a87;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin-bottom: 0.9rem;
  color: #687780;
  font-size: 0.78rem;
}

.blog-content {
  color: #42423e;
  font-size: 1.125rem;
  line-height: 1.85;
}

.blog-content > * + * {
  margin-top: 1.35rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin-top: 2.5rem;
}

.blog-content ul,
.blog-content ol {
  padding-left: 1.5rem;
}

.blog-content ul {
  list-style: disc;
}

.blog-content ol {
  list-style: decimal;
}

.blog-content blockquote {
  border-left: 3px solid #c8a73a;
  padding-left: 1.25rem;
  color: #406a87;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
}

.rich-editor {
  overflow: hidden;
  border: 1px solid rgb(43 43 43 / 16%);
  border-radius: 0.85rem;
  background: #fff;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem;
  border-bottom: 1px solid rgb(49 86 111 / 12%);
  background: #fafaf7;
}

.rich-toolbar button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  color: #31566f;
  font-size: 0.85rem;
}

.rich-toolbar button:hover,
.rich-toolbar button:focus-visible {
  border-color: rgb(64 106 135 / 22%);
  background: #fff;
}

.rich-editor-input {
  min-height: 20rem;
  padding: 1.25rem;
  outline: none;
  line-height: 1.75;
}

.rich-editor-input:focus {
  box-shadow: inset 0 0 0 2px rgb(64 106 135 / 24%);
}

.rich-editor-input h2,
.rich-editor-input h3 {
  margin: 1rem 0 0.5rem;
}

.rich-editor-input blockquote {
  border-left: 3px solid #c8a73a;
  padding-left: 1rem;
}

.site-logo {
  width: 10rem;
  height: 3.25rem;
  object-fit: contain;
  object-position: left center;
}

.site-logo-footer {
  width: 9.25rem;
  filter: brightness(0) invert(1);
}

.service-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.service-modal {
  width: min(92vw, 38rem);
  max-height: min(85vh, 48rem);
  padding: 0;
  border: 1px solid rgb(49 86 111 / 15%);
  border-radius: 1.25rem;
  color: #2b2b2b;
  background: #fff;
  box-shadow: 0 28px 90px rgb(24 43 56 / 28%);
}

.service-modal::backdrop {
  background: rgb(24 43 56 / 58%);
  backdrop-filter: blur(3px);
}

.service-modal-panel {
  position: relative;
  padding: clamp(1.5rem, 5vw, 2.75rem);
}

.service-modal-close-form {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

.service-modal-close {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  color: #31566f;
  background: #f1f5f7;
  font-size: 1.65rem;
}

.service-modal-description {
  white-space: pre-line;
  line-height: 1.8;
}

.service-modal-facts {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: #31566f;
  font-size: 0.95rem;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  width: 17rem;
  height: 100vh;
  flex: 0 0 17rem;
  flex-direction: column;
  padding: 1.5rem 1rem;
  color: #fff;
  background: #31566f;
  box-shadow: 8px 0 32px rgb(24 43 56 / 9%);
  z-index: 30;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar {
  width: 5.25rem;
  flex-basis: 5.25rem;
  padding-right: 0.65rem;
  padding-left: 0.65rem;
}

.admin-shell.is-sidebar-collapsed .admin-sidebar-header {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

.admin-shell.is-sidebar-collapsed .admin-brand,
.admin-shell.is-sidebar-collapsed .admin-nav-label {
  display: none;
}

.admin-shell.is-sidebar-collapsed .admin-nav-link,
.admin-shell.is-sidebar-collapsed .admin-logout {
  justify-content: center;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.cookie-settings-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent-banner {
  position: fixed;
  z-index: 60;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  display: flex;
  max-width: 70rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgb(49 86 111 / 18%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 18px 55px rgb(24 43 56 / 22%);
}

.cookie-consent-banner[hidden] {
  display: none;
}

.cookie-consent-copy h2 {
  margin-bottom: 0.35rem;
  color: #31566f;
  font-size: 1.1rem;
  font-weight: 600;
}

.cookie-consent-copy p {
  color: #59646a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.cookie-consent-copy a {
  color: #31566f;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cookie-consent-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

.admin-sidebar-header {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.admin-brand img {
  width: 10rem;
  max-height: 3.25rem;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

.admin-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.25rem;
}

.admin-nav-link {
  display: flex;
  min-height: 2.9rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  color: rgb(255 255 255 / 94%);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  color: #fff;
  background: rgb(255 255 255 / 13%);
}

.admin-nav-link.is-active {
  border-color: rgb(255 255 255 / 25%);
  color: #fff;
  background: rgb(255 255 255 / 19%);
  font-weight: 700;
}

.admin-logout {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
  color: #f2d889;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-logout:hover {
  color: #fff;
  text-decoration: underline;
}

.admin-main {
  min-width: 0;
  flex: 1;
  padding: clamp(1rem, 3vw, 2.5rem);
  overflow-x: auto;
}

.admin-nav-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.admin-settings-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: rgb(64 106 135 / 10%);
  color: #406a87;
}

.admin-settings-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-form-message {
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-weight: 500;
}

.admin-form-message-error {
  border: 1px solid #f2c7c7;
  background: #fff5f5;
  color: #9b2424;
}

.admin-form-message-success {
  border: 1px solid #c6e4d4;
  background: #f0fbf5;
  color: #226640;
}

.session-card {
  min-height: 12rem;
  border: 1px solid rgb(64 106 135 / 12%);
  border-radius: 1.25rem;
  background: #fff;
  padding: 1.75rem;
  box-shadow: 0 0.25rem 1.25rem rgb(30 53 67 / 5%);
}

.session-card-number {
  display: inline-block;
  margin-bottom: 1rem;
  color: #b38b19;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.about-value-card {
  border: 1px solid rgb(64 106 135 / 12%);
  border-radius: 1rem;
  background: #fff;
  padding: 1.25rem;
}

.about-value-icon {
  display: inline-flex;
  width: 2.65rem;
  height: 2.65rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border-radius: 0.85rem;
  background: rgb(64 106 135 / 10%);
  color: #406a87;
}

.about-value-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  border: 1px solid rgb(64 106 135 / 14%);
  border-radius: 1rem;
  background: #fff;
  padding: 1.2rem 1.4rem;
}

.faq-item summary {
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #31566f;
  font-weight: 650;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #b38b19;
  font-size: 1.5rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  max-width: 60ch;
  margin-top: 0.85rem;
  color: #5b6870;
}

.footer-link-list {
  display: grid;
  gap: 0.45rem;
  color: rgb(255 255 255 / 90%);
  font-size: 0.875rem;
}

.footer-link-list a {
  color: #fff;
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 150ms ease;
}

.footer-link-list a:hover,
.footer-link-list a:focus-visible {
  color: #f0d875;
  text-decoration: underline;
}

.booking-submit:disabled,
.booking-submit:disabled:hover {
  cursor: not-allowed;
  background: #8b9ca6;
  box-shadow: none;
  transform: none;
}

.is-loading {
  cursor: wait !important;
  opacity: 0.88;
}

.button-spinner {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-spin 700ms linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-menu-toggle {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 0.65rem;
  color: #fff;
  background: rgb(255 255 255 / 12%);
}

.admin-menu-toggle:hover {
  background: rgb(255 255 255 / 20%);
}

.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 8px 30px rgb(24 43 56 / 6%);
}

.admin-table-wrap table {
  min-width: 42rem;
}

.admin-calendar-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.calendar-date-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgb(49 86 111 / 10%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 30px rgb(24 43 56 / 5%);
}

.calendar-date-field {
  width: min(100%, 17rem);
}

.calendar-day-nav {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgb(64 106 135 / 18%);
  border-radius: 0.75rem;
  color: #31566f;
  font-size: 1.25rem;
  text-decoration: none;
}

.calendar-day-nav:hover {
  background: rgb(64 106 135 / 8%);
}

.calendar-today {
  padding: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.calendar-day-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 2rem 0 1rem;
}

.calendar-booking-list {
  display: grid;
  gap: 0.85rem;
}

.calendar-booking-card {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  align-items: start;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgb(49 86 111 / 10%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 8px 30px rgb(24 43 56 / 5%);
}

.calendar-booking-time {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem;
  border-radius: 0.75rem;
  color: #31566f;
  background: rgb(64 106 135 / 8%);
  text-align: center;
}

.calendar-booking-time strong {
  font-size: 1.2rem;
}

.calendar-booking-time span {
  color: #626b71;
  font-size: 0.8rem;
}

.calendar-booking-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.calendar-booking-title h3 {
  margin: 0;
}

.calendar-booking-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

.calendar-booking-details {
  margin-top: 0.75rem;
  color: #31566f;
  font-size: 0.9rem;
}

.calendar-booking-details summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
}

.calendar-booking-details p {
  margin-top: 0.5rem;
  color: #42423e;
  overflow-wrap: anywhere;
}

.calendar-empty {
  padding: 3rem 1.5rem;
  text-align: center;
}

.calendar-empty-icon {
  display: block;
  margin-bottom: 0.5rem;
  color: #c8a73a;
  font-size: 2rem;
}

.service-detail-header h1 {
  text-wrap: balance;
}

.service-detail-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.service-detail-facts div {
  display: grid;
  gap: 0.3rem;
  color: #626b71;
  font-size: 0.9rem;
}

.service-detail-facts strong {
  color: #31566f;
  font-size: 1.1rem;
}

.booking-admin-page {
  width: min(100%, 78rem);
  margin: 0 auto;
}

.booking-admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.booking-export-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.booking-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.booking-stat-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgb(64 106 135 / 12%);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.25rem 1.25rem rgb(30 53 67 / 5%);
}

.booking-stat-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.8rem;
  color: #406a87;
  background: rgb(64 106 135 / 10%);
  font-size: 1.3rem;
  font-weight: 700;
}

.booking-stat-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-stat-pending .booking-stat-icon {
  color: #946510;
  background: #fbf2d7;
}

.booking-stat-confirmed .booking-stat-icon {
  color: #24744d;
  background: #e5f5ec;
}

.booking-stat-history .booking-stat-icon {
  color: #64727a;
  background: #edf1f3;
}

.booking-stat-card > div {
  display: grid;
  gap: 0.15rem;
}

.booking-stat-label,
.booking-detail-label,
.booking-time-label {
  color: #6d7980;
  font-size: 0.78rem;
  font-weight: 600;
}

.booking-stat-card strong {
  color: #233d4e;
  font-size: 1.45rem;
  line-height: 1.2;
}

.booking-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.65rem;
}

.booking-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.75rem 0 0.75rem;
}

.booking-search-form {
  display: flex;
  width: min(100%, 23rem);
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.booking-search-field {
  display: flex;
  min-width: 0;
  height: 2.85rem;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.8rem;
  border: 1px solid rgb(49 86 111 / 17%);
  border-radius: 0.8rem;
  background: #fff;
  color: #6d7980;
  box-shadow: 0 0.2rem 0.8rem rgb(30 53 67 / 3%);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.booking-search-field:focus-within {
  border-color: #406a87;
  box-shadow: 0 0 0 3px rgb(64 106 135 / 12%);
}

.booking-search-field > svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.booking-search-field input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: #233d4e;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
}

.booking-search-field input::placeholder {
  color: #849097;
}

.booking-search-field input::-webkit-search-cancel-button {
  display: none;
}

.booking-search-clear {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: #6d7980;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}

.booking-search-clear:hover {
  color: #31566f;
  background: #edf2f5;
}

.booking-search-submit {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 0.8rem;
  color: #fff;
  background: #406a87;
  box-shadow: 0 0.25rem 0.8rem rgb(49 86 111 / 18%);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.booking-search-submit:hover {
  background: #31566f;
  transform: translateY(-1px);
}

.booking-search-submit:focus-visible,
.booking-search-clear:focus-visible {
  outline: 3px solid rgb(64 106 135 / 35%);
  outline-offset: 2px;
}

.booking-search-submit svg {
  width: 1.2rem;
  height: 1.2rem;
}

.booking-calendar-day {
  position: relative;
  border: 1px solid transparent;
}

.booking-calendar-day-past {
  border-color: #e8ecee;
  color: #9aa5ac;
  background: #f4f6f7;
  opacity: 0.48;
  text-decoration: line-through;
  text-decoration-color: rgb(107 121 128 / 55%);
}

.booking-calendar-day-past:hover {
  background: #f4f6f7;
}

.booking-calendar-day-today {
  border-color: #406a87;
  background: rgb(64 106 135 / 8%);
  font-weight: 700;
}

.booking-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid #edf0f2;
}

.booking-calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #6d7980;
  font-size: 0.75rem;
}

.booking-calendar-swatch {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.booking-calendar-swatch-past {
  border-color: #e1e6e8;
  background: #f0f2f3;
  opacity: 0.65;
}

.booking-calendar-swatch-today {
  border-color: #406a87;
  background: rgb(64 106 135 / 8%);
}

.password-visibility-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 0.6rem;
  color: #6d7980;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.password-visibility-toggle:hover {
  color: #406a87;
  background: rgb(64 106 135 / 9%);
}

.password-visibility-toggle:focus-visible {
  outline: 3px solid rgb(64 106 135 / 30%);
  outline-offset: 1px;
}

.password-visibility-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.booking-filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgb(64 106 135 / 14%);
  border-radius: 999px;
  color: #31566f;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.booking-filter span {
  display: inline-grid;
  min-width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  border-radius: 999px;
  color: #31566f;
  background: rgb(64 106 135 / 9%);
  font-size: 0.75rem;
}

.booking-filter:hover,
.booking-filter.is-selected {
  border-color: #406a87;
  color: #fff;
  background: #406a87;
}

.booking-filter.is-selected span,
.booking-filter:hover span {
  color: #31566f;
  background: #fff;
}

.booking-pagination-summary {
  margin: 0.75rem 0;
  color: #6d7980;
  font-size: 0.875rem;
}

.booking-admin-list {
  display: grid;
  gap: 1rem;
}

.booking-admin-card {
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid rgb(49 86 111 / 11%);
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 0.35rem 1.5rem rgb(30 53 67 / 5%);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.booking-admin-card:hover {
  border-color: rgb(64 106 135 / 25%);
  box-shadow: 0 0.65rem 1.8rem rgb(30 53 67 / 8%);
}

.booking-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgb(49 86 111 / 9%);
}

.booking-customer {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.booking-avatar {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 1rem;
  color: #31566f;
  background: rgb(64 106 135 / 10%);
  font-size: 1.25rem;
  font-weight: 700;
}

.booking-customer-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.booking-service-name {
  color: #6d7980;
  font-size: 0.78rem;
  font-weight: 600;
}

.booking-customer-copy h2 {
  margin: 0;
  color: #233d4e;
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.booking-status-pill {
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.booking-status-pill.status-pending {
  color: #805a0d;
  background: #fbf2d7;
}

.booking-status-pill.status-confirmed {
  color: #216b46;
  background: #e5f5ec;
}

.booking-status-pill.status-cancelled,
.booking-status-pill.status-no_show {
  color: #8a3333;
  background: #fbeaea;
}

.booking-status-pill.status-completed {
  color: #52616a;
  background: #edf1f3;
}

.booking-time-block {
  display: grid;
  min-width: 10rem;
  gap: 0.2rem;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  color: #31566f;
  background: rgb(64 106 135 / 7%);
  text-align: right;
}

.booking-time-block strong {
  font-size: 0.98rem;
}

.booking-time-block > span:last-child {
  color: #6d7980;
  font-size: 0.83rem;
}

.booking-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.booking-contact-item {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.booking-contact-item a,
.booking-meet-link a {
  color: #31566f;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.booking-contact-item a:hover,
.booking-meet-link a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.booking-message,
.booking-internal-note,
.booking-meet-link {
  margin: 0.4rem 0 0.8rem;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.booking-message {
  color: #31566f;
  background: #f3f7f9;
}

.booking-internal-note {
  color: #765316;
  background: #fff8e7;
}

.booking-meet-link {
  display: grid;
  gap: 0.25rem;
  color: #31566f;
  background: #f3f7f9;
}

.booking-message p,
.booking-internal-note p {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
}

.booking-card-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgb(49 86 111 / 9%);
}

.booking-action-details {
  border: 1px solid rgb(64 106 135 / 12%);
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: #fbfcfd;
}

.booking-action-summary {
  width: fit-content;
  cursor: pointer;
  color: #31566f;
  font-size: 0.9rem;
  font-weight: 650;
}

.booking-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.25rem;
}

.booking-primary-actions form {
  display: flex;
}

.booking-empty-state {
  margin-top: 1rem;
  border: 1px solid rgb(64 106 135 / 12%);
  border-radius: 1rem;
  padding: 3rem 1.25rem;
  color: #6d7980;
  background: #fff;
  text-align: center;
}

.booking-empty-state > span {
  display: inline-block;
  color: #406a87;
}

.booking-empty-state svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-empty-state h2 {
  margin: 0.5rem 0;
  color: #233d4e;
  font-size: 1.2rem;
}

.booking-empty-state p {
  margin: 0;
}

.booking-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.5rem 0 0.5rem;
}

.booking-page-link {
  display: inline-grid;
  min-width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid rgb(64 106 135 / 16%);
  border-radius: 0.65rem;
  color: #31566f;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

a.booking-page-link:hover,
.booking-page-link.is-current {
  border-color: #406a87;
  color: #fff;
  background: #406a87;
}

.booking-page-link.is-disabled {
  color: #a8b2b8;
  background: #f5f7f8;
}

.booking-page-ellipsis {
  padding: 0 0.2rem;
  color: #6d7980;
}

.booking-cancel-dialog {
  width: min(92vw, 34rem);
  max-width: none;
  padding: 0;
  border: 1px solid rgb(49 86 111 / 14%);
  border-radius: 1.2rem;
  color: #2b2b2b;
  background: #fff;
  box-shadow: 0 1.5rem 5rem rgb(24 43 56 / 30%);
}

.booking-cancel-dialog::backdrop {
  background: rgb(24 43 56 / 58%);
  backdrop-filter: blur(3px);
}

.booking-cancel-content {
  padding: 2rem;
}

.booking-cancel-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #9a3737;
  background: #fbeaea;
  font-size: 1.35rem;
  font-weight: 700;
}

.booking-cancel-content h2 {
  margin-bottom: 0.5rem;
  color: #233d4e;
  font-size: 1.35rem;
}

.booking-cancel-content p {
  color: #6d7980;
}

.booking-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.booking-cancel-actions form {
  display: flex;
}

.booking-cancel-actions button {
  min-height: 2.75rem;
}

@media (max-width: 639px) {
  .site-hero > div:last-child {
    padding-top: 3rem;
  }

  .site-hero img {
    height: 22rem;
  }

  .booking-form {
    padding: 1.25rem;
  }

  .booking-details {
    padding: 1.25rem;
  }

  .rich-editor-input {
    min-height: 15rem;
  }

  .booking-admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-export-link {
    justify-content: center;
  }

  .booking-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .booking-stat-card {
    gap: 0.6rem;
    padding: 0.85rem;
  }

  .booking-stat-icon {
    width: 2.35rem;
    height: 2.35rem;
  }

  .booking-card-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .booking-time-block {
    min-width: 0;
    text-align: left;
  }

  .booking-contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .booking-cancel-content {
    padding: 1.4rem;
  }

  .booking-cancel-actions {
    flex-direction: column-reverse;
  }

  .booking-cancel-actions form,
  .booking-cancel-actions button {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .booking-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .booking-search-form {
    width: min(100%, 30rem);
  }

  .admin-shell {
    display: block;
  }

  .admin-shell.is-sidebar-collapsed .admin-sidebar {
    width: 100%;
    flex-basis: auto;
    padding: 0.5rem 1rem;
  }

  .admin-shell.is-sidebar-collapsed .admin-sidebar-header {
    justify-content: space-between;
    padding: 0;
  }

  .admin-shell.is-sidebar-collapsed .admin-brand,
  .admin-shell.is-sidebar-collapsed .admin-nav-label {
    display: inline-flex;
  }

  .admin-shell.is-sidebar-collapsed .admin-nav-link,
  .admin-shell.is-sidebar-collapsed .admin-logout {
    justify-content: flex-start;
    padding: 0.7rem 0.9rem;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 4.25rem;
    padding: 0.5rem 1rem;
  }

  .admin-sidebar-header {
    min-height: 3.5rem;
    padding: 0;
    border-bottom: 0;
  }

  .admin-brand img {
    width: 10rem;
    height: 2.8rem;
  }

  .admin-menu-toggle {
    display: inline-flex;
  }

  .admin-nav {
    display: none;
    flex: initial;
    padding: 0.75rem 0 0.25rem;
  }

  .admin-nav.is-open {
    display: flex;
  }

  .admin-logout {
    display: none;
    margin-top: 0.25rem;
  }

  .admin-nav.is-open + .admin-logout {
    display: flex;
  }

  .admin-main {
    padding: 1.25rem 1rem 2rem;
  }

  .admin-calendar-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-booking-card {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 0.9rem;
  }

  .calendar-manage-link {
    grid-column: 2;
    justify-self: start;
  }

  .calendar-date-card {
    align-items: stretch;
  }

  .calendar-date-field {
    flex: 1 1 100%;
  }

  .calendar-date-card > .btn-secondary {
    flex: 1;
  }

  .service-detail-facts {
    align-items: stretch;
  }

  .service-detail-facts .btn-primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
