/* =====================================================================
   Essence of Image — M8 "Apply to be represented".

   Borrows the site's own form language rather than inventing one:
   .compform / .ff / .fld-err / .submit / .form-msg all come straight from
   style.css. Everything here is the wrapper around them.

   The block sits inside .sponsor-grid, so it spans both columns and rules
   off from the inquiry form above it.
   ===================================================================== */

.eoi-apply {
	grid-column: 1 / -1;
	margin-top: clamp( 34px, 5vw, 66px );
	padding-top: clamp( 28px, 4vw, 48px );
	border-top: 1px solid var(--line);
}

.eoi-apply__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: clamp( 18px, 4vw, 48px );
	flex-wrap: wrap;
}

.eoi-apply__intro { max-width: 46ch; }

.eoi-apply__intro h3 {
	margin-top: 10px;
	font-family: var(--display);
	font-size: clamp( 30px, 4.4vw, 52px );
	line-height: .92;
	letter-spacing: .03em;
	text-transform: uppercase;
	font-weight: 400;
}

.eoi-apply__intro p {
	margin-top: 14px;
	color: var(--ash-d);
	font-size: 15px;
	line-height: 1.65;
}

/* Ghost button — the inquiry form keeps the filled one, so this reads as
   the secondary path it is. */
.eoi-apply__toggle {
	flex: 0 0 auto;
	background: none;
	color: var(--ink);
	border: 1px solid var(--line-field);
	padding: 14px 26px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background var(--t-fast) ease, color var(--t-fast) ease, border-color var(--t-fast) ease;
}

.eoi-apply__toggle:hover,
.eoi-apply__toggle:focus-visible {
	background: var(--accent);
	color: var(--accent-on);
	border-color: var(--accent);
}

.eoi-apply__noscript {
	margin-top: 18px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.8;
	color: var(--ash-d);
}
.eoi-apply__noscript a { border-bottom: 1px solid var(--line-field); }

.eoi-apply__panel { margin-top: clamp( 22px, 3vw, 34px ); }
.eoi-apply__panel .compform { max-width: 720px; }

/* ---- photos ---------------------------------------------------------- */

.eoi-apply__files { margin-top: 6px; }

.eoi-apply__files input[type="file"] {
	width: 100%;
	border: 1px dashed var(--line-field);
	border-bottom: 1px dashed var(--line-field);
	padding: 14px;
	font-family: var(--mono);
	font-size: 11px;
	letter-spacing: .08em;
	color: var(--ash-d);
	cursor: pointer;
}
.eoi-apply__files input[type="file"]:focus { border-color: var(--accent); }

.eoi-apply__files input[type="file"]::file-selector-button {
	margin-right: 14px;
	background: var(--ink);
	color: var(--paper);
	border: 0;
	padding: 9px 16px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	cursor: pointer;
}

.eoi-apply__previews {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 14px;
}
.eoi-apply__previews:empty { display: none; }

.eoi-apply__previews li {
	width: 84px;
	display: grid;
	gap: 5px;
}
.eoi-apply__previews img {
	width: 84px;
	height: 108px;
	object-fit: cover;
	border: 1px solid var(--line);
	filter: grayscale(var(--gs));
}
.eoi-apply__previews span {
	font-family: var(--mono);
	font-size: 9px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ash-d);
}

.eoi-apply__hint,
.eoi-apply__fine {
	margin-top: 10px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .1em;
	line-height: 1.9;
	text-transform: uppercase;
	color: var(--ash-d);
}
.eoi-apply__fine { margin-top: 16px; }

.eoi-apply__minor {
	margin-top: 7px;
	font-family: var(--mono);
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	line-height: 1.7;
	color: var(--ink);
}

@media ( max-width: 860px ) {
	.eoi-apply__head { align-items: flex-start; }
	.eoi-apply__toggle { width: 100%; }
}

@media ( prefers-reduced-motion: reduce ) {
	.eoi-apply__toggle { transition: none; }
}
