/**
 * Volunteer Page
 *
 * Covers:
 *   .pjcs-volunteer-main              — two-column form + roles section
 *
 * Note: page header uses shared .pjcs-page-header (page-header.css).
 * Btn styles from hero.css.
 */

/* =========================================================
   Volunteer Main Section
   Off-white bg, 2-column at desktop, single-column mobile.
   ========================================================= */

.pjcs-volunteer-main {
	background-color: #F7F4EF; /* off-white */
	padding-block: 96px;
}

.pjcs-volunteer-main__inner {
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: 64px;
	display: flex;
	gap: 80px;
	align-items: flex-start;
}

/* Left — form column */
.pjcs-volunteer-main__form-col {
	flex: 0 0 55%;
	min-width: 0;
}

/* Right — roles column */
.pjcs-volunteer-main__roles-col {
	flex: 0 0 calc( 45% - 80px );
	min-width: 0;
}

/* Eyebrow (shared by both columns) */
.pjcs-volunteer-main__eyebrow {
	margin: 0 0 16px;
	font-family: 'DM Sans', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #CF3223; /* red */
}

/* Column headings */
.pjcs-volunteer-main__heading,
.pjcs-volunteer-main__roles-heading {
	margin: 0 0 24px;
	font-family: 'Fraunces', serif;
	font-size: 40px;
	font-weight: 400;
	line-height: 1.1;
	color: #273965; /* navy */
}

.pjcs-volunteer-main__roles-heading {
	font-size: 28px;
}

/* Intro paragraph */
.pjcs-volunteer-main__intro {
	margin: 0 0 32px;
	font-family: 'Libre Caslon Text', serif;
	font-size: 17px;
	line-height: 1.75;
	color: #2E2820; /* charcoal */
}

/* Form placeholder — shown until form plugin is configured */
.pjcs-volunteer-main__form-placeholder {
	background-color: rgba( 39, 57, 101, 0.04 );
	border: 1px dashed rgba( 39, 57, 101, 0.20 );
	border-radius: 4px;
	padding: 32px;
	font-family: 'Libre Caslon Text', serif;
	font-size: 16px;
	font-style: italic;
	color: #2E2820;
	line-height: 1.6;
}

.pjcs-volunteer-main__form-placeholder p {
	margin: 0 0 12px;
}

.pjcs-volunteer-main__form-placeholder p:last-child {
	margin-bottom: 0;
}

/* =========================================================
   Roles List
   ========================================================= */

