/* SRV booking + staff UI. Kept independent from Tailwind so the booking page
   remains usable even if the utility stylesheet is unavailable. */
.srv {
  --srv-ink: #17324c;
  --srv-muted: #587087;
  --srv-blue: #2563eb;
  --srv-blue-dark: #1d4ed8;
  --srv-blue-soft: #eff6ff;
  --srv-line: #dbe5ef;
  --srv-bg: #f7faff;
  --srv-danger: #a72d42;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--srv-ink);
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 56px;
}
.srv *, .srv *::before, .srv *::after { box-sizing: border-box; }
.srv h1, .srv h2, .srv p { margin-top: 0; }
.srv h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.08; margin-bottom: 16px; letter-spacing: -.03em; color: #0f2740; }
.srv h2 { font-size: 1.35rem; line-height: 1.25; margin: 8px 0 18px; color: #17324c; }
.srv p { line-height: 1.65; }
.srv a { color: #1559a6; }
.srv .muted { color: var(--srv-muted); }
.srv .small { font-size: .86rem; }
.srv .eyebrow { color: #1767bc; font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.srv .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.srv .booking-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
}
.srv .booking-intro {
  border-radius: 24px;
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(135deg, #f7fbff 0%, #edf5ff 55%, #f8fbff 100%);
  border: 1px solid #d7e7f7;
  box-shadow: 0 18px 44px rgba(28, 72, 112, .08);
}
.srv .booking-intro > p { max-width: 720px; margin-bottom: 22px; font-size: 1.02rem; }
.srv .booking-help {
  border-radius: 24px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(145deg, #173b66, #1d4ed8);
  box-shadow: 0 18px 44px rgba(21, 62, 111, .16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.srv .booking-help h2 { color: #fff; margin: 0 0 8px; }
.srv .booking-help p { color: #dbeafe; margin: 0; }
.srv .booking-help a { color: #fff; font-weight: 750; }
.srv .booking-help .button { background: #fff; color: #174f87; width: 100%; text-align: center; }
.srv .booking-meta { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.srv .badge { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; background: #edf4fb; color: #31536f; border: 1px solid #dce8f3; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.srv .booking-intro .badge { background: rgba(255,255,255,.78); }
.srv .booking-meta i { margin-right: 7px; }

.srv .booking-alert { margin: 0 0 24px; }
.srv .booking-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 24px; align-items: start; }
.srv .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.srv .field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.srv .card {
  background: #fff;
  border: 1px solid var(--srv-line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 28px);
  margin: 0 0 20px;
  box-shadow: 0 12px 34px rgba(26, 67, 105, .07);
}
.srv .step-number { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 9px; margin-right: 8px; background: #dbeafe; color: #1d4ed8; font-weight: 850; }
.srv label { display: block; font-weight: 650; font-size: .9rem; margin: 12px 0; color: #284a66; }
.srv input, .srv select, .srv textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9cada;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 6px;
  font: inherit;
  background: #fff;
  color: #17324c;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.srv input:hover, .srv select:hover, .srv textarea:hover { border-color: #8eabc4; }
.srv input[type=checkbox] { width: 18px; min-height: 18px; height: 18px; display: inline-block; margin: 0 9px 0 0; vertical-align: -3px; accent-color: var(--srv-blue); }
.srv .checkbox-label { display: flex; align-items: flex-start; gap: 2px; line-height: 1.45; font-weight: 550; color: #415e76; }
.srv .checkbox-label input { flex: 0 0 auto; margin-top: 2px; }
.srv textarea { min-height: 100px; resize: vertical; }
.srv button, .srv .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  min-height: 42px;
  padding: 11px 17px;
  background: var(--srv-blue);
  color: #fff;
  cursor: pointer;
  font: 700 .9rem/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
  margin: 4px 4px 4px 0;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.srv button:hover:not(:disabled), .srv .button:hover { background: var(--srv-blue-dark); box-shadow: 0 7px 18px rgba(37, 99, 235, .18); }
.srv button:active:not(:disabled), .srv .button:active { transform: translateY(1px); }
.srv button.secondary, .srv .button.secondary { background: #e9f1fa; color: #174f87; }
.srv button.secondary:hover:not(:disabled), .srv .button.secondary:hover { background: #dbe9f7; }
.srv button.danger { background: var(--srv-danger); }
.srv button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.srv button:focus-visible, .srv input:focus-visible, .srv select:focus-visible, .srv textarea:focus-visible, .srv a:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.srv input:focus, .srv select:focus, .srv textarea:focus { border-color: #438ee0; box-shadow: 0 0 0 3px rgba(96, 165, 250, .16); }
.srv .slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 18px 0 12px; }
.srv .slots button { margin: 0; background: #edf5ff; color: #165caa; border: 1px solid #b7d6f4; padding-inline: 8px; }
.srv .slots button:hover:not(:disabled) { background: #dcecff; box-shadow: none; }
.srv .slots button[aria-pressed=true] { background: #165caa; color: #fff; border-color: #165caa; }
.srv .notice { padding: 14px 16px; background: #edf5ff; border: 1px solid #d9e9f9; border-radius: 11px; margin: 12px 0; white-space: pre-line; color: #31536f; }
.srv .notice.success { background: #eefbf3; border-color: #ccebd8; color: #22603b; }
.srv .error { background: #fff0f0; border-color: #f4cccc; color: #92263b; }
.srv .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.srv table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.srv td, .srv th { padding: 14px 10px; text-align: left; border-bottom: 1px solid #e5edf5; }
.srv th { color: #42627d; font-size: .8rem; }
.srv .scroll { overflow: auto; }
.srv [hidden] { display: none !important; }
.srv .divider { border: 0; border-top: 1px solid #e4edf4; margin: 24px 0; }
.srv .form-foot { margin-top: 18px; }
.srv .required-note { margin: -5px 0 8px; }
.srv #slot-status { min-height: 1.5em; margin-bottom: 10px; }
.srv #visit-result:empty { display: none; }
.srv #visit-result { margin-top: 16px; }

body.staff { background: #f4f7fb; margin: 0; color: #17324c; }
.staff header { background: #fff; border-bottom: 1px solid #dbe5ef; }
.staff header .srv { padding-top: 14px; padding-bottom: 14px; }
.staff main.srv { padding-top: 28px; }
.staff .srv .card { margin-top: 18px; }

@media (max-width: 900px) {
  .srv .booking-hero, .srv .booking-grid { grid-template-columns: 1fr; }
  .srv .booking-help { min-height: 0; }
}
@media (max-width: 700px) {
  .srv { width: min(100% - 24px, 1180px); padding: 26px 0 38px; }
  .srv .grid, .srv .field-grid { grid-template-columns: 1fr; gap: 0; }
  .srv .card, .srv .booking-intro, .srv .booking-help { border-radius: 16px; padding: 19px; }
  .srv .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .srv .booking-meta { align-items: stretch; }
  .srv .booking-meta .badge { justify-content: center; }
}
@media (max-width: 420px) {
  .srv .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Mobile-first refinements for the main SRV website */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
img, iframe { max-width: 100%; }

@media (max-width: 767px) {
  /* Header and navigation */
  header > div > div { min-height: 64px; }
  header img { max-width: 180px; }
  #mobile-menu { box-shadow: 0 10px 24px rgba(15, 39, 64, .08); }
  #mobile-menu button { min-height: 46px; font-size: .98rem; }

  /* Home hero */
  #page-home > div:first-child { min-height: 520px; }
  #page-home h1 { font-size: clamp(2rem, 10vw, 3.15rem); line-height: 1.05; }
  #page-home .py-20 { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  #page-home .grid { gap: 2rem; }
  #page-home .flex.flex-wrap { gap: .5rem; }
  #page-home .flex.flex-wrap > * { max-width: 100%; }

  /* Service detail pages */
  .service-detail { padding: 1.15rem !important; border-radius: 1.25rem !important; }
  .service-detail h2 { font-size: 1.65rem !important; line-height: 1.15; }
  .service-detail p, .service-detail li { overflow-wrap: anywhere; }
  .service-detail .grid { gap: .65rem !important; }
  .service-detail img { min-width: 0; }
  .service-detail button { min-height: 44px; }

  /* Catalog */
  #page-catalog section { padding-top: 2rem; padding-bottom: 2rem; }
  #page-catalog h1 { font-size: 2rem; line-height: 1.1; }
  #catalog-filters { justify-content: flex-start !important; overflow-x: auto; flex-wrap: nowrap !important; padding: .25rem .1rem .6rem; scrollbar-width: thin; }
  #catalog-filters button { flex: 0 0 auto; min-height: 42px; white-space: nowrap; }
  #catalog-sections { gap: 2.5rem !important; }
  #catalog-sections .grid { grid-template-columns: 1fr !important; }
  #catalog-sections .p-6 { padding: 1rem; }
  #catalog-sections .h-48 { height: 12rem; }
  #catalog-sections button { min-height: 44px; }

  /* Location */
  #page-locations .p-8 { padding: 1.15rem; }
  #page-locations h1 { font-size: 2rem; line-height: 1.1; }
  #page-locations h2 { font-size: 1.6rem; line-height: 1.15; }
  #page-locations iframe { min-height: 320px; }
  #page-locations .min-h-\[360px\] { min-height: 320px; }
  #page-locations a { overflow-wrap: anywhere; }

  /* Booking forms and generic cards */
  .srv { width: min(100% - 20px, 1180px); padding: 24px 0 36px; }
  .srv .card, .srv .booking-intro, .srv .booking-help { padding: 16px; border-radius: 14px; }
  .srv .booking-intro h1 { font-size: 2rem; }
  .srv .row > *, .srv button, .srv .button { max-width: 100%; }
  .srv .row > .button, .srv .row > button { flex: 1 1 100%; margin-right: 0; }
  .srv table { min-width: 620px; }
}

@media (max-width: 420px) {
  header img { max-width: 150px; }
  #page-home > div:first-child { min-height: 500px; }
  #page-home .px-4 { padding-left: 1rem; padding-right: 1rem; }
  .service-detail .grid.grid-cols-2 { grid-template-columns: 1fr !important; }
  .service-detail img { height: 8rem !important; }
  #page-locations .min-h-\[360px\] { min-height: 280px; }
  #page-locations .absolute.bottom-4 { left: .75rem; right: .75rem; bottom: .75rem; text-align: center; }
}
