/* form-library.css ... the sign-up form header styles, shared by every two-step template.
   See form-library.js for the styles and docs/form-library.html for the preview. Colours come
   from the client's brand tokens (--primary, --primary-deep, --red, --ink, --line, --muted),
   so nothing here changes per client. Type is 16px or larger on phones, 18px on the main lines. */

.fh { --fh-ink: var(--ink, #16212A); --fh-deep: var(--primary-deep, #1F6B6B); --fh-pale: var(--primary-pale, #E6F2F1);
  --fh-red: var(--red, #B0323F); --fh-line: var(--line, #D7E3E2); --fh-muted: var(--muted, #5B6770);
  font-family: var(--font-accent, var(--font-body, inherit)); line-height: 1.25; }
#form-header[data-form-style] { margin: 0; }
/* webinar-b's card has 32px padding; the header runs edge to edge */
.fh-host-padded[data-form-style] { margin: -32px -32px 18px; }

.fh-title { background: var(--fh-ink); color: #fff; text-align: center; font-weight: 900; font-size: 22px;
  letter-spacing: .06em; text-transform: uppercase; padding: 16px 18px; }
.fh-demand { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--fh-red); color: #fff; font-weight: 800; font-size: 18px; padding: 10px 18px; letter-spacing: .02em; }
.fh-live { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; white-space: nowrap; }
.fh-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: fh-blink 1.4s infinite; }
.fh-count { font-weight: 600; white-space: nowrap; }
.fh-count:empty { display: none; }
@keyframes fh-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .fh-dot { animation: none; } }

/* tile */
.fh-when { display: flex; gap: 16px; align-items: center; padding: 20px 22px 4px; text-align: left; }
.fh-when-tbd { display: block; text-align: center; font-weight: 800; font-size: 22px; color: var(--fh-deep); padding: 18px 22px 4px; }
.fh-tile { width: 92px; flex: none; border-radius: 14px; overflow: hidden; text-align: center; background: #fff;
  border: 1px solid var(--fh-line); box-shadow: 0 4px 12px rgba(22, 33, 42, .15); }
.fh-tile-m { background: var(--fh-red); color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 0; }
.fh-tile-d { font-size: 44px; font-weight: 900; line-height: 1; padding: 8px 0 2px; color: var(--fh-ink); }
.fh-tile-w { font-size: 16px; font-weight: 700; color: var(--fh-muted); padding-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.fh-time { min-width: 0; }
.fh-big { font-size: 30px; font-weight: 900; color: var(--fh-deep); line-height: 1.1; }
.fh-zone { font-size: 18px; color: var(--fh-muted); margin-top: 4px; }
.fh-visitor { font-size: 16px; color: var(--fh-muted); margin-top: 2px; }
.fh-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: var(--fh-pale); color: var(--fh-deep);
  font-weight: 700; font-size: 16px; border-radius: 999px; padding: 4px 12px; }

/* countdown */
.fh-countdown-style .fh-title { background: transparent; color: var(--fh-ink); padding: 14px 18px 0; letter-spacing: .01em; text-transform: none; font-size: 26px; }
.fh-countdown-style .fh-demand { justify-content: center; background: #FFF3F3; color: var(--fh-red); border-radius: 999px;
  margin: 18px auto 0; width: max-content; max-width: calc(100% - 36px); padding: 6px 14px; font-size: 16px; letter-spacing: .08em; }
.fh-countdown-style .fh-demand .fh-dot { background: var(--fh-red); }
.fh-box { margin: 14px 20px 0; border: 2px solid var(--fh-deep); border-radius: 16px; padding: 14px 16px; text-align: center; background: var(--fh-pale); }
.fh-box-day { font-size: 24px; font-weight: 900; color: var(--fh-ink); }
.fh-box-time { font-size: 28px; font-weight: 900; color: var(--fh-deep); margin-top: 2px; }
.fh-box-zones { font-size: 18px; color: var(--fh-muted); margin-top: 4px; }
.fh-box .fh-visitor { font-size: 16px; }
.fh-cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 20px 4px; }
.fh-cd div { background: var(--fh-ink); color: #fff; border-radius: 12px; text-align: center; padding: 10px 0 8px; }
.fh-cd b { display: block; font-size: 28px; font-weight: 900; line-height: 1; }
.fh-cd span { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }

@media (max-width: 420px) {
  .fh-demand { font-size: 16px; padding: 9px 14px; }
  .fh-box-day { font-size: 21px; }
  .fh-box-time { font-size: 26px; }
  .fh-when { gap: 12px; padding: 16px 16px 4px; }
  .fh-tile { width: 80px; }
  .fh-tile-d { font-size: 38px; }
  .fh-big { font-size: 26px; }
}
