/*
 * Jordan Festival — Become a Volunteer.
 * An ivory opening (label with the red rule, the title, a short
 * introduction, a navy postage stamp with the emblem, a keffiyeh edge),
 * then "Why volunteer" and "How it works" on white, then one sheet: the
 * navy panel beside the application form. The sheet and form are the
 * Contact page's material.
 */

/* Display serif (SIL OFL, self-hosted), as on the other pages. */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/playfair-display-600-0000.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

.vo {
	--vo-ivory: #FBF8F2;
	--vo-ivory-line: #EAE3D7;
	--vo-card: #FFFDF9;
	--vo-line-strong: #CDBFA9;
	--vo-error: #B5161C;
	--vo-ok: #1E6B35;
	--vo-pad: 64px;
}

/* Administrator preview notice ----------------------------------------- */
.vo-preview { padding: 14px 0; background: #FFF4D6; border-bottom: 1px solid #E8D49A; color: #5A4300; font-size: 15px; line-height: 1.55; }

/* Opening ------------------------------------------------------------ */
.vo-open {
	position: relative;
	overflow: hidden;
	padding: 72px 0 80px;
	background: var(--vo-ivory);
	border-bottom: 1px solid var(--vo-ivory-line);
}
.vo-open__keffiyeh {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-end: 0;
	width: clamp(14px, calc((100vw - 1280px) / 2 - 8px), 40px);
	overflow: hidden;
	pointer-events: none;
}
.vo-open__keffiyeh .keffiyeh-fragment__img {
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	height: 100%;
	width: auto;
	max-width: none;
}
[dir="rtl"] .vo-open__keffiyeh .keffiyeh-fragment__img { transform: scaleX(-1); }
.vo-open__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 32px;
	align-items: center;
}
.vo-open__head { grid-column: 1 / span 7; min-width: 0; }
.vo-kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--jf-navy);
}
.vo-rule { flex: none; width: 28px; height: 2px; background: var(--jf-red); }
.vo-open__title {
	margin-top: 20px;
	font-family: var(--jf-serif);
	font-size: clamp(44px, 4.6vw, 68px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -.01em;
	color: var(--jf-navy);
	overflow-wrap: break-word;
	text-wrap: balance;
}
.vo-open__intro {
	margin-top: 24px;
	max-width: 34em;
	font-size: 18px;
	line-height: 1.7;
	color: var(--jf-ink-2);
	text-wrap: pretty;
}
.vo-open__cta { margin-top: 32px; gap: 10px; }
.vo-open__stamp {
	--stamp-hole: 7px;
	--stamp-tilt: 3deg;
	grid-column: 9 / span 3;
	justify-self: center;
	width: min(100%, 280px);
}
.vo-open__paper img { width: 100%; height: auto; }

/* Why volunteer / How it works ---------------------------------------- */
.vo-why { padding: 104px 0 96px; background: #fff; }
.vo-why__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	column-gap: 32px;
}
.vo-why__head { grid-column: 1 / span 4; }
.vo-section-title {
	font-family: var(--jf-serif);
	font-size: clamp(30px, 2.8vw, 40px);
	font-weight: 600;
	line-height: 1.12;
	color: var(--jf-navy);
}
.vo-reasons {
	grid-column: 5 / -1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
}
.vo-reason { padding-top: 22px; border-top: 2px solid var(--jf-navy); min-width: 0; }
.vo-reason:nth-child(2) { border-top-color: var(--jf-red); }
.vo-reason__title { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--jf-navy); }
.vo-reason__text { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--jf-ink-2); }

.vo-how { margin-top: 96px; padding-top: 72px; border-top: 1px solid var(--vo-ivory-line); }
.vo-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	margin-top: 40px;
	counter-reset: none;
}
.vo-step { display: flex; align-items: flex-start; gap: 20px; min-width: 0; }
.vo-step__num { --stamp-hole: 4px; flex: none; }
.vo-step__num .jf-stamp__paper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	font-family: var(--jf-serif);
	font-size: 28px;
	font-weight: 600;
	color: #fff;
}
.vo-step__body { min-width: 0; padding-top: 6px; }
.vo-step__title { font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--jf-navy); }
.vo-step__text { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--jf-ink-2); }
.vo-how__note {
	margin-top: 40px;
	padding-inline-start: 16px;
	border-inline-start: 3px solid var(--jf-red);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--jf-navy);
}

