/* Lane m-message: the dialog that every form on the site shares (m-message.php, m-message.js), first built for Request
   a showing (z-showing.*). It shares the email sign-up's shape and motion (e-content.css): a 600 px modal from 600 px
   wide, a sheet with a grip on phones, the same curves and times, and a fade only under reduced motion. Field edges
   are navy or the field gray, never the pale wash, so they show on every screen. These rules load on every page,
   because the footer's and the top bar's email links open the message form; z-showing.css adds only the showing's
   own parts. */
html.gl-z-lock { overflow: hidden; scrollbar-gutter: stable; }

body dialog.gl-z:not([open]) { display: none; }
body dialog.gl-z {
  --gl-z-ease: cubic-bezier(.23, 1, .32, 1);
  --gl-z-in: 240ms;
  --gl-z-out: 160ms;
  --gl-z-alert: #b20000;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  overflow: hidden;
  overflow: clip;
  border: 0;
  background: transparent;
  color: var(--gl-ink);
  font-family: var(--gl-sans);
  font-size: 17px;
  line-height: 1.5;
}
body dialog.gl-z::backdrop { background: transparent; }
body dialog.gl-z[open] { display: grid; place-items: center; }
body dialog.gl-z .gl-z-scrim {
  position: absolute;
  inset: 0;
  background: rgba(16, 29, 69, .55);
  opacity: 0;
  transition: opacity var(--gl-z-out) var(--gl-z-ease);
}
body dialog.gl-z .gl-z-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(600px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  border-radius: var(--gl-radius);
  background: #fff;
  box-shadow: 0 24px 64px rgba(16, 29, 69, .28), 0 2px 8px rgba(16, 29, 69, .12);
  opacity: 0;
  transform: translateY(8px) scale(.96);
  transition: opacity var(--gl-z-out) var(--gl-z-ease), transform var(--gl-z-out) var(--gl-z-ease);
}
body dialog.gl-z.is-in .gl-z-scrim { opacity: 1; transition-duration: var(--gl-z-in); }
body dialog.gl-z.is-in .gl-z-panel { opacity: 1; transform: none; transition-duration: var(--gl-z-in); }

/* The head: the calendar in a navy square, the title with the listing under it, and Close. */
body .gl-z-head {
  position: relative;
  flex: none;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 28px 20px 16px 32px;
  border-bottom: 1px solid var(--gl-rule);
}
body .gl-z-grip { display: none; }
body .gl-z-mark { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--gl-radius); background: var(--gl-navy); color: #fff; }
body .gl-z-mark .gl-i { width: 24px; height: 24px; }
body .gl-z .gl-i { flex: none; margin: 0; }
body .gl-z-titles { min-width: 0; }
body .gl-z-head h2 { margin: 0 !important; padding: 0; color: var(--gl-navy); font-size: 1.5rem !important; font-weight: 600; line-height: 1.25; text-transform: none; letter-spacing: 0; }
body .gl-z-for { display: flex; flex-direction: column; margin: 4px 0 0; }
body .gl-z-for-name { color: var(--gl-ink); font-size: 17px; font-weight: 600; line-height: 1.35; }
body .gl-z-for-where { color: var(--gl-muted); font-size: 15px; line-height: 1.4; }
body .gl-z-for-where:empty { display: none; }
body .gl-z button.gl-z-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 2px 0 0;
  padding: 0 10px;
  border: 0;
  border-radius: var(--gl-radius);
  background: none;
  box-shadow: none;
  color: var(--gl-navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
body .gl-z button.gl-z-close .gl-i { width: 22px; height: 22px; }
@media (hover: hover) { body .gl-z button.gl-z-close:hover { background: var(--gl-wash); } }

body .gl-z-in { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
body .gl-z-body { padding: 20px 32px 28px; }

/* Who the request goes to: each agent's photo and name. */
body .gl-z-to { margin: 0 0 22px; }
body .gl-z-to-label { margin: 0 0 10px; color: var(--gl-ink); font-size: 16px; font-weight: 600; line-height: 1.3; }
body .gl-z-agents { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
body .gl-z-agent { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; }
body .gl-z-agent-photo { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--gl-wash); }
body .gl-z-agent-initials { display: flex; align-items: center; justify-content: center; color: var(--gl-navy); font-weight: 600; font-size: 16px; border: 1px solid var(--gl-navy); box-sizing: border-box; }
body .gl-z-agent-text { display: flex; flex-direction: column; min-width: 0; }
body .gl-z-agent-name { color: var(--gl-ink); font-size: 17px; font-weight: 600; line-height: 1.3; }
body .gl-z-agent-role { color: var(--gl-muted); font-size: 14px; line-height: 1.35; }

/* The form. Labels sit above their fields; fields are 48 px tall with 17 px text and a field-gray edge that turns navy
   on focus and hover. */
body .gl-z-form { display: grid; gap: 18px; margin: 0; }
body .gl-z-form[hidden], body .gl-z-done[hidden], body .gl-z-to[hidden] { display: none !important; }
body .gl-z-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
body .gl-z-field { display: flex; flex-direction: column; min-width: 0; margin: 0; }
body .gl-z label, body .gl-z legend { color: var(--gl-ink); font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }
body .gl-z-field > label { display: block; margin: 0 0 6px; }
body .gl-z-opt { color: var(--gl-muted); font-weight: 400; }
body .gl-z-hint { margin: -2px 0 6px; color: var(--gl-muted); font-size: 15px; line-height: 1.4; }
body dialog.gl-z :is(input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea) {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--gl-field);
  border-radius: var(--gl-radius);
  background-color: #fff;
  box-shadow: none;
  color: var(--gl-ink);
  font-family: var(--gl-sans);
  font-size: 17px;
  line-height: 1.3;
  transition: border-color var(--gl-fast), box-shadow var(--gl-fast);
}
body dialog.gl-z textarea { height: auto; min-height: 96px !important; padding: 10px 12px; line-height: 1.5; resize: vertical; }
body dialog.gl-z select { padding-right: 36px; -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23182a61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 20px 20px no-repeat; }
body dialog.gl-z input[type="date"] { padding-right: 8px; }
body dialog.gl-z input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  body dialog.gl-z :is(input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea):hover { border-color: var(--gl-navy); }
}
body dialog.gl-z :is(input, select, textarea):focus { border-color: var(--gl-navy); box-shadow: inset 0 0 0 1px var(--gl-navy); }

