/* Third-party embed skinning (Bloomerang email-registration and interaction forms). Moved out of the theme. */
/* ==========================================================================
FORM CONTAINER & FIELD STYLING
========================================================================== */

/* Keeps the form layout beautifully tight and centered */
#email-registration-form-container {
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	text-align: left;
	font-family: inherit;
}

/* Hide the redundant "Contact Information" header inside the embedded script */
#email-registration-form-container h3 {
	display: none;
}

/* Field grouping layout spacing */
.email-registration-form .field {
	margin-bottom: 1.5rem;
}

/* Typography styles for the field labels */
.email-registration-form label {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 0.5rem;
	color: #222 !important;
}

/* Stylized error star spacer */
.email-registration-form .required-star {
	color: #cc0000;
	margin-left: 0.25rem;
}

/* Modernized structural design for inputs */
.email-registration-form .field input[type="text"],
.email-registration-form .field input[type="email"] {
	width: 100%; /* Overrides Bloomerang's hardcoded 275px width */
	max-width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	font-size: 1rem;
	border: 1px solid #dcdcdc !important;
	border-radius: 8px;
	background-color: #fff !important;
	color: #333 !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Sleek interactive focus ring matching your site accents */
.email-registration-form .field input:focus {
	outline: none;
	border-color: #5bb3cc; /* Soft teal match */
	box-shadow: 0 0 0 3px rgba(91, 179, 204, 0.15);
}

/* Styling for the consent text row */
.email-registration-form .consent {
	font-size: 0.9rem;
	color: #555;
	margin-top: 1rem;
	margin-bottom: 1.5rem;
}

/* ==========================================================================
PREMIUM TEAL SUBMIT BUTTON STYLE
========================================================================== */
.email-registration-form .btn-group {
	margin-top: 1.5rem;
}

.email-registration-form input.btn-submit-email {
	width: 100%;
	display: block;
	background-color: #5bb3cc !important; /* Soft Teal palette matching your layout hero button */
	color: #fff !important;
	font-size: 1rem !important;
	padding: 14px 24px !important;
	border: none;
	border-radius: 30px; /* Elegant pill shape matches your trigger button styling */
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
	text-transform: none;
}
.page-section-signup.has-blue-background-color .email-registration-form input.btn-submit-email {
	background: var(--orange) !important;

}
/* Interactive hover feedback states */
.email-registration-form input.btn-submit-email:hover {
	background-color: #4ea2ba; /* Slightly darker teal accent depth */
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.email-registration-form input.btn-submit-email:active {
	transform: scale(0.98);
}
/* ==========================================================================
NON-PROFIT INFORMATION GLOBAL DRAWER PANEL
========================================================================== */

/* Sets initial invisible state right above the copyright row line */
#nonprofit-info-wrapper {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transform: translateY(10px);
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.3s ease,
		transform 0.3s ease,
		padding 0.3s ease;
	width: 100%;
	margin-inline: auto;
	box-sizing: border-box;
	border-top: 1px dashed rgba(255, 255, 255, 0.15); /* Soft structural accent border rule */
}

/* Expansion state class called via jQuery */
#nonprofit-info-wrapper.info-expanded {
	max-height: 500px; /* Safe upper ceiling allowance for legal text data */
	opacity: 1;
	transform: translateY(0);
	padding: 2rem 0 1rem 0;
}

/* Interior layout rules alignment adjustments */
#nonprofit-info-wrapper h4 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.2rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #ffffff;
}

#nonprofit-info-wrapper p {
	font-size: 0.9rem;
	line-height: 1.6;
	margin-bottom: 0.5rem;
	color: rgba(255, 255, 255, 0.85); /* Clean text color match inside dark footer theme space */
}
/* ==========================================================================
FOOTER TRUST BADGES INTERACTIVE HOVER TRACKS
========================================================================== */

/* 1. Prepares transitions, base opacity, and alignment behaviors */
.site-footer-badges a {
	display: inline-block;
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.25s ease,
		filter 0.25s ease;
	opacity: 0.85; /* Softly blends them into the dark background by default */
}

/* 2. Elegant hardware-accelerated lift and drop-shadow glow on hover interaction */
.site-footer-badges a:hover {
	transform: translateY(-4px); /* Clean upward physical lift */
	opacity: 1; /* Pops to full vivid brightness */
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)); /* Smooth shadow depth layer */
}
.page-section-team .wp-block-image img {
	max-width: 300px;
}
.team-modals-container {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(4px);
	align-items: center;
	justify-content: center;
}

/* Flex wrapper layout state toggle */
.team-modals-container.modal-open {
	display: flex;
}