/* Stage and sheet ------------------------------------------------------ */
.vo-stage { padding: 0 0 104px; background: #fff; }
.vo-sheet {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	background: var(--vo-card);
	border: 1px solid var(--vo-ivory-line);
	box-shadow: 0 1px 2px rgba(13, 30, 65, .04), 0 24px 56px -32px rgba(13, 30, 65, .22);
}

/* Panel ---------------------------------------------------------------- */
.vo-panel {
	position: relative;
	overflow: hidden;
	padding: 56px 44px 80px;
	background: var(--jf-navy);
	color: #fff;
}
/* Keffiyeh selvedge along the panel's foot. */
.vo-panel::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 16px;
	background: url("../images/brand/keffiyeh-selvedge.svg") repeat-x 0 0 / 16px 16px;
}
.vo-panel__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 32px; }
.vo-panel__title {
	font-family: var(--jf-serif);
	font-size: clamp(28px, 2.4vw, 34px);
	font-weight: 600;
	line-height: 1.15;
	color: #fff;
}
.vo-panel__list { display: grid; gap: 20px; }
.vo-panel__list li {
	position: relative;
	padding-inline-start: 24px;
	font-size: 16px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .88);
}
.vo-panel__list li::before {
	content: "";
	position: absolute;
	top: .62em;
	inset-inline-start: 0;
	width: 10px;
	height: 2px;
	background: var(--jf-red);
}
.vo-panel__contact { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.vo-panel__contact a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, .4);
	text-underline-offset: 5px;
	white-space: normal;
}
.vo-panel__contact a:hover { color: #fff; text-decoration-color: var(--jf-red); }
.vo-panel :focus-visible { outline-color: #fff; }
.vo-panel__emblem {
	position: absolute;
	inset-inline-end: -88px;
	bottom: -56px;
	width: 380px;
	height: auto;
	opacity: .075;
	pointer-events: none;
	user-select: none;
}

/* Form area ------------------------------------------------------------ */
.vo-form-area {
	position: relative;
	min-width: 0;
	padding: 56px var(--vo-pad) 64px;
	scroll-margin-top: calc(var(--jf-header-h) + 24px);
}
.vo-form-area:focus { outline: none; }
/* The sheet's red rule (as on Contact). */
.vo-form-area::before {
	content: "";
	position: absolute;
	top: -1px;
	inset-inline-start: var(--vo-pad);
	width: 56px;
	height: 3px;
	background: var(--jf-red);
}
.vo-form-area__title {
	font-family: var(--jf-serif);
	font-size: clamp(28px, 2.4vw, 34px);
	font-weight: 600;
	line-height: 1.15;
	color: var(--jf-navy);
}
.vo-form-area__note { margin-top: 10px; font-size: 15px; color: var(--jf-muted); }

/* Result / summary message: only takes space when it has something to say. */
.vo-status { display: flex; align-items: flex-start; gap: 12px; }
.vo-status__icon { display: none; flex: none; margin-top: 1px; }
.vo-status__text { font-size: 16px; line-height: 1.6; }
.vo-status.is-success,
.vo-status.is-error {
	margin-top: 28px;
	padding: 16px 20px;
	border: 1px solid;
	border-inline-start-width: 4px;
}
.vo-status.is-success { border-color: #B9D8C2; border-inline-start-color: var(--vo-ok); background: #F1F8F3; color: #174F28; }
.vo-status.is-error { border-color: #F0C3C5; border-inline-start-color: var(--vo-error); background: #FDF2F2; color: #8A1015; }
.vo-status.is-success .vo-status__icon--success,
.vo-status.is-error .vo-status__icon--error { display: block; }
.vo-status.is-success .vo-status__text,
.vo-status.is-error .vo-status__text { font-weight: 600; }

.vo-form { margin-top: 32px; }
.vo-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 24px;
}
.vo-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vo-field--festival,
.vo-field--help,
.vo-field--availability,
.vo-field--consent { grid-column: 1 / -1; }
.vo-field__label { font-size: 15px; font-weight: 700; color: var(--jf-navy); }
.vo-field__optional { font-weight: 400; color: var(--jf-muted); }
.vo-field__hint { margin-top: -4px; font-size: 14px; line-height: 1.55; color: var(--jf-muted); }
.vo-field__input {
	width: 100%;
	min-height: 56px;
	padding: 14px 18px;
	border: 1px solid var(--vo-line-strong);
	border-radius: 0;
	background: #fff;
	font: inherit;
	font-size: 17px;
	line-height: 1.5;
	color: var(--jf-navy);
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.vo-field__input--area { min-height: 160px; resize: vertical; }
.vo-field--availability .vo-field__input--area { min-height: 120px; }
.vo-select { position: relative; }
.vo-field__input--select { padding-inline-end: 48px; cursor: pointer; text-overflow: ellipsis; }
.vo-select__chevron {
	position: absolute;
	top: 50%;
	inset-inline-end: 18px;
	margin-top: -8px;
	color: var(--jf-navy);
	pointer-events: none;
}
.vo-field__input:hover { border-color: var(--jf-muted); }
.vo-field__input:focus { outline: none; }
.vo-field__input:focus-visible,
.vo-field__input:focus {
	border-color: var(--jf-navy);
	box-shadow: 0 0 0 1px var(--jf-navy), 0 0 0 5px rgba(13, 30, 65, .14);
}
.vo-field.is-invalid .vo-field__input {
	border-color: var(--vo-error);
	box-shadow: inset 4px 0 0 var(--vo-error);
}
[dir="rtl"] .vo-field.is-invalid .vo-field__input { box-shadow: inset -4px 0 0 var(--vo-error); }
.vo-field.is-invalid .vo-field__input:focus { box-shadow: 0 0 0 1px var(--vo-error), 0 0 0 5px rgba(181, 22, 28, .16); }
.vo-field__error {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--vo-error);
}
.vo-field__error[hidden] { display: none; }
.vo-field__error svg { flex: none; margin-top: 2px; }

/* Consent */
.vo-field--consent { padding-top: 6px; }
.vo-check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; }
.vo-check__box {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--jf-red);
	cursor: pointer;
}
.vo-check__box:focus-visible { outline: 2px solid var(--jf-navy); outline-offset: 3px; }
.vo-field.is-invalid .vo-check__box { outline: 2px solid var(--vo-error); outline-offset: 2px; }
.vo-check__text { font-size: 15px; line-height: 1.6; color: var(--jf-ink-2); }
.vo-check__text a {
	color: var(--jf-navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: normal;
}
.vo-check__text a:hover { color: var(--jf-red); }

.vo-form__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 32px;
	margin-top: 32px;
}
.vo-submit {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 58px;
	padding: 0 34px;
	border: 0;
	background: var(--jf-red);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: .03em;
	cursor: pointer;
	transition: background-color .2s;
}
.vo-submit:hover { background: var(--jf-red-dark); }
.vo-submit:focus-visible { outline: 2px solid var(--jf-navy); outline-offset: 3px; }
.vo-submit__arrow { transition: transform .2s ease; }
.vo-submit:hover .vo-submit__arrow { transform: translateX(3px); }
[dir="rtl"] .vo-submit:hover .vo-submit__arrow { transform: scaleX(-1) translateX(3px); }
.vo-submit__busy {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: vo-spin .8s linear infinite;
}
.vo-form.is-sending .vo-submit { cursor: progress; background: var(--jf-red-dark); }
.vo-form.is-sending .vo-submit__busy { display: inline-block; }
.vo-form.is-sending .vo-submit__arrow { display: none; }
@keyframes vo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.vo-submit__busy { animation-duration: 2.4s; }
	.vo-submit__arrow { transition: none; }
}
.vo-form__small {
	flex: 1 1 260px;
	max-width: 44em;
	font-size: 14px;
	line-height: 1.6;
	color: var(--jf-muted);
}

