/* Joy in the City — Volunteer page */

:root {
	--jitc-max-width: 1200px;
}

.jitc-volunteer {
	width: 100%;
}

/* Hero */

.jitc-volunteer-hero {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	height: 440px;
	min-height: 440px;
	overflow: hidden;
}

.jitc-volunteer-hero__background {
	position: absolute;
	inset: 0;
	background-color: #1a1a1a;
	background-position: center 45%;
	background-repeat: no-repeat;
	background-size: cover;
}

.jitc-volunteer-hero__background::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.jitc-volunteer-hero__overlay {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 440px;
	padding: 24px 24px;
}

.jitc-volunteer-hero__title {
	margin: 0;
	color: var(--jitc-white);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2.5rem, 4.5vw, 3.25rem);
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
}

.jitc-container {
	width: 100%;
	max-width: var(--jitc-max-width);
	margin: 0 auto;
	padding: 0 48px;
}

/* Why Volunteer */

.jitc-volunteer-why {
	padding: 80px 0 96px;
	background-color: var(--jitc-page-bg);
}

.jitc-volunteer-why__heading {
	margin: 0 0 56px;
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: clamp(1.75rem, 3vw, 2.125rem);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.jitc-volunteer-why__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	align-items: stretch;
}

.jitc-volunteer-why__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	min-height: 260px;
	padding: 48px 32px 44px;
	background-color: var(--jitc-white);
	border: 1px solid var(--jitc-border);
	border-radius: 12px;
	text-align: center;
}

.jitc-volunteer-why__icon {
	display: block;
	width: auto;
	max-width: 72px;
	height: auto;
	max-height: 72px;
	margin-bottom: 24px;
	object-fit: contain;
}

.jitc-volunteer-why__title {
	margin: 0 0 16px;
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.jitc-volunteer-why__text {
	margin: 0;
	max-width: 22ch;
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.65;
}

@media (max-width: 768px) {
	.jitc-container {
		padding: 0 24px;
	}

	.jitc-volunteer-why {
		padding: 56px 0 72px;
	}

	.jitc-volunteer-why__heading {
		margin-bottom: 32px;
	}

	.jitc-volunteer-why__cards {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.jitc-volunteer-why__card {
		min-height: 0;
		padding: 40px 24px 36px;
	}

	.jitc-volunteer-why__text {
		max-width: none;
	}

	.jitc-volunteer-hero {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
		height: auto;
		min-height: 280px;
	}

	.jitc-volunteer-hero__overlay {
		min-height: 280px;
		padding: 48px 24px;
	}

	.jitc-volunteer-hero__title {
		font-size: clamp(2rem, 8vw, 2.75rem);
	}
}

/* Join Now form */

.jitc-volunteer-join {
	padding: 80px 0 96px;
	background-color: var(--jitc-page-bg);
}

.jitc-volunteer-join__inner {
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
}

.jitc-volunteer-join__heading {
	margin: 0 0 24px;
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: clamp(1.75rem, 3vw, 2.125rem);
	font-weight: 700;
	line-height: 1.2;
}

.jitc-volunteer-join__intro {
	max-width: 640px;
	margin: 0 auto 40px;
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.7;
}

.jitc-cf7-wrap--join .wpcf7 {
	margin: 0 auto;
}

.jitc-cf7-wrap--join .wpcf7-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.jitc-cf7-wrap--join .wpcf7-form p {
	width: 100%;
	max-width: 480px;
	margin: 0;
}

.jitc-cf7-wrap .wpcf7-form input[type="email"],
.jitc-cf7-wrap .wpcf7-form input[type="text"],
.jitc-cf7-wrap .wpcf7-form input[type="tel"],
.jitc-cf7-wrap .wpcf7-form textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--jitc-border);
	border-radius: 8px;
	background-color: var(--jitc-white);
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: 1rem;
	line-height: 1.5;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jitc-cf7-wrap .wpcf7-form input:focus,
.jitc-cf7-wrap .wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--jitc-green);
	box-shadow: 0 0 0 3px rgba(74, 124, 78, 0.15);
}

.jitc-cf7-wrap .wpcf7-form input::placeholder,
.jitc-cf7-wrap .wpcf7-form textarea::placeholder {
	color: var(--jitc-muted);
}

.jitc-cf7-wrap .wpcf7-form label {
	display: block;
	margin-bottom: 8px;
	color: var(--jitc-text);
	font-family: var(--jitc-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: left;
}

.jitc-cf7-wrap .wpcf7-form label .required {
	color: var(--jitc-muted);
	font-weight: 400;
	font-size: 0.875rem;
}

.jitc-cf7-wrap .wpcf7-form input[type="submit"],
.jitc-cf7-wrap .wpcf7-form button[type="submit"] {
	display: inline-block;
	min-width: 140px;
	padding: 14px 32px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--jitc-green) 0%, var(--jitc-green-dark) 100%);
	color: var(--jitc-white);
	font-family: var(--jitc-sans);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.jitc-cf7-wrap .wpcf7-form input[type="submit"]:hover,
.jitc-cf7-wrap .wpcf7-form button[type="submit"]:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.jitc-cf7-wrap .wpcf7-response-output {
	margin: 24px 0 0;
	padding: 14px 18px;
	border-radius: 8px;
	font-family: var(--jitc-sans);
	font-size: 0.9375rem;
	line-height: 1.5;
	text-align: center;
}

.jitc-cf7-wrap .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: #b42318;
	font-family: var(--jitc-sans);
	font-size: 0.875rem;
	text-align: left;
}

@media (max-width: 768px) {
	.jitc-volunteer-join {
		padding: 56px 0 72px;
	}

	.jitc-volunteer-join__intro {
		margin-bottom: 32px;
		font-size: 0.9375rem;
	}
}
