/**
 * Campaign donation card
 */

.nr-donation-card {
	max-width: 360px;
	margin: 0 auto;
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.nr-donation-card__header {
	background: #a25439;
	color: #fff;
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 16px 20px;
}

.nr-donation-card__body {
	padding: 20px;
}

.nr-donation-card::after {
	content: "Organized by Ngong Road Children's Foundation";
	white-space: pre-line;
	display: block;
	border-top: 1px solid #ddd;
	margin: 0;
	padding: 0.75rem 20px;
	text-align: center;
	font-size: 0.85rem;
	color: #666;
	background: #f2f2f2;
}

/* ---- Gravity form (#64)
 */
#gform_wrapper_64 {
	margin: 0;
}

#gform_wrapper_64 .gform_title,
#gform_wrapper_64 .gform_description {
	display: none;
}

#gform_fields_64 {
	grid-row-gap: 0 !important;
}

/* Field labels are hidden (context + placeholders carry the meaning). */
#gform_wrapper_64 .gfield_label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* --- Frequency Toggle (64_1 = 59_15) --- */
#gform_wrapper_64 #field_64_1 .gfield_radio {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 15px;
}

#gform_wrapper_64 #field_64_1 .gchoice label {
	display: block;
	width: 100%;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 6px;
	cursor: pointer;
	padding: 6px 0;
}

#gform_wrapper_64 #field_64_1 input {
	display: none;
}

#gform_wrapper_64 #field_64_1 input:checked + label {
	background: #c99d61;
	border-color: #a25439;
	color: #fff;
}

/* --- Preset Amount Buttons (64_2 = 59_10) --- */
#gform_wrapper_64 #field_64_2 .gfield_radio {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin: 0;
	padding: 0;
}

/* Reset each choice so it behaves as a grid item */
#gform_wrapper_64 #field_64_2 .gchoice {
	margin: 0 !important;
	width: auto !important;
	float: none !important;
	max-width: none !important;
	box-sizing: border-box;
}

/* Label styled as button */
#gform_wrapper_64 #field_64_2 .gchoice label {
	display: block;
	padding: 10px 0;
	border: 1px solid #ccc;
	border-radius: 6px;
	text-align: center;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	background: #f4f4f4;
}

/* Hide radios */
#gform_wrapper_64 #field_64_2 input {
	display: none !important;
}

#gform_wrapper_64 .gfield-choice-input + label {
	max-width: none !important;
}

/* Checked state */
#gform_wrapper_64 #field_64_2 input:checked + label {
	background: #c99d61;
	border-color: #a25439;
	color: #fff;
}

/* --- Other Amount (64_3 = 59_16) + Full name (64_6) + Email (64_7) --- */
#gform_wrapper_64 #field_64_3,
#gform_wrapper_64 #field_64_6,
#gform_wrapper_64 #field_64_7 {
	margin-top: 10px;
}

#gform_wrapper_64 #input_64_3,
#gform_wrapper_64 #input_64_6,
#gform_wrapper_64 #input_64_7 {
	display: block;
	width: 100%;
	padding: 5px 8px !important;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	box-sizing: border-box;
	outline: none;
	background: #fff;
}

#gform_wrapper_64 #input_64_3:focus,
#gform_wrapper_64 #input_64_6:focus,
#gform_wrapper_64 #input_64_7:focus {
	border-color: #a25439;
	box-shadow: 0 0 4px rgba(162, 84, 57, 0.5);
}

#gform_wrapper_64 #gfield_instruction_64_3 {
	display: none !important;
}

/* --- Note / Comment Checkbox (64_4 = 59_12) --- */
#gform_wrapper_64 #field_64_4 label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	cursor: pointer;
}

/* --- Comment (64_5 = 59_13): hidden until "Add Note" checked (JS toggles) --- */
.nr-donation-card .nr-comment {
	display: none;
}

.nr-donation-card .nr-comment.is-visible {
	display: block;
}

#gform_wrapper_64 #input_64_5 {
	display: block;
	margin-top: 8px;
	padding: 10px;
	width: 100%;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	height: 60px !important;
	font-weight: 500;
	box-sizing: border-box;
}

/* --- Submit Button (64 = 59) --- */
#gform_wrapper_64 .gform_footer {
	margin: 15px 0 0;
	padding: 0;
}

