/*!
 * MLH booking widget styling.
 *
 * Kept in its own file, not inlined by the widget, so the same rules apply
 * whether the widget is mounted on the standalone booking page or inside the
 * Contact section of the single-page site. Variables fall back to literal
 * values so the widget still looks right on a page that does not define the
 * site's custom properties.
 */

#mlh-booking {
  --mlhb-gold: var(--gold, #f5c542);
  --mlhb-gold-2: var(--gold-2, #ffdf72);
  --mlhb-text: var(--text, #f7f1df);
  --mlhb-muted: var(--muted, #b9b2a4);
  --mlhb-line: var(--line, rgba(245, 197, 66, 0.22));
  --mlhb-card: var(--bg-card, #171717);
  text-align: left;
}

#mlh-booking .mlhb-card {
  background: var(--mlhb-card);
  border: 1px solid var(--mlhb-line);
  border-radius: 22px;
  padding: 28px;
  color: var(--mlhb-text);
}

#mlh-booking .mlhb-title {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--mlhb-text);
}

#mlh-booking .mlhb-blurb,
#mlh-booking .mlhb-loading {
  color: var(--mlhb-muted);
  margin: 0 0 18px;
  font-size: .96rem;
}

#mlh-booking .mlhb-step { margin-top: 22px; }

#mlh-booking .mlhb-label {
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--mlhb-gold);
  margin: 0 0 10px;
}

#mlh-booking .mlhb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

#mlh-booking .mlhb-chip {
  font: inherit;
  font-weight: 700;
  font-size: .92rem;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--mlhb-text);
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--mlhb-line);
  transition: .18s ease;
  /* 44px is the usual minimum tap target; times are the thing people fumble
     on a phone, and a mis-tap here books the wrong appointment. */
  min-height: 44px;
}

#mlh-booking .mlhb-chip:hover { border-color: var(--mlhb-gold); }

#mlh-booking .mlhb-chip.on {
  background: var(--mlhb-gold);
  border-color: var(--mlhb-gold);
  color: #101010;
}

#mlh-booking .mlhb-chip:focus-visible,
#mlh-booking .mlhb-btn:focus-visible,
#mlh-booking input:focus-visible,
#mlh-booking textarea:focus-visible {
  outline: 3px solid var(--mlhb-gold-2);
  outline-offset: 2px;
}

#mlh-booking .mlhb-form {
  display: grid;
  gap: 14px;
  max-width: 460px;
}

#mlh-booking .mlhb-field { display: grid; gap: 6px; }

#mlh-booking .mlhb-field > span {
  font-size: .9rem;
  color: var(--mlhb-muted);
}

#mlh-booking input,
#mlh-booking textarea {
  font: inherit;
  font-size: 16px; /* under 16px, iOS Safari zooms the page on focus */
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--mlhb-text);
  background: rgba(0, 0, 0, .38);
  border: 1px solid var(--mlhb-line);
  width: 100%;
}

#mlh-booking textarea { min-height: 92px; resize: vertical; }

#mlh-booking .mlhb-err,
#mlh-booking .mlhb-formerr {
  color: #ff8080;
  font-size: .86rem;
  font-style: normal;
}

#mlh-booking .mlhb-err:empty,
#mlh-booking .mlhb-formerr:empty { display: none; }

#mlh-booking .mlhb-summary {
  color: var(--mlhb-muted);
  font-size: .92rem;
  margin: 2px 0 0;
}

#mlh-booking .mlhb-btn {
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

#mlh-booking .mlhb-btn-primary {
  color: #0b0b0b;
  background: linear-gradient(135deg, var(--mlhb-gold), var(--mlhb-gold-2));
  box-shadow: 0 14px 32px rgba(245, 197, 66, .22);
}

#mlh-booking.mlhb-busy .mlhb-btn { opacity: .6; pointer-events: none; }

#mlh-booking .mlhb-none { display: grid; gap: 12px; justify-items: start; }

#mlh-booking .mlhb-when {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--mlhb-gold);
  margin: 0 0 10px;
}

/* Off-screen rather than display:none -- a bot that skips hidden fields will
   still fill this one, which is the whole point of it. */
#mlh-booking .mlhb-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 560px) {
  #mlh-booking .mlhb-card { padding: 20px; }
  #mlh-booking .mlhb-chip { flex: 1 1 calc(50% - 5px); }
}
