/* Escalate webinar registration. The form uses the contact form's own classes
   (esc-form, esc-form__row, esc-form__error, esc-form__hp, esc-btn) from the
   theme's tokens.css, so only what those do not cover is here. */
.esc-webinar { scroll-margin-top: 6rem; }
.esc-webinar__form input,
.esc-webinar__form select { width: 100%; min-width: 0; box-sizing: border-box; }
.esc-webinar__form label { min-width: 0; }
.esc-webinar .esc-webinar__optional { display: inline; font-weight: 400; color: var(--muted, #5B5E6E); }
.esc-webinar__field-error { font-weight: 600; font-size: .86rem; color: var(--orange-dark, #C9741F); }
.esc-webinar__field-error:empty { display: none; }
.esc-webinar__form [aria-invalid="true"] { border-color: var(--orange-dark, #C9741F); }
.esc-webinar__form button[disabled] { opacity: .6; cursor: progress; }
.esc-webinar__thanks:focus { outline: none; }
.esc-webinar__thanks-title { margin: 0; }
.esc-webinar__thanks-text { margin: 0; }
.esc-webinar [hidden] { display: none !important; }
/* Step one has only four fields since 1.2.0, so the card is drawn larger to
   hold its own beside the results column (Rene, 3 Nov 2026), and it stays in
   view while that column scrolls past instead of leaving an empty patch. */
@media (min-width: 900px) {
	/* The column that holds the form is the grid item, so it is what sticks. */
	:where(div):has(> .esc-webinar) { position: sticky; top: 7rem; align-self: start; }
	.esc-webinar .esc-form { padding: 3rem; gap: 1.75rem; }
	.esc-webinar .esc-form__row { gap: 1.5rem; }
	/* Names share a row; work email and company each get a full row. */
	.esc-webinar__form .esc-form__row + .esc-form__row { grid-template-columns: 1fr; gap: 1.75rem; }
	.esc-webinar label { font-size: 1.125rem; gap: .6rem; }
	.esc-webinar__form input,
	.esc-webinar__details input,
	.esc-webinar__details select { min-height: 4.25rem; font-size: 1.125rem; padding-inline: 1.1rem; }
	.esc-webinar__form button[type="submit"] { min-height: 4.25rem; font-size: 1.25rem; margin-top: .5rem; }
}
/* Phones, where the theme stacks the two columns (560px, tokens.css): the
   form comes straight after the heading and date, the results after it
   (Rene, 4 Nov 2026). The copy column is unwrapped so its pieces can be
   ordered around the form column. */
@media (max-width: 560px) {
	.esc-2col:has(.esc-webinar) { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.esc-2col:has(.esc-webinar) > :not(:has(.esc-webinar)) { display: contents; }
	.esc-2col:has(.esc-webinar) > :has(.esc-webinar) { order: 1; margin: 1.25rem 0 0; }
	.esc-2col:has(.esc-webinar) .wp-block-spacer,
	.esc-2col:has(.esc-webinar) .esc-proof { order: 2; }
	.esc-2col:has(.esc-webinar) > :not(:has(.esc-webinar)) > .esc-proof { margin-block-start: 2.5rem; }
	.esc-2col:has(.esc-webinar) > :not(:has(.esc-webinar)) > * { margin-block-start: 0; }
	.esc-2col:has(.esc-webinar) > :not(:has(.esc-webinar)) > h2 + p { margin-block-start: 1rem; }
	#register:has(.esc-webinar) { scroll-margin-top: 1.5rem; }
}
/* Step two: the optional questions, shown in place after registering. */
.esc-webinar__more:focus,
.esc-webinar__done:focus { outline: none; }
.esc-webinar__details { display: grid; gap: 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line, #E3E5EC); }
.esc-webinar__details input,
.esc-webinar__details select { width: 100%; min-width: 0; box-sizing: border-box; }
.esc-webinar__intro { margin: 0; font-weight: 600; }
.esc-webinar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.esc-webinar__skip { background: none; border: 0; padding: .25rem 0; font: inherit; font-weight: 600; color: var(--muted, #5B5E6E); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.esc-webinar__skip:hover { color: inherit; }
.esc-webinar__done { margin: 1.25rem 0 0; font-weight: 600; }
@media (max-width: 560px) {
	.esc-webinar .esc-form__row { grid-template-columns: 1fr; }
	.esc-webinar .esc-form { padding: 1.25rem; }
}