/* Two fields side by side: Phone and Email from 600 px; a day and its time of day from 360 px. */
body .gl-z-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
@media (max-width: 599px) { body .gl-z-pair--wide { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
@media (max-width: 359px) { body .gl-z-pair { grid-template-columns: minmax(0, 1fr); } }

body .gl-z fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
body .gl-z fieldset > legend { display: block; float: left; width: 100%; margin: 0 0 8px; padding: 0; border: 0; }
body .gl-z fieldset > legend + * { clear: both; }

/* How to reach you: three tiles, like the sign-up's interests. The radio button covers its tile, unseen, so a tap
   anywhere picks it. Chosen: a 2 px navy edge and the icon turning into a check in a navy square. */
body .gl-z-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body .gl-z label.gl-z-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 8px 10px 8px 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 160ms var(--gl-z-ease);
}
body .gl-z label.gl-z-tile:active { transform: scale(.97); }
body .gl-z .gl-z-tile input[type="radio"] { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body .gl-z .gl-z-tile-frame { position: absolute; inset: 0; z-index: -1; border: 1px solid var(--gl-field); border-radius: var(--gl-radius); background: #fff; transition: border-color var(--gl-fast); }
body .gl-z .gl-z-tile-mark { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: var(--gl-radius); background: var(--gl-wash); color: var(--gl-navy); transition: background-color var(--gl-fast), color var(--gl-fast); }
body .gl-z .gl-z-tile-mark .gl-i { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity var(--gl-fast), transform var(--gl-fast); }
body .gl-z .gl-z-tile-mark .gl-i:last-child { stroke-width: 2.5; opacity: 0; transform: scale(.6); }
body .gl-z .gl-z-tile-t { min-width: 0; color: var(--gl-ink); font-size: 16px; font-weight: 600; line-height: 1.3; }
body .gl-z .gl-z-tile input:checked ~ .gl-z-tile-frame { border: 2px solid var(--gl-navy); }
body .gl-z .gl-z-tile input:checked ~ .gl-z-tile-mark { background: var(--gl-navy); color: #fff; }
body .gl-z .gl-z-tile input:checked ~ .gl-z-tile-mark .gl-i:first-child { opacity: 0; transform: scale(.6); }
body .gl-z .gl-z-tile input:checked ~ .gl-z-tile-mark .gl-i:last-child { opacity: 1; transform: none; }
body .gl-z .gl-z-tile input:focus-visible { outline: none; }
body .gl-z .gl-z-tile input:focus-visible ~ .gl-z-tile-frame { outline: 3px solid #5b7bd5; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { body .gl-z .gl-z-tile:hover .gl-z-tile-frame { border-color: var(--gl-navy); } }

/* A problem with a field. Before the first Send, a message for something typed wrong is navy, with a navy edge; after
   a Send, every problem is the alert red. */
body .gl-z-err { display: none; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: var(--gl-navy); font-size: 15px; font-weight: 600; line-height: 1.35; }
body .gl-z-err .gl-i { width: 18px; height: 18px; margin-top: 1px; }
body .gl-z-field.is-bad .gl-z-err { display: flex; }
body dialog.gl-z .gl-z-field.is-bad :is(input, select) { border: 2px solid var(--gl-navy); padding-left: 11px; }
body .gl-z-tried .gl-z-field.is-bad .gl-z-err { color: var(--gl-z-alert); }
body dialog.gl-z .gl-z-tried .gl-z-field.is-bad :is(input, select) { border-color: var(--gl-z-alert); }

/* Sending failed: the message and the agent's number. */
body .gl-z-alert { padding: 12px 14px; border: 2px solid var(--gl-z-alert); border-radius: var(--gl-radius); background: #fff; color: var(--gl-ink); }
body .gl-z-alert p { margin: 0; font-size: 16px; line-height: 1.45; }
body .gl-z-alert .gl-z-alert-t { color: var(--gl-z-alert); font-weight: 600; }
body .gl-z-alert .gl-z-alert-call { margin-top: 4px; }
body .gl-z-alert a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gl-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Send request: navy, the whole width, as Subscribe is in the sign-up. */
body .gl-z button.gl-z-send,
body .gl-z button.gl-z-done-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  min-height: 52px;
  margin: 4px 0 0;
  padding: 0 24px;
  border: 0;
  border-radius: var(--gl-radius);
  background: var(--gl-navy);
  box-shadow: none;
  color: #fff;
  font-family: var(--gl-sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background-color var(--gl-fast), transform var(--gl-fast);
}
@media (hover: hover) { body .gl-z button.gl-z-send:not([disabled]):hover { background: var(--gl-navy-hover); } }
body .gl-z button.gl-z-send:not([disabled]):active, body .gl-z button.gl-z-done-close:active { transform: scale(.98); }
body .gl-z button.gl-z-send[disabled] { opacity: 1; background: var(--gl-navy-deep); cursor: progress; }
body .gl-z-foot { display: flex; align-items: flex-start; gap: 8px; margin: -6px 0 0; color: var(--gl-muted); font-size: 15px; line-height: 1.45; }
body .gl-z-foot .gl-i { width: 18px; height: 18px; margin-top: 2px; color: var(--gl-navy); }

/* After sending: a check in the navy square, the heading, who will call, the listing and times, and Close. */
body .gl-z-done-head { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 2px 16px; }
body .gl-z-done-mark { display: flex; grid-row: 1 / span 2; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: var(--gl-radius); background: var(--gl-navy); color: #fff; }
body .gl-z-done-mark .gl-i { width: 26px; height: 26px; stroke-width: 2.25; }
body .gl-z h3.gl-z-done-title { margin: 0; color: var(--gl-navy); font-size: 1.375rem; font-weight: 600; line-height: 1.25; outline: none; }
body .gl-z-done-line { grid-column: 2; margin: 0; color: var(--gl-ink); font-size: 17px; line-height: 1.45; }
body .gl-z-done-list { margin: 22px 0 18px; padding: 0; }
body .gl-z-done-list > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--gl-rule); }
body .gl-z-done-list > div:last-child { border-bottom: 1px solid var(--gl-rule); }
body .gl-z-done-list :is(dt, dd) { letter-spacing: 0; text-transform: none; }
body .gl-z-done-list dt { margin: 0; color: var(--gl-muted); font-size: 15px; font-weight: 400; line-height: 1.45; }
body .gl-z-done-list dd { margin: 0; color: var(--gl-ink); font-size: 17px; font-weight: 600; line-height: 1.4; }
body .gl-z button.gl-z-done-close { background: #fff; border: 1px solid var(--gl-navy); color: var(--gl-navy); }
@media (hover: hover) { body .gl-z button.gl-z-done-close:hover { background: var(--gl-navy); color: #fff; } }

body .gl-z :is(button, a):focus-visible { outline: 3px solid #5b7bd5; outline-offset: 2px; }
body .gl-z :is(button, a):focus:not(:focus-visible) { outline: none; }

/* Phones: a sheet from the foot of the screen with a grip. Its head is the handle (z-showing.js). */
@media (max-width: 599px) {
  body dialog.gl-z {
    --gl-z-ease: cubic-bezier(.32, .72, 0, 1);
    --gl-z-in: 280ms;
    --gl-z-out: 200ms;
    padding: 0;
  }
  body dialog.gl-z[open] { place-items: end stretch; }
  body dialog.gl-z .gl-z-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: var(--gl-radius) var(--gl-radius) 0 0;
    box-shadow: 0 -8px 28px rgba(16, 29, 69, .18);
    opacity: 1;
    transform: translateY(100%);
  }
  body .gl-z-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 22px max(8px, env(safe-area-inset-right, 0px)) 14px max(16px, env(safe-area-inset-left, 0px));
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }
  body .gl-z-grip { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: var(--gl-radius); background: var(--gl-field); }
  body .gl-z-mark { width: 40px; height: 40px; }
  body .gl-z-mark .gl-i { width: 22px; height: 22px; }
  body .gl-z-head h2 { font-size: 20px !important; }
  body .gl-z-for-name { font-size: 16px; }
  body .gl-z button.gl-z-close { width: 44px; margin: 0; padding: 0; }
  body .gl-z button.gl-z-close span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  body .gl-z-body { padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  body .gl-z-to { margin-bottom: 18px; }
  body .gl-z-agents { flex-direction: column; gap: 10px; }
  body .gl-z-form { gap: 16px; }
  body .gl-z-tiles { gap: 8px; }
  body .gl-z label.gl-z-tile { flex-direction: column; justify-content: center; gap: 6px; min-height: 76px; padding: 8px 4px; text-align: center; }
  body .gl-z .gl-z-tile-mark { width: 36px; height: 36px; }
  body .gl-z .gl-z-tile-mark .gl-i { width: 20px; height: 20px; }
  body .gl-z-done-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  body dialog.gl-z.gl-z-kbd .gl-z-panel { max-height: calc(var(--gl-z-vvh, 100dvh) - 8px); }
}

/* A dialog marked gl-z--sheet stays a sheet on tablets, up to 1023 px, where the site uses its phone layout: the
   service pages' request forms (b-services.php). The phone rules above cover it under 600 px. Each selector here has
   two classes, so the open state (is-in) still brings the panel up, and the reduced-motion rules below still win. */
@media (min-width: 600px) and (max-width: 1023px) {
  body dialog.gl-z--sheet {
    --gl-z-ease: cubic-bezier(.32, .72, 0, 1);
    --gl-z-in: 280ms;
    --gl-z-out: 200ms;
    padding: 0;
  }
  body dialog.gl-z--sheet[open] { place-items: end stretch; }
  body dialog.gl-z--sheet .gl-z-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: var(--gl-radius) var(--gl-radius) 0 0;
    box-shadow: 0 -8px 28px rgba(16, 29, 69, .18);
    opacity: 1;
    transform: translateY(100%);
  }
  body dialog.gl-z--sheet .gl-z-head { padding: 26px max(24px, env(safe-area-inset-right, 0px)) 16px max(24px, env(safe-area-inset-left, 0px)); touch-action: none; -webkit-user-select: none; user-select: none; }
  body dialog.gl-z--sheet .gl-z-grip { display: block; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: var(--gl-radius); background: var(--gl-field); }
  body dialog.gl-z--sheet .gl-z-body { padding: 20px max(24px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); }
  body dialog.gl-z--sheet.gl-z-kbd .gl-z-panel { max-height: calc(var(--gl-z-vvh, 100dvh) - 8px); }
}

/* Reduced motion: a plain fade, a little quicker, with nothing moving. restyle.css cuts transitions with !important
   there, so the fades say their durations the same way. */
@media (prefers-reduced-motion: reduce) {
  body dialog.gl-z { --gl-z-in: 160ms; --gl-z-out: 120ms; }
  body dialog.gl-z .gl-z-scrim, body dialog.gl-z .gl-z-panel { transition-duration: var(--gl-z-out) !important; }
  body dialog.gl-z.is-in .gl-z-scrim, body dialog.gl-z.is-in .gl-z-panel { transition-duration: var(--gl-z-in) !important; }
  body dialog.gl-z .gl-z-panel, body dialog.gl-z.is-in .gl-z-panel { transform: none; }
  body dialog.gl-z .gl-z-panel { opacity: 0; }
  body dialog.gl-z.is-in .gl-z-panel { opacity: 1; }
  body .gl-z label.gl-z-tile:active, body .gl-z button:active { transform: none !important; }
  body .gl-z .gl-z-tile-mark .gl-i { transform: none !important; }
}

/* The message form's own parts. A field or group meant for one kind of message is hidden for the others, and the
   field rules above set display, so [hidden] needs the help. */
body .gl-z [data-gl-m-only][hidden], body .gl-z .gl-z-hint[hidden], body .gl-z .gl-m-phone-opt[hidden], body .gl-z .gl-z-done-list[hidden] { display: none !important; }
body .gl-z-for-name:empty { display: none; }
body .gl-z-for:has(> .gl-z-for-name:empty + .gl-z-for-where:empty) { display: none; }
body .gl-z .gl-m-to-mark { display: flex; align-items: center; justify-content: center; border-radius: var(--gl-radius); background: var(--gl-navy); color: #fff; }
body .gl-z .gl-m-to-mark .gl-i { width: 24px; height: 24px; }
body dialog.gl-m textarea { min-height: 120px !important; }
