/*
 * Contact (/contact/, inc/contact.php). Loaded after base.css, character.css and cards.css (the hero on key art: .ops-hero).
 * Type, colour and spacing come from theme.json presets; spacing steps only: 4, 8, 12, 16, 24, 40, 72.
 * Phone (≤ 781): the topics, then the form full width; About text, then its art; the two 90s panels stacked; nothing scrolls sideways.
 * The form is Fluent Forms: its fields are restyled here to the site's own (the Contact board's fields and yellow button).
 */

/* ---------- Hero: shorter than the set pages; Contact us and Retailers on one line ---------- */
.opct-hero { min-height: 520px; }
/* The art fades into the table on its left edge, so there is no hard line where it starts, and it is not zoomed, so the
   figure keeps its head (Mr Manager, 22 Oct 22:21: "the image is cut … fade it out so it's nice and pretty"). */
/* The hero art follows the shared rule (cards.css .ops-hero__art; Maggie here was its model, 24 Oct). */
.opct-hero { --hero-pos: var(--opct-hero-pos, 50% 30%); --hero-pos-phone: var(--opct-hero-pos-phone, 50% 0); }
.opct-hero__buttons { align-items: center; gap: 24px; }
.opct-hero__link { margin: 0; }

/* ---------- Talk to the right team (5 of 12 columns) beside the form (7 of 12): the form is the only way to contact us
   (Mr Manager, 15 Oct); 22 Oct 21:46: alone and centred it was still sized for the old two columns ---------- */