.pjcs-volunteer-main__roles-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.pjcs-volunteer-main__role {
	padding-left: 20px;
	border-left: 3px solid #CF3223; /* red accent */
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pjcs-volunteer-main__role-title {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #273965; /* navy */
}

.pjcs-volunteer-main__role-desc {
	font-family: 'Libre Caslon Text', serif;
	font-size: 16px;
	line-height: 1.65;
	color: #2E2820; /* charcoal */
}

/* =========================================================
   WPForms — Campaign Design System Overrides
   Targets WPForms Lite output. All brand tokens applied here
   so the form matches the rest of the site without touching
   WPForms' own stylesheet (which loads separately).
   ========================================================= */

/* Wrapper */
.pjcs-volunteer-main__form-col .wpforms-form {
	margin: 0;
}

/* ── Field container spacing ── */
.pjcs-volunteer-main__form-col .wpforms-field {
	padding: 0;
	margin-bottom: 20px;
}

/* ── Labels ── */
.pjcs-volunteer-main__form-col .wpforms-field-label {
	margin-bottom: 6px;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba( 39, 57, 101, 0.75 ); /* navy 75% */
}

/* Required asterisk — red */
.pjcs-volunteer-main__form-col .wpforms-required-label {
	color: #CF3223;
	margin-left: 2px;
}

/* Sub-labels (description text below a field) */
.pjcs-volunteer-main__form-col .wpforms-field-sublabel {
	font-family: 'Libre Caslon Text', serif;
	font-size: 13px;
	font-style: italic;
	color: rgba( 46, 40, 32, 0.55 ); /* charcoal 55% */
	margin-top: 4px;
}

/* ── Text inputs, email, tel, select, textarea ── */
.pjcs-volunteer-main__form-col input[type="text"],
.pjcs-volunteer-main__form-col input[type="email"],
.pjcs-volunteer-main__form-col input[type="tel"],
.pjcs-volunteer-main__form-col input[type="number"],
.pjcs-volunteer-main__form-col input[type="url"],
.pjcs-volunteer-main__form-col select,
.pjcs-volunteer-main__form-col textarea {
	width: 100%;
	padding: 11px 14px;
	font-family: 'Libre Caslon Text', serif;
	font-size: 16px;
	color: #2E2820; /* charcoal */
	background-color: #FFFFFF;
	border: 1px solid rgba( 39, 57, 101, 0.22 );
	border-radius: 2px;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease;
	appearance: none;
	-webkit-appearance: none;
}

.pjcs-volunteer-main__form-col input[type="text"]:focus,
.pjcs-volunteer-main__form-col input[type="email"]:focus,
.pjcs-volunteer-main__form-col input[type="tel"]:focus,
.pjcs-volunteer-main__form-col input[type="number"]:focus,
.pjcs-volunteer-main__form-col input[type="url"]:focus,
.pjcs-volunteer-main__form-col select:focus,
.pjcs-volunteer-main__form-col textarea:focus {
	border-color: #CF3223; /* red focus ring */
	box-shadow: 0 0 0 3px rgba( 207, 50, 35, 0.12 );
	outline: none;
}

.pjcs-volunteer-main__form-col textarea {
	min-height: 120px;
	resize: vertical;
}

/* Select — custom arrow */
.pjcs-volunteer-main__form-col select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23273965' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

/* ── Two-column name row (WPForms first/last name) ── */
.pjcs-volunteer-main__form-col .wpforms-field-name .wpforms-field-row {
	display: flex;
	gap: 16px;
}

.pjcs-volunteer-main__form-col .wpforms-field-name .wpforms-field-row-block {
	flex: 1;
	min-width: 0;
}

/* ── Checkboxes and Radios ── */
.pjcs-volunteer-main__form-col .wpforms-field-checkbox li,
.pjcs-volunteer-main__form-col .wpforms-field-radio li {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.pjcs-volunteer-main__form-col .wpforms-field-checkbox input[type="checkbox"],
.pjcs-volunteer-main__form-col .wpforms-field-radio input[type="radio"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	accent-color: #CF3223; /* red checkmark */
	cursor: pointer;
}

.pjcs-volunteer-main__form-col .wpforms-field-label-inline {
	font-family: 'Libre Caslon Text', serif;
	font-size: 16px;
	color: #2E2820;
	cursor: pointer;
	margin: 0;
}

/* ── Validation errors ── */
.pjcs-volunteer-main__form-col .wpforms-error {
	margin-top: 5px;
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #CF3223; /* red */
}

.pjcs-volunteer-main__form-col input.wpforms-error,
.pjcs-volunteer-main__form-col textarea.wpforms-error,
.pjcs-volunteer-main__form-col select.wpforms-error {
	border-color: #CF3223;
}

/* ── Submit button — match .pjcs-btn--red ── */
.pjcs-volunteer-main__form-col .wpforms-submit-container {
	margin-top: 32px;
}

.pjcs-volunteer-main__form-col .wpforms-submit {
	display: inline-block;
	padding: 14px 36px;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #FFFFFF;
	background-color: #CF3223; /* red */
	border: none;
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.1s ease;
	appearance: none;
	-webkit-appearance: none;
}

.pjcs-volunteer-main__form-col .wpforms-submit:hover {
	background-color: #b32a1e; /* red darkened ~10% */
}

.pjcs-volunteer-main__form-col .wpforms-submit:active {
	transform: translateY( 1px );
}

.pjcs-volunteer-main__form-col .wpforms-submit:focus-visible {
	outline: 2px solid #CF3223;
	outline-offset: 3px;
}

/* ── Confirmation / success message ── */
.pjcs-volunteer-main__form-col .wpforms-confirmation-container-full {
	padding: 32px;
	background-color: rgba( 39, 57, 101, 0.06 );
	border-left: 4px solid #CF3223;
	border-radius: 2px;
}

.pjcs-volunteer-main__form-col .wpforms-confirmation-container-full p {
	margin: 0;
	font-family: 'Libre Caslon Text', serif;
	font-size: 18px;
	font-style: italic;
	color: #273965; /* navy */
	line-height: 1.6;
}

/* =========================================================
   Responsive — Tablet ( ≤ 1024px )
   ========================================================= */

@media ( max-width: 1024px ) {
	.pjcs-volunteer-main__inner {
		padding-inline: 40px;
		gap: 56px;
	}

	.pjcs-volunteer-main__heading {
		font-size: 34px;
	}
}

/* =========================================================
   Responsive — Mobile ( ≤ 768px )
   ========================================================= */

@media ( max-width: 768px ) {
	.pjcs-volunteer-main {
		padding-block: 64px;
	}

	.pjcs-volunteer-main__inner {
		flex-direction: column;
		padding-inline: 24px;
		gap: 56px;
	}

	.pjcs-volunteer-main__form-col,
	.pjcs-volunteer-main__roles-col {
		flex: 0 0 100%;
	}

	.pjcs-volunteer-main__heading {
		font-size: 30px;
	}

	.pjcs-volunteer-main__roles-heading {
		font-size: 24px;
	}

	/* WPForms — stack first/last name on mobile */
	.pjcs-volunteer-main__form-col .wpforms-field-name .wpforms-field-row {
		flex-direction: column;
		gap: 12px;
	}
}