/* Arabic: Tajawal, no tracking or capitals, more line height. */
[dir="rtl"] .vo-kicker { font-size: 16px; letter-spacing: 0; }
[dir="rtl"] .vo-open__title,
[dir="rtl"] .vo-section-title,
[dir="rtl"] .vo-panel__title,
[dir="rtl"] .vo-form-area__title,
[dir="rtl"] .vo-step__num .jf-stamp__paper { font-family: var(--jf-arabic); font-weight: 700; letter-spacing: 0; }
[dir="rtl"] .vo-open__title { font-size: clamp(42px, 4.4vw, 64px); line-height: 1.3; }
[dir="rtl"] .vo-open__intro { font-size: 19px; line-height: 1.9; }
[dir="rtl"] .vo-section-title { line-height: 1.45; }
[dir="rtl"] .vo-panel__title,
[dir="rtl"] .vo-form-area__title { font-size: clamp(28px, 2.4vw, 32px); line-height: 1.45; }
[dir="rtl"] .vo-reason__title,
[dir="rtl"] .vo-step__title { font-size: 20px; line-height: 1.5; }
[dir="rtl"] .vo-reason__text,
[dir="rtl"] .vo-step__text,
[dir="rtl"] .vo-panel__list li,
[dir="rtl"] .vo-panel__contact,
[dir="rtl"] .vo-how__note { font-size: 17px; line-height: 1.85; }
[dir="rtl"] .vo-field__label { font-size: 16px; }
[dir="rtl"] .vo-field__hint,
[dir="rtl"] .vo-form-area__note,
[dir="rtl"] .vo-check__text,
[dir="rtl"] .vo-form__small { font-size: 15px; line-height: 1.8; }
[dir="rtl"] .vo-status__text { font-size: 17px; }
[dir="rtl"] .vo-field__error { font-size: 16px; }
[dir="rtl"] .vo-submit { font-size: 17px; letter-spacing: 0; }