#gform_wrapper_64 .gform_button {
	background-color: #a25439;
	color: #fff;
	padding: 12px 24px;
	border: 1px solid #a25439;
	border-radius: 10px;
	font-size: 12px;
	display: inline-block;
	text-transform: uppercase;
	text-decoration: none;
	letter-spacing: 2px;
	width: 100%;
	cursor: pointer;
}

#gform_wrapper_64 .gform_button:hover,
#gform_wrapper_64 .gform_button:focus {
	background-color: #aa101a;
	border-color: #aa101a;
	color: #fff;
}

.nr-form-notice {
	color: #aa101a;
	font-style: italic;
	margin: 0;
}

/* ---- Campaign layout helpers (block editor) ---- */
.nr-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-weight: 700;
	font-size: 0.82rem;
	color: #c99d61;
	margin-bottom: 10px;
}

/* When the eyebrow is centered (e.g. the hero), make it block so it centers. */
.nr-eyebrow.has-text-align-center {
	display: block;
}

/* Hero (cover + columns split): text panel left, image fills the right half
 * edge-to-edge (top, bottom, right). */
.nr-hero {
	padding: 0 !important;
}

.nr-hero .wp-block-cover__inner-container {
	width: 100%;
	max-width: 100% !important;
	padding: 0 !important;
	align-self: stretch;
}

.nr-hero .wp-block-columns {
	align-items: stretch;
	gap: 0 !important;
	margin: 0;
	width: 100%;
	min-height: 74vh;
}

.nr-hero .wp-block-column {
	margin: 0 !important;
}

/* Left: text panel, vertically centered with comfortable padding. */
.nr-hero .wp-block-column:first-child {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 6vw;
}

/* Right: image fills the whole column (full hero height, flush edges). */
.nr-hero .wp-block-column:last-child {
	position: relative;
	padding: 0 !important;
	align-self: stretch;
	min-height: 74vh;
}

.nr-hero .nr-hero-image {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	height: 100%;
}

.nr-hero .nr-hero-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: block;
}

@media (max-width: 781px) {
	.nr-hero .wp-block-columns {
		min-height: 0;
	}
	.nr-hero .wp-block-column:last-child {
		min-height: 58vw;
	}
}

.nr-hero h1 {
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	line-height: 1.08;
	margin: 0 0 16px;
}

.nr-hero .wp-block-column p:not(.nr-eyebrow) {
	font-size: 1.15rem;
}

/* Split hero (Media & Text): tall, padded text panel, crisp image half. */
.nr-hero-split {
	min-height: 72vh;
}

.nr-hero-split .wp-block-media-text__content {
	padding: 48px 7%;
	align-self: center;
}

.nr-hero-split .wp-block-media-text__content h1 {
	color: #fff;
	font-size: clamp(2rem, 4.2vw, 3.4rem);
	line-height: 1.08;
	margin: 0 0 16px;
}

.nr-hero-split .wp-block-media-text__content p:not(.nr-eyebrow) {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1.15rem;
	margin: 0 0 26px;
}

/* Force the image half to fill crisply, regardless of WP's block stylesheet. */
.nr-hero-split .wp-block-media-text__media {
	min-height: 72vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.nr-hero-split .wp-block-media-text__media > img {
	display: none;
}

@media (max-width: 780px) {
	.nr-hero-split {
		min-height: 0;
	}
	.nr-hero-split .wp-block-media-text__media {
		min-height: 52vw;
	}
}

.nr-stat__num {
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 800;
	line-height: 1;
	color: #a25439;
	margin: 0;
}

.nr-stat__label {
	margin: 8px 0 0;
	color: #5c5c55;
	font-size: 1rem;
}

.nr-donate-band {
	scroll-margin-top: 90px;
}

.has-nr-tint-background-color {
	background-color: #faf6f2;
}

/* Campaign landing page */
.single-campaigns .site-inner {
	margin-top: 0 !important;
}

.single-campaigns .entry-header {
	display: none !important;
}

/* Hide the print-post-and-page plugin's print button on campaign pages. */
.single-campaigns .h5ab-print-button-container,
.single-campaigns .h5ab-print-button {
	display: none !important;
}
