/* Form block (blocks/form.php). The sign-up card copies the live in-article card: white, a pink left edge, the book
 * cover, a mono kicker, a display headline, the field and the pink button on one line, fine print under it. */
.oyb-form { margin: 1.8em 0; font-family: var(--oyb-font-body); color: var(--oyb-color-ink); }
.oyb-form * { box-sizing: border-box; }
.oyb-form.oyb-form :is(p, fieldset, legend) { margin: 0; } /* doubled: the theme spaces paragraphs in content with a stronger selector */
.oyb-form.is-card {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 24px; background: var(--oyb-color-surface);
	border: 2px solid var(--oyb-color-line); border-left: 4px solid var(--oyb-color-pink); border-radius: var(--oyb-radius, 16px);
}
.oyb-form.is-card.has-cover { grid-template-columns: 180px minmax(0, 1fr); align-items: center; }
.oyb-form__cover img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 12px 28px -12px rgba(26, 26, 46, .45); }
.oyb-form__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.oyb-form__kicker { font: 700 11px/1.2 var(--oyb-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--oyb-color-pink-deep); }
.oyb-form__h { font: 900 21px/1.25 var(--oyb-font-display); color: var(--oyb-color-ink); text-wrap: balance; }
.oyb-form__text { font-size: 15px; line-height: 1.55; color: var(--oyb-color-text); }
.oyb-form__form { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.oyb-form__row { display: flex; gap: 10px; }
.oyb-form .oyb-form__input {
	width: 100%; min-width: 0; margin: 0; padding: 12px 14px; font: 400 16px/1.3 var(--oyb-font-body); color: var(--oyb-color-ink);
	background: color-mix(in srgb, var(--oyb-color-blue-tint) 28%, var(--oyb-color-surface)); border: 2px solid var(--oyb-color-line);
	border-radius: 12px; box-shadow: none; transition: border-color .2s ease, background-color .2s ease;
}
.oyb-form .oyb-form__input:focus { outline: none; border-color: var(--oyb-button-hover); background: var(--oyb-color-surface); }
.oyb-form .oyb-form__input[aria-invalid="true"] { border-color: var(--oyb-tone-bad); } /* the field the message names */
.oyb-form .oyb-form__input::placeholder { color: var(--oyb-color-subtle); }
.oyb-form .oyb-form__btn, .oyb-form .oyb-form__btn:visited {
	flex: none; margin: 0; padding: 12px 22px; border: 0; border-radius: 8px; background: var(--oyb-button); color: #fff;
	font: 800 16px/1.3 var(--oyb-font-body); cursor: pointer; white-space: nowrap; box-shadow: none;
	transition: background-color .3s ease-in-out, box-shadow .3s ease-in-out, opacity .2s ease;
}
@media (hover: hover) { .oyb-form .oyb-form__btn:hover:not(:disabled) { background: var(--oyb-button-hover); box-shadow: 0 0 25px -5px var(--oyb-button-hover); } }
.oyb-form .oyb-form__btn:focus-visible { outline: 2px solid var(--oyb-button-hover); outline-offset: 2px; }
.oyb-form .oyb-form__btn:disabled { opacity: .6; cursor: default; }
.oyb-form__form.is-busy .oyb-form__btn { cursor: progress; }
.oyb-form__fine { font-size: 12px; line-height: 1.45; color: var(--oyb-color-muted); }
.oyb-form__msg { padding: 10px 14px; border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--oyb-tone-good); background: color-mix(in srgb, var(--oyb-tone-good) 10%, var(--oyb-color-surface)); outline: none; }
.oyb-form__msg.is-bad { color: var(--oyb-tone-bad); background: color-mix(in srgb, var(--oyb-tone-bad) 9%, var(--oyb-color-surface)); }
.oyb-form__form.is-done :is(.oyb-form__row, .oyb-form__fine, .oyb-form__who, .oyb-form__two, .oyb-form__f, .oyb-form__send) { display: none; }
.oyb-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.oyb-form .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Compact: the field and button alone (a heading if given), for a footer band or a landing page. */
.oyb-form.is-compact { display: flex; flex-direction: column; gap: 10px; }
.oyb-form.is-compact .oyb-form__form { margin: 0; }
.wp-block-group.is-style-oyb-band .oyb-form.is-compact .oyb-form__h { color: #fff; }
.wp-block-group.is-style-oyb-band .oyb-form__fine { color: #c9c7e0; }

/* Contact: a card like the product cards (white, 2px border, 16px corners), each person picked by their byline photo and
 * role, a pink asterisk on the fields that need filling (Derek, 2026-10-17). */
.oyb-form.is-contact {
	box-sizing: border-box; max-width: 640px; margin: 1.6em auto; padding: 28px; background: var(--oyb-color-surface);
	border: 2px solid var(--oyb-color-blue-tint); border-radius: var(--oyb-radius, 16px);
}
.oyb-form.is-contact .oyb-form__form { gap: 18px; margin: 0; }
.oyb-form__who { border: 0; padding: 0; min-width: 0; }
.oyb-form__who legend, .oyb-form__f label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--oyb-color-ink); }
.oyb-form__req, .oyb-form__note span { color: var(--oyb-color-pink); font-weight: 800; }
.oyb-form__picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.oyb-form__pick { position: relative; display: block; cursor: pointer; }
.oyb-form__pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oyb-form__person {
	display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 14px 10px 10px; border-radius: 12px;
	border: 2px solid var(--oyb-color-line); background: var(--oyb-color-surface); transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.oyb-form__person img { flex: none; width: 44px; height: 44px; margin: 0; border-radius: 50%; object-fit: cover; }
.oyb-form__pn { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.oyb-form__pn b { font-size: 15px; line-height: 1.25; font-weight: 800; color: var(--oyb-color-ink); }
.oyb-form__pn small { font-size: 12.5px; line-height: 1.35; color: var(--oyb-color-muted); }
@media (hover: hover) { .oyb-form__pick:hover .oyb-form__person { border-color: color-mix(in srgb, var(--oyb-color-pink) 45%, var(--oyb-color-line)); } }
.oyb-form__pick input:checked + .oyb-form__person { border-color: var(--oyb-color-pink); background: color-mix(in srgb, var(--oyb-color-pink) 7%, var(--oyb-color-surface)); box-shadow: 0 8px 18px -10px rgba(237, 54, 126, .35); }
.oyb-form__pick input:focus-visible + .oyb-form__person { outline: 2px solid var(--oyb-button-hover); outline-offset: 2px; }
.oyb-form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oyb-form.is-contact textarea.oyb-form__input { resize: vertical; min-height: 150px; }
.oyb-form__send { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.oyb-form.is-contact .oyb-form__btn { display: inline-flex; align-items: center; gap: .45em; min-height: 48px; padding: .45em 1.3em; font-size: 17px; }
.oyb-form.is-contact .oyb-form__btn svg { width: 1em; height: 1em; transition: transform .2s ease; }
@media (hover: hover) { .oyb-form.is-contact .oyb-form__btn:hover:not(:disabled) svg { transform: translateX(3px); } }
.oyb-form__note { font-size: 13px; color: var(--oyb-color-muted); }

@media (max-width: 600px) {
	.oyb-form.is-card { padding: 18px; }
	.oyb-form.is-card.has-cover { grid-template-columns: 1fr; }
	.oyb-form__cover { max-width: 150px; }
	.oyb-form__row { flex-direction: column; }
	.oyb-form .oyb-form__btn { width: 100%; }
	.oyb-form__two { grid-template-columns: 1fr; }
	.oyb-form.is-contact { padding: 18px; margin-inline: 16px; } /* a full-width page gives it no gutter */
	.oyb-form__picks { grid-template-columns: 1fr; }
	.oyb-form__send { flex-direction: column-reverse; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { .oyb-form * { transition: none !important; } }