/* Responsive ---------------------------------------------------------- */
@media (max-width: 1180px) {
	.vo { --vo-pad: 48px; }
	.vo-panel { padding-inline: 36px; }
	/* Stacked: one column (twelve tracks' gaps alone outgrow a phone). */
	.vo-why__grid { grid-template-columns: minmax(0, 1fr); }
	.vo-why__head { grid-column: 1; margin-bottom: 36px; }
	.vo-reasons { grid-column: 1; }
}

@media (max-width: 980px) {
	.vo { --vo-pad: 40px; }
	.vo-open { padding: 56px 0 64px; }
	.vo-open__head { grid-column: 1 / span 8; }
	.vo-open__stamp { grid-column: 9 / -1; }
	.vo-why { padding: 80px 0 72px; }
	.vo-how { margin-top: 72px; padding-top: 56px; }
	.vo-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 640px; }
	.vo-stage { padding-bottom: 80px; }

	/* Stacked: panel on top (compact), the form below. */
	.vo-sheet { grid-template-columns: minmax(0, 1fr); }
	.vo-panel { padding: 40px var(--vo-pad) 56px; }
	.vo-panel__inner { gap: 24px; }
	.vo-panel__emblem { width: 220px; bottom: -48px; inset-inline-end: -40px; }
	.vo-form-area { padding: 48px var(--vo-pad) 56px; }
	.vo-form-area::before { display: none; }
}

@media (max-width: 760px) {
	.vo-reasons { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
	.vo { --vo-pad: var(--jf-gutter); }
	.vo-open { padding: 40px 0 48px; }
	.vo-open__grid { grid-template-columns: minmax(0, 1fr); }
	.vo-open__head { grid-column: 1 / -1; }
	.vo-open__stamp { display: none; }
	.vo-open__title { font-size: clamp(36px, 10vw, 44px); }
	[dir="rtl"] .vo-open__title { font-size: clamp(34px, 9.4vw, 42px); }
	.vo-open__intro { font-size: 17px; }
	[dir="rtl"] .vo-open__intro { font-size: 18px; }
	.vo-open__cta { width: 100%; }
	.vo-why { padding: 56px 0; }
	.vo-how { margin-top: 56px; padding-top: 48px; }
	.vo-step__num .jf-stamp__paper { width: 56px; height: 56px; font-size: 24px; }
	.vo-stage { padding-bottom: 56px; }

	/* Full-bleed on phones, as Contact: no frame. */
	.vo-sheet {
		margin-inline: calc(-1 * var(--jf-gutter));
		border: 0;
		box-shadow: none;
	}
	.vo-panel { padding: 36px var(--jf-gutter) 52px; }
	.vo-panel__emblem { display: none; }
	.vo-form-area { padding: 40px var(--jf-gutter) 8px; }
	.vo-form__grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.vo-form__foot { flex-direction: column; align-items: stretch; }
	.vo-submit { width: 100%; }
	.vo-form__small { flex: none; }
}