/* Default hidden state for individual bio layouts inside the wrapper */
.team-modals-container .team-modal {
	display: none;
	background: #ffffff;
	border-radius: 12px;
	padding: 40px;
	max-width: 800px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 40px rgba(0,0,0,0.3);
	animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Active targeted state display */
.team-modals-container .team-modal.active-bio {
	display: block;
}
.team-modal .wp-block-paragraph {
	font-size: 15px;
}

/* Standard CSS close button injection layout */
.modal-close-trigger {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 32px;
	font-weight: 300;
	line-height: 1;
	color: #333333;
	cursor: pointer;
	z-index: 10;
	transition: transform 0.2s ease;
}
.modal-close-trigger:hover {
	transform: scale(1.15);
}

@keyframes modalSlideUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
.team-modal > .wp-block-columns {
	margin: 0;
}

/* ==========================================================================
FORM WRAPPER CONTAINER (WordPress Group Block Custom Class)
========================================================================== */
.form-wrap {
	max-width: 650px;
	margin: 2rem auto; /* Centers the heading + form entirely on the page */
	padding: 0 1rem;   /* Prevents content from hitting screen edges on mobile */
	box-sizing: border-box;
}

/* Captures your initial H2 title perfectly inside the new bounds */
.form-wrap h2 {
	margin-bottom: 1.5rem;
}

/* ==========================================================================
BLOOMERANG FORM CLEAN STYLING
========================================================================== */
#interaction-form-container {
	width: 100%;
}

#interaction-form-container .interaction-form {
	width: 100%;
}

/* 1. Structural Section Layout */
#interaction-form-container .section {
	background: transparent;
	padding: 0 0 1.5rem 0;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #e2e8f0;
}

#interaction-form-container h3 {
	font-size: 1.35rem;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 1rem;
}

/* 2. Modern Vertical Stack Layout */
#interaction-form-container .field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	padding: 0.625rem 0;
	width: 100%;
}

/* 3. Labels & Required Indicators */
#interaction-form-container label,
#interaction-form-container .label {
	font-size: 0.95rem;
	font-weight: 600;
	color: #2d3748;
}

#interaction-form-container .required-star {
	color: #e53e3e;
	margin-left: 0.25rem;
}

/* 4. Text Fields, Dropdowns, and Textareas */
#interaction-form-container input:not([type=checkbox]),
#interaction-form-container select,
#interaction-form-container textarea {
	width: 100%; /* Spans full width of the contained group column */
	padding: 0.75rem 1rem;
	font-size: 1rem;
	color: #2d3748;
	background-color: var(--blue-light);
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	max-width: 100%;
}

#interaction-form-container input:focus,
#interaction-form-container select:focus,
#interaction-form-container textarea:focus {
	outline: none;
	border-color: var(--blue); /* Brand Accent Teal */
	box-shadow: 0 0 0 3px rgba(75, 163, 195, 0.15);
}

#interaction-form-container textarea {
	min-height: 120px;
	resize: vertical;
}

/* 5. Clean Checkbox Styling */
#interaction-form-container .checkboxes {
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	background-color: #ffffff;
	overflow: hidden;
	width: 100%;
	max-width: 100%;
}

#interaction-form-container .checkbox {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #edf2f7;
	color: #2d3748;
	height: unset;
	line-height: unset;
}
#interaction-form-container .checkbox:hover {
	background: var(--blue) !important;
	color: var(--blue-light) !important;
}

.interaction-form .field .checkbox.selected, #interaction-form-container .checkbox:active {
	background: var(--orange) !important;
	color: var(--white) !important;
}

#interaction-form-container .checkbox:last-child {
	border-bottom: none;
}

#interaction-form-container .checkbox input[type=checkbox] {
	width: 18px;
	height: 18px;
	margin-right: 12px;
	cursor: pointer;
}

/* 6. Submit Button & Group Alignment */
#interaction-form-container .btn-group {
	padding-top: 1rem;
	display: flex;
	justify-content: flex-start;
}

#interaction-form-container .btn-submit-interaction {
	display: inline-block;
	min-width: 200px;
	padding: 0.875rem 2rem !important;
	font-size: 1.1rem !important;
	font-weight: 700;
	color: #fff !important;
	background-color: #4ba3c3 !important; /* Brand CTA Color */
	border: none !important;
	border-radius: 30px !important;
	cursor: pointer;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: background-color 0.2s ease !important;
}

#interaction-form-container .btn-submit-interaction:hover {
	background-color: #3b8da9 !important;
}

/* Mailchimp signup (provider: mailchimp) */
.shelter-form .sf-mc { display: flex; flex-direction: column; gap: 1rem; max-width: 520px; margin: 0 auto; text-align: left; position: relative; }
.shelter-form .sf-mc p { margin: 0; }
.shelter-form .sf-mc__row { display: flex; flex-direction: column; gap: .35rem; }
.shelter-form .sf-mc label { font-weight: 600; }
.shelter-form .sf-mc input[type="text"], .shelter-form .sf-mc input[type="email"] { width: 100%; padding: .7rem .9rem; border: 1px solid #b8d4dc; border-radius: 6px; background: #f0f7fa; font: inherit; box-sizing: border-box; }
.shelter-form .sf-mc__btn { align-self: flex-start; cursor: pointer; }
.shelter-form .sf-mc__msg:empty { display: none; }
.shelter-form .sf-mc__msg.is-ok { color: #1a7f4b; }
.shelter-form .sf-mc__msg.is-error { color: #c0392b; }