.opct-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.opct-side { grid-column: 1 / span 5; padding-right: 24px; }
.opct-side__lead { margin: 0 0 24px; font-size: var(--wp--preset--font-size--body); line-height: 1.6; }
.opct-topics { list-style: none; margin: 0; padding: 0; }
.opct-topic { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; padding: 16px 0; border-top: 1px solid var(--wp--custom--line--divider); }
.opct-topic:last-child { border-bottom: 1px solid var(--wp--custom--line--divider); }
.opct-ico { grid-row: 1 / span 2; width: 24px; height: 24px; padding: 8px; border-radius: 50%; color: var(--wp--preset--color--cyan); background: rgba(92, 225, 230, .1); box-shadow: inset 0 0 0 1px rgba(92, 225, 230, .35); }
.opct-topic__t { grid-column: 2; font-family: var(--wp--preset--font-family--label); font-weight: 600; font-size: var(--wp--preset--font-size--label); line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--text); }
.opct-topic__l { grid-column: 2; }
.opct-topic__l a { color: var(--wp--preset--color--cyan); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.opct-form { grid-column: 6 / span 7; padding: 40px; scroll-margin-top: 96px; }
.opct-form__intro { margin-bottom: 24px; }
.opct-form__note { margin-top: 16px; }
.opct-form__mail { margin-top: 8px; }
.opct-mail { color: var(--wp--preset--color--cyan); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* ---------- The form fields (Fluent Forms), in the site's look ---------- */
.opct-form .fluentform { margin: 0; }
.opct-form .fluentform fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.opct-form .fluentform .ff-t-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.opct-form .fluentform .ff-t-container .ff-t-cell { width: auto; padding: 0; }
.opct-form .fluentform .ff-el-group { margin: 0 0 24px; }
.opct-form .fluentform .ff-el-input--label { margin: 0 0 12px; }
.opct-form .fluentform .ff-el-input--label label { display: block; margin: 0; font-family: var(--wp--preset--font-family--label); font-weight: 600; font-size: 16px; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.opct-form .fluentform .ff-el-input--label.asterisk-right label::after { color: var(--wp--preset--color--error); margin-left: 4px; }
.opct-form .fluentform .ff-el-form-control {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 48px;
	padding: 0 16px;
	background: var(--wp--preset--color--ground);
	border: 1px solid rgba(147, 166, 206, .35);
	border-radius: 2px;
	box-shadow: none;
	color: var(--wp--preset--color--text);
	font: 16px/1.4 var(--wp--preset--font-family--body);
}
.opct-form .fluentform textarea.ff-el-form-control { min-height: 200px; padding: 12px 16px; resize: vertical; }
/* The topic list in the same look as the fields: no system arrow, a cyan chevron instead (22 Oct: fix up the form). */
.opct-form .fluentform select.ff-el-form-control { -webkit-appearance: none; appearance: none; padding-right: 48px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 12 12' fill='none' stroke='%235CE1E6' stroke-width='1.6'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px; }
.opct-form .fluentform select.ff-el-form-control option { color: var(--wp--preset--color--text); background: var(--wp--preset--color--ground); }
.opct-form .fluentform .ff-el-form-control::placeholder { color: var(--wp--preset--color--dim); }
.opct-form .fluentform .ff-el-form-control:focus { outline: 2px solid var(--wp--preset--color--cyan); outline-offset: 1px; border-color: var(--wp--preset--color--cyan); }
.opct-form .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--wp--preset--color--error); }
.opct-form .fluentform .error, .opct-form .fluentform .text-danger { margin-top: 8px; color: var(--wp--preset--color--error); font-size: var(--wp--preset--font-size--caption); }
/* Error lines sit in the gap under their field, out of the flow: when Fluent Forms removes one (on leaving a fixed field), nothing
   below it moves, so the click that left the field (Send message) still lands (the Creators fix, 22 Oct). */
.opct-form .fluentform .ff-el-group { position: relative; }
.opct-form .fluentform .ff-el-group > .ff-el-input--content > .error,
.opct-form .fluentform .ff-el-group > .ff-el-input--content > .text-danger { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; line-height: 1.3; }
/* "(optional)" after a label (the Title field, 22 Oct 22:51). */
.opct-form .fluentform .opct-opt { font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: var(--wp--preset--font-size--caption); letter-spacing: 0; text-transform: none; color: var(--wp--preset--color--dim); }
/* The captcha's spot (Cloudflare Turnstile, once its keys are in Fluent Forms): above the button, its height kept so nothing jumps while it loads. */
.opct-form .fluentform .ff-el-turnstile, .opct-form .fluentform .cf-turnstile { min-height: 65px; }
/* The submit button: the site's yellow die-cut button on its red base (base.css .wp-block-button / .wp-block-button__link).
   Fluent Forms writes its own button colours inline (its button style setting), so background, colour and border are !important here. */
.opct-form .fluentform .ff_submit_btn_wrapper { margin: 8px 0 0; filter: drop-shadow(0 4px 0 #A3121A) drop-shadow(0 10px 16px rgba(0, 0, 0, .55)); }
.opct-form .fluentform .ff-btn-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border: 0 !important;
	border-radius: 0;
	clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
	background: linear-gradient(180deg, #FFF6A0 0%, #F7EC52 22%, #F0E437 55%, #D8C31C 100%) !important;
	box-shadow: inset 0 2px 0 rgba(255, 255, 255, .75), inset 0 -3px 0 rgba(120, 90, 0, .35);
	color: var(--wp--preset--color--yellow-ink) !important;
	font-family: var(--wp--preset--font-family--label);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--button);
	letter-spacing: .08em;
	text-transform: uppercase;
	text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
	white-space: nowrap;
	cursor: pointer;
	opacity: 1;
}
.opct-form .fluentform .ff-btn-submit:hover { background: linear-gradient(180deg, #FFFAC4 0%, #FAF06A 25%, #F4E94A 60%, #E0CB24 100%) !important; }
.opct-form .fluentform .ff-btn-submit:focus-visible { outline: 2px solid var(--wp--preset--color--cyan); outline-offset: 4px; }
.opct-form .fluentform .ff-message-success { margin: 0; padding: 16px; border: 1px solid var(--wp--custom--line--panel); border-radius: 2px; background: var(--wp--preset--color--panel-2); color: var(--wp--preset--color--text); box-shadow: none; }

/* ---------- About: the story beside the Michonne key art, then the two 90s panels ---------- */
.opct-about__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.opct-about__copy { grid-column: span 6; }
.opct-about__body { margin: 0; max-width: 620px; line-height: 1.6; }
.opct-about__art { grid-column: 7 / span 6; position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--wp--custom--radius--panel); background: var(--wp--preset--color--ground); }
.opct-about__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.opct-about__credit { position: absolute; right: 8px; bottom: 8px; margin: 0; padding: 4px 8px; border-radius: 2px; color: #DCE6F5; background: rgba(6, 12, 36, .82); }
.opct-nineties { margin: 72px 0 24px; }
.opct-then__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.opct-then .oph-h3 { font-size: 24px; margin-bottom: 12px; }
.opct-then__list { margin: 16px 0 0; padding-left: 20px; }
.opct-then__list li + li { margin-top: 8px; }
.opct-then__link { margin-top: auto; padding-top: 24px; }
.opct-pools { margin-top: 16px; }

/* ---------- Phone ---------- */
@media (max-width: 781px) {
	.opct-hero { min-height: 0; }
	.opct-hero__buttons { gap: 12px; }
	.opct-grid, .opct-about__row, .opct-then__grid { grid-template-columns: minmax(0, 1fr); }
	.opct-form, .opct-side, .opct-about__copy, .opct-about__art { grid-column: auto; }
	.opct-form { padding: 16px; }
	.opct-grid { row-gap: 24px; }
	.opct-side { padding-right: 0; }
	.opct-topic { padding: 12px 0; }
	.opct-topic__t { font-size: var(--wp--preset--font-size--small); }
	.opct-form .fluentform .ff-t-container { grid-template-columns: minmax(0, 1fr); }
	.opct-form .fluentform .ff_submit_btn_wrapper, .opct-form .fluentform .ff-btn-submit { width: 100%; }
	.opct-nineties { margin-top: 40px; }
}
