/*
Theme Name: ShelterSync Core
Theme URI: https://getsheltersync.com
Author: ShelterSync
Description: Neutral block-theme shell for ShelterSync shelter sites. Provides layout, animal templates, template parts and settings; look and feel come from a child theme. Animal blocks and sync live in the ShelterSync Pro and ShelterSync Blocks plugins.
Version: 0.1.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: sheltersync-core
*/

/* ==========================================================================
CSS CUSTOM PROPERTIES / THEME MAPPER
========================================================================== */
:root {
	/* Theme Colors */
	--primary: var(--wp--preset--color--primary, #52544f);
	--footer: var(--wp--preset--color--footer, #525a56);
	--text: var(--wp--preset--color--text, #2e2e2e);
	--background: var(--wp--preset--color--background, #ffffff);
	--blue: var(--wp--preset--color--blue, #5baec2);
	--blue-border: #00b4d8;
	--orange: var(--wp--preset--color--orange, #e66245);
	--yellow: var(--wp--preset--color--yellow, #eec25e);
	--green: var(--wp--preset--color--green, #c4cc43);
	--blue-light: var(--wp--preset--color--blue-light, #EEF6F9);
	--white: #ffffff;
	/* Neutral tokens (edit here or override in a child theme) */
	--ssc-ink: #111111;
	--ssc-text-muted: #4b5563;
	--ssc-text-soft: #64748b;
	--ssc-border: #e2e8f0;
	--ssc-border-strong: #cbd5e1;
	--ssc-border-tint: #dbe8ed;
	--ssc-surface-alt: #f1f5f9;
	--ssc-link: var(--blue);
	/* Brand shades the animal blocks use (a design sets these to its palette) */
	--ssc-brand-tint: #eef6f9;
	/* Neutrals */
	--ssc-blue-gray: #78909c;
	--ssc-border-cool: #d0dbe5;
	--ssc-border-cool-2: #e0e6ed;
	--ssc-danger-border: #fecdd3;
	--ssc-error-border: #fecaca;
	--ssc-gray-500: #6b7280;
	--ssc-gray-700: #50575e;
	--ssc-gray-900: #111827;
	--ssc-ink-alt: #1a1a1a;
	--ssc-ink-deep: #1a202c;
	--ssc-ink-navy: #2c3e50;
	--ssc-slate-800: #1e293b;
	--ssc-slate-900: #0f172a;
	--ssc-surface-subtle: #f8fafc;
	--ssc-teal-tint: #e6fffa;
	/* Accents and focus */
	--ssc-accent-alt: #0073aa;
	--ssc-accent-dark: #2b7a91;
	--ssc-cyan: #00bcd4;
	--ssc-cyan-dark: #0097a7;
	--ssc-favorite-active: #ff007f;
	--ssc-focus: #3b82f6;
	--ssc-focus-accent: #4f46e5;
	--ssc-orange-alt-2: #e26043;
	/* Error and danger */
	--ssc-danger: #ef4444;
	--ssc-danger-bg: #ffe4e6;
	--ssc-danger-strong: #e11d48;
	--ssc-danger-text: #be123c;
	--ssc-error-accent: #f87171;
	--ssc-error-bg: #fee2e2;
	--ssc-error-text: #991b1b;
	--ssc-error-text-strong: #7f1d1d;
	--black: #000000;
	--top-bar-background: var(--text, #2E2E2E);
	--body-background-color: #ffffff;
	--main-background-color: var(--background, #ffffff);
	--mobile-menu-background: #ffffff;
	--mobile-overlay-border-color: #dbe8ed;
	--sub-menu-item-mobile-background-color: #b8dce5;

	/* Typography */
	--fontTheme: var(--wp--preset--font-family--body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);

	/* Font Sizes */
	--wp--preset--font-size--x-small: 0.85rem;
	--font-size-small: 0.9rem;
	--font-size-normal: 1.3rem;
	--font-size-h6: 1.1rem;
	--font-size-h5: 1.25rem;
	--font-size-h4: 1.5rem;
	--font-size-h3: 2rem;
	--font-size-h2-footer: 3rem;
	--font-size-h2-clamp: clamp(2rem, 5vw, 3.5rem);
	--font-size-h2: 3.5rem;
	--font-size-h1-clamp: clamp(2.5rem, 6vw, 4.5rem);
	--font-size-h1: 4.5rem;
	--font-size-h2-hero-laptop: 3.5rem;
	--font-size-h2-hero-mobile: 1.5rem;
	--font-title-decorative-mobile: 2rem;
	--font-size-960-h1: clamp(2rem, 5vw, 4.9rem);
	--font-size-960-h2: clamp(2rem, 5vw, 4.9rem);
	--slider-paragraph-font-size: 1.3rem;

	/* Layout & UI Variables */
	--max-width: 1920px;
	--header-height-calc: 145px;
	--aspect-ratio-animal-cards: 3 / 4;
	--box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 20px rgba(0, 0, 0, 0.06);
	--anchor-offset: 400px;
	--padding-top-bar-top: 10px;
	--padding-standard: 25px;
	--laptop-padding: 95px;
	--mobile-padding: 55px;
	--hero-cover-mobile-padding: 55px;
	--hero-cover-tiny-mobile-padding: 25px;
	--column-gap-mobile: 80px;
	--padding-section-block: 5rem;
	--padding-sub-section-block: 1.75rem;

}
pre{font-family:monospace,monospace;font-size:1em}
abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}
code,kbd,samp{font-family:monospace,monospace;font-size:1em}
small{font-size:80%}
sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sub{bottom:-.25em}
sup{top:-.5em}
button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}
button,input{overflow:visible}
button,select{text-transform:none}
[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}
[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}
[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}
fieldset{padding:.35em .75em .625em}
legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}
progress{vertical-align:baseline}
textarea{overflow:auto}
[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}
[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
details{display:block}
summary{display:list-item}
[hidden],template{display:none}
*,
*::before,
*::after {
	box-sizing: inherit;
}
/* Buttons */
/* Base Transition Coverage */
.button,
.wp-block-button__link {
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out !important;
}
/* Hover States */
.button:hover,
.wp-block-button__link:hover {
	background-color: var(--wp--preset--color--orange) !important;
	color: var(--white) !important;

}
.is-relative {
	position: relative;
}
/* Clear conflicting iframe height rules */
iframe[src*="jotform.com"] {
	height: auto;
	max-height: none !important;
}
/* Root-Only SVG Background Utility Class */
.is-svg-background {
	position: relative;
	overflow: hidden;

	&::after {
		content: '';
		position: absolute;
		bottom: -160px;
		left: -50px;
		width: 710px;
		height: 710px;
		background-image: url('assets/svg/logo.svg');
		background-repeat: no-repeat;
		background-position: bottom left;
		background-size: contain;
		opacity: 0.15; /* Default opacity for light/normal backgrounds */
		pointer-events: none;
		z-index: 0;
		transition: opacity 0.2s ease, filter 0.2s ease;
	}
	&.svg-right {
		&::after {
			right: 30px;
			left: unset;
			bottom: -190px;
		}
	}
	&.wp-block-cover {
		&::after {
			z-index: 1;
		}
	}
	/* Target specific WordPress preset background colors on the same element */
	&.has-orange-background-color,
	&.has-primary-background-color,
	&.has-blue-background-color {
		&::after {
			opacity: 0.25;
			filter: brightness(0%) invert(100%); /* Force white logo on dark/colored presets */
		}
	}

	/* Elevates direct inner content above the watermark */
	> *:not(.wp-block-cover__background) {
		position: relative;
		z-index: 2;
	}
}
/* 2. Cloned Header Default State (Fixed, Off-Screen) */
.ssc-sticky-header-clone {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99999; /* Higher than WP Admin Bar / Mega Menus */

	/* Off-screen position and transition handling */
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none; /* Prevents clicks while hidden */
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
		opacity 0.3s ease,
		box-shadow 0.4s ease,
		background-color 0.4s ease;

	/* Visual Styling */
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}
/* Adjust top position if WP Admin Bar is present */
body.admin-bar .ssc-sticky-header-clone {
	top: 32px;
	z-index: 99990; /* stay under the admin bar (99999) so its dropdown menus remain usable */
}
@media screen and (max-width: 782px) {
body.admin-bar .ssc-sticky-header-clone {
		top: 46px;
	}
}
/* 3. Active State (Triggered when scrolled past threshold) */
.ssc-sticky-header-clone.is-active {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
/* 1. Target the main GTranslate wrapper and button */
.gt_selector.notranslate {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-color: rgba(0, 0, 0, 0.4);
	color: var(--white);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 6px 32px 6px 12px;
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px;
}
/* 2. Style the dropdown options box when expanded */
.gt_selector.notranslate option {
	background-color: var(--ssc-ink);
	color: var(--white);
	padding: 10px 14px;
}
/* 3. Focus state for accessibility and polish */
.gt_selector.notranslate:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.15);
}
.lang-picker svg {
	border-radius: 50%;
}
/* No translation plugin supplying the switcher: hide the empty slot */
.lang-picker:not(:has(*)) {
	display: none;
}
.strong-is-colored strong {
	color: var(--wp--preset--color--blue);
}
/* ==========================================================================
PARTNER LOGO CAROUSEL (.is-carousel)
========================================================================== */
/* Outer Clip & Edge Masking */
.is-carousel {
	overflow: hidden;
	width: 100%;
	position: relative;
	padding: 1.5rem 0;
	mask-image: linear-gradient(to right, transparent 0%, var(--black) 6%, var(--black) 94%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, var(--black) 6%, var(--black) 94%, transparent 100%);
}
/* Base Track */
.is-carousel .carousel-track {
	display: flex;
	align-items: center;
	gap: 1.5rem; /* 24px gap between cards */
	width: max-content;
	will-change: transform;
	animation: logoMarquee 28s linear infinite;
}
/* Pause Scrolling on Hover */
.is-carousel:hover .carousel-track {
	animation-play-state: paused;
}
/* Scaled Up Card Sizing & Background Tiles */
.page-section-signup .wp-block-image.size-full,
.is-carousel .wp-block-image {
	background: var(--ssc-brand-tint, #eef6f9);
	border-radius: 12px;
	padding: 1.25rem 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0; /* Prevents flexbox compression on narrow screens */
	width: 240px;  /* Card width */
	height: 120px; /* Card height */
	margin: 0;
	box-sizing: border-box;
}
/* Logo Image Max Height */
.is-carousel .wp-block-image img {
	max-height: 100px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
/* Dynamic Loop Keyframe */
@keyframes logoMarquee {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(var(--marquee-shift, -1000px), 0, 0);
	}
}
/* Force all inner elements inside the top bar to inherit the top bar's font size & color */
.top-bar p,
.top-bar span,
.top-bar div,
.top-bar .wp-block-paragraph,
.top-bar a:not(.favorites-link-button) {
	color: inherit;
	font-size: inherit;
}
/* Newsletter signup (Contact Form 7 via ShelterForms `newsletter` slot) */
#newsletter-form-wrapper .wpcf7-form {
	max-width: 520px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	text-align: left;
}
#newsletter-form-wrapper .wpcf7-form label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-weight: 600;
}
#newsletter-form-wrapper .wpcf7-form input[type="submit"],
#newsletter-form-wrapper .wpcf7-submit {
	align-self: flex-start;
	padding: 0.85rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--white);
	background-color: var(--wp--preset--color--primary, #319795);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
#newsletter-form-wrapper .wpcf7-form input[type="submit"]:hover {
	filter: brightness(0.92);
}
/* Prevent parent containers from clipping the bottom of the form */
.elementor-widget-html,
.wp-block-html,
.custom-html-wrapper {
	overflow: visible !important;
	height: auto !important;
}
/* =========================================================================
Gutenberg Editor Backend Block Layout Controls
========================================================================= */
.sheltersync-block-editor-placeholder-sorter {
	padding: 15px;
	background: var(--ssc-surface-alt);
	border: 1px dashed var(--ssc-text-soft);
	border-radius: 4px;
	font-style: italic;
	color: var(--ssc-text-muted);
}

/* ==========================================================================
ShelterSync Core Alert Modal Container & Overlay (Figma Frame 1013 Design)
========================================================================== */
/* Dark Outer Overlay Base */
.ssc-alert-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.65);
	z-index: 99999;
	display: none; /* Managed by JS */
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.ssc-alert-modal-content {
	display: flex;
}
/* Open State (Revealed via JS) */
.ssc-alert-modal-overlay.is-open {
	opacity: 1;
	pointer-events: auto;
}
/* Modal Inner Container Frame */
.ssc-alert-modal-container {
	position: relative;
	background-color: var(--ssc-orange-alt-2, #e26043); /* Matches brand terracotta/orange background */
	border-radius: 20px; /* Soft rounded corners from Figma frame */
	max-width: 480px;
	width: 100%;
	padding: 32px 28px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
	box-sizing: border-box;

	/* Set Transform Origin toward Top Left (Announcement Bar) */
	transform-origin: 10% 0%;
}
.ssc-alert-modal-container .pet-star-popup .wp-block-image > a, 
.ssc-alert-modal-container .pet-star-popup .wp-block-image > figure > a {
	display: block;
}
.ssc-alert-modal-container:has(.pet-star-popup) {
	padding: 0;
}
/* 1. Entrance Animation: Springs out smoothly from top bar */
.ssc-alert-modal-overlay.is-open .ssc-alert-modal-container {
	animation: sscModalExpand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
/* 2. Closing State: Backdrop Fades Out */
.ssc-alert-modal-overlay.is-closing {
	opacity: 0;
	pointer-events: none;
}
/* 3. Exit Animation: Retracts back into top bar */
.ssc-alert-modal-overlay.is-closing .ssc-alert-modal-container {
	animation: sscModalShrink 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
/* Keyframes: Spring out from top-left announcement bar */
@keyframes sscModalExpand {
	0% {
		opacity: 0;
		transform: translate(-120px, -180px) scale(0.15);
	}
	100% {
		opacity: 1;
		transform: translate(0, 0) scale(1);
	}
}
/* Keyframes: Shrink back into top-left announcement bar */
@keyframes sscModalShrink {
	0% {
		opacity: 1;
		transform: translate(0, 0) scale(1);
	}
	100% {
		opacity: 0;
		transform: translate(-120px, -180px) scale(0.15);
	}
}
/* ==========================================================================
Styled Top Right 'X' Close Button
========================================================================== */
.ssc-modal-close {
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: var(--white);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.ssc-modal-close svg {
	width: 16px;
	height: 16px;
	stroke: var(--ssc-orange-alt-2, #e26043); /* Matches brand terracotta color */
	stroke-width: 2.5;
	transition: transform 0.25s ease;
}
.ssc-modal-close:hover {
	background-color: var(--white);
	transform: scale(1.12);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.ssc-modal-close:hover svg {
	transform: rotate(90deg);
}
/* ==========================================================================
Inner Content Stack Layout Overrides
========================================================================== */
/* Wrapper Group Reset */
.ssc-alert-modal-content section.announcement-popup {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	text-align: center !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
}
/* 1. Optional Image (Full Width with Rounded Corners) */
.ssc-alert-modal-content .image-wrap {
	width: 100% !important;
	margin: 0 0 24px 0 !important;
}
.ssc-alert-modal-content .pet-star-popup .image-wrap {
	margin: 0 !important;
}
.ssc-alert-modal-content .image-wrap figure {
	margin: 0 !important;
	width: 100% !important;
}
.ssc-alert-modal-content .image-wrap img {
	width: 100% !important;
	height: 220px !important;
	object-fit: cover !important;
	border-radius: 12px !important;
	display: block !important;
	object-position: top;
}
.ssc-alert-modal-content .pet-star-popup .image-wrap img {
	height: 100% !important;
}
/* 2. Required Header Text */
.ssc-alert-modal-content .ssc-announcement-text {
	color: var(--white) !important;
	font-size: 1.35rem !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-align: center !important;
	margin: 0 0 12px 0 !important;
}
/* 3. Optional Description Text */
.ssc-alert-modal-content p.wp-block-paragraph {
	color: var(--white) !important;
	font-size: 0.95rem !important;
	line-height: 1.45 !important;
	text-align: center !important;
	margin: 0 0 24px 0 !important;
	opacity: 0.95;
}
/* 4. Optional Button with Link (Centered White Pill Button) */
.ssc-alert-modal-content .wp-block-buttons {
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
	margin: 0 !important;
}
.ssc-alert-modal-content .wp-block-button__link {
	background-color: var(--white, #ffffff) !important;
	color: var(--ssc-orange-alt-2, #e26043) !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	padding: 12px 36px !important;
	border-radius: 50px !important; /* Rounded Pill shape */
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ssc-alert-modal-content .wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
/* ==========================================================================
Back to Top Button
========================================================================== */
.back-to-top {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-color: var(--orange);
	color: var(--white);
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: all .2s ease-in-out;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	outline: 2px solid transparent;
}
.back-to-top:hover,
.back-to-top:focus-visible {
	background-color: var(--orange);
	color: var(--white);
	transform: translateY(-2px);
	outline: 2px solid var(--orange, #000);
	outline-offset: 2px;
}
/* ==========================================================================
Contact Form 7: Schedule Appointment Form
========================================================================== */
/* ==========================================================================
Schedule Appointment Layout & Form Styles
========================================================================== */
/* Form Container & Max-Width Expansion */
.wpcf7-form {
	max-width: 100% !important;
	margin: 0 auto 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid rgba(0,0,0,0.04);
}
.wpcf7-form p {
	margin: 0;
	padding: 0;
}
.form-intro {
	margin-bottom: 1.5rem !important;
	font-size: 1rem;
	color: var(--ssc-text-muted);
	line-height: 1.5;
}
/* ==========================================================================
Form Row & Control Fields
========================================================================== */
.form-row {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
.form-row-2col {
		flex-direction: row;
	}
.form-row-2col .form-group {
		flex: 1;
	}
}
.form-group {
	display: flex;
	flex-direction: column;
}
.form-group label {
	display: block;
	font-weight: 600;
	font-size: 0.925rem;
	margin-bottom: 0.375rem;
	color: var(--text);
}
.form-group label .required {
	color: var(--orange);
	margin-left: 2px;
}
.wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"] {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--ssc-ink-deep, #1a202c) !important;
	background-color: var(--blue-light) !important;
	border: 1px solid var(--ssc-border-strong) !important;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(49, 151, 149, 0.2);
}
/* Submit Button Layout */
.form-submit-wrapper {
	margin-top: 1.75rem;
}
.wpcf7-submit.btn-primary {
	display: inline-block;
	padding: 0.85rem 2rem !important;
	font-size: 1rem !important;
	font-weight: 600;
	color: var(--white) !important;
	background-color: var(--blue) !important;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}
.wpcf7-submit.btn-primary:hover {
	background-color: var(--primary);
}
.wpcf7-submit.btn-primary:active {
	transform: translateY(1px);
}
/* ==========================================================================
Form controls: every Contact Form 7 form (contact, foster, surrender, jobs, appointment...)
One look for select, date/number/url, textarea, checkbox/radio, file and the submit button,
matching the existing text, email and phone fields above.
========================================================================== */
.wpcf7-form label {
	display: block;
	margin-bottom: 1.15rem;
	font-weight: 600;
	color: var(--ssc-ink);
	line-height: 1.35;
}
.wpcf7-form label .wpcf7-form-control-wrap {
	margin-top: 0.4rem;
	font-weight: 400;
}
.wpcf7-form .wpcf7-list-item label {
	margin-bottom: 0;
	font-weight: 400;
}
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="time"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--ssc-ink) !important;
	background-color: var(--blue-light) !important;
	border: 1px solid var(--ssc-border-strong) !important;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}
.wpcf7-form input[type="date"],
.wpcf7-form input[type="time"] {
	min-height: 3rem;
	color-scheme: light;
}
.wpcf7-form input[type="date"]::-webkit-calendar-picker-indicator,
.wpcf7-form input[type="time"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.7;
}
.wpcf7-form input[type="date"]::-webkit-calendar-picker-indicator:hover {
	opacity: 1;
}
/* Dropdown: same field, custom chevron instead of the browser's. */
.wpcf7-form select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.75rem;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2326303a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1.1rem;
}
.wpcf7-form textarea {
	min-height: 9rem;
	resize: vertical;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
	color: var(--ssc-text-soft);
	opacity: 1;
}
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form input[type="time"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--blue) !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent);
}
.wpcf7-form .wpcf7-not-valid {
	border-color: var(--orange) !important;
}
/* Checkboxes, radios and the acceptance box */
.wpcf7-form .wpcf7-list-item {
	display: block;
	margin: 0 0 0.5rem;
}
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
	width: 1.15rem;
	height: 1.15rem;
	margin: 0 0.5rem 0 0;
	vertical-align: -0.2rem;
	accent-color: var(--blue);
	cursor: pointer;
}
/* File upload */
.wpcf7-form input[type="file"] {
	width: 100%;
	padding: 0.5rem;
	font: inherit;
	font-size: 0.95rem;
	color: var(--ssc-text-muted);
	background: var(--ssc-surface-alt);
	border: 1px dashed var(--ssc-border-strong);
	border-radius: 6px;
	box-sizing: border-box;
}
.wpcf7-form input[type="file"]::file-selector-button {
	margin-right: 0.85rem;
	padding: 0.5rem 1.1rem;
	font: inherit;
	font-weight: 600;
	color: var(--white);
	background: var(--blue);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}
/* Submit: the same pill as the theme's buttons. */
.wpcf7-form .wpcf7-submit,
.wpcf7-form input[type="submit"] {
	display: inline-block;
	padding: 0.85rem 2.25rem !important;
	font: inherit;
	font-size: 1rem !important;
	font-weight: 600;
	line-height: 1.2;
	color: var(--white) !important;
	background-color: var(--blue) !important;
	border: 2px solid var(--blue) !important;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}
.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover {
	background-color: var(--primary) !important;
	border-color: var(--primary) !important;
}
.wpcf7-form .wpcf7-submit:focus-visible,
.wpcf7-form input[type="submit"]:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--blue) 40%, transparent);
	outline-offset: 2px;
}
.wpcf7-form .wpcf7-submit:active {
	transform: translateY(1px);
}
.wpcf7-form .wpcf7-submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
/* Form-first pages (Lost & Found): wide form column plus a tinted tips card. */
.ssc-form-first {
	gap: 3rem;
	align-items: flex-start;
}
.ssc-form-aside {
	padding: 2rem;
	background: var(--ssc-brand-tint, #eef6f9);
	border-radius: 16px;
}
.ssc-form-aside h3 {
	margin-top: 0;
}
.ssc-form-aside ul {
	margin: 0;
	padding-left: 1.25rem;
}
.ssc-form-aside li + li {
	margin-top: 0.75rem;
}
@media (min-width: 782px) {
.ssc-form-aside {
		position: sticky;
		top: 7rem;
	}
}
/* Forms on a dark/colored band (e.g. footer signup on .has-blue-background-color):
   light labels, inverted white pill button. */
.has-blue-background-color .wpcf7-form label,
.has-blue-background-color .wpcf7-form .wpcf7-not-valid-tip,
.has-blue-background-color .wpcf7-form .wpcf7-response-output {
	color: var(--white) !important;
}
.has-blue-background-color .wpcf7-form .wpcf7-submit,
.has-blue-background-color .wpcf7-form input[type="submit"] {
	background-color: var(--white) !important;
	border-color: var(--white) !important;
	color: var(--blue) !important;
}
.has-blue-background-color .wpcf7-form .wpcf7-submit:hover,
.has-blue-background-color .wpcf7-form input[type="submit"]:hover {
	background-color: transparent !important;
	border-color: var(--white) !important;
	color: var(--white) !important;
	filter: none;
}
.has-blue-background-color .wpcf7-form .wpcf7-submit:focus-visible {
	outline-color: color-mix(in srgb, var(--white) 70%, transparent);
}
/* Contact Form 7 Native Spinner & Validation Output */
.wpcf7 .wpcf7-spinner {
	vertical-align: middle;
	margin-left: 10px;
}
.wpcf7-not-valid-tip {
	color: var(--orange);
	font-size: 0.85rem;
	margin-top: 0.25rem;
}
.wpcf7-response-output {
	margin: 1.5rem 0 0 0 !important;
	padding: 0.85rem 1rem !important;
	border-radius: 6px !important;
	font-size: 0.95rem;
}
/* Header Mobile Menu  */
@media (max-width: 1200px) {
body.admin-bar .ssc-sticky-header-clone {
		display: none;
	}
}
@media (max-width: 840px) {
:root {--font-size-h2-footer: 2.5rem; --font-size-h2: 2.5rem;}
}
@media (max-width: 782px) {
body.admin-bar .ssc-sticky-header-clone {
		top: 46px;
	}
}
@media (max-width: 720px) {
:root {--font-size-h2-footer: 2.3rem; --font-size-h2: 2.3rem;}
}
@media (max-width: 690px) {
:root {
		--slider-paragraph-font-size: 1rem;
		--hero-cover-mobile-padding: 45px;
		--mobile-padding: 45px;
		--font-size-h2-footer: 2rem;
		--font-size-h2: 2rem;

	}
.is-stack-on-mobile {
		display: block !important;
	}
.is-stack-on-mobile.is-group-list ul li {
		font-size: 1.25rem;
	}
}
@media (max-width: 670px) {
.center-mobile {
		.wp-block-heading,
		.wp-block-button, .wp-block-buttons,
		.wp-block-paragraph {
			text-align: center;
			justify-content: center;
		}
		.wp-block-buttons {
			gap: 1rem;
		}
		.wp-block-button {
			width: 100%;
			display: block;
		}
		.wp-block-list.has-checkmark li::before {
			left: auto;
			margin-left: -25px;
		}
		.wp-block-list.has-checkmark li {
			font-size: 1.25rem;
			text-align: center;
			font-weight: 700;
		}

	}
.site-credit {
		flex-direction: column;
		justify-content: center;
		gap: 10px;
		.wp-block-paragraph {
			font-size: 0.76rem;
			text-align: center;
		}
		.site-credit-socials {
			justify-content: center;
		}
	}
}
/* Tiny Mobile */
@media (max-width: 520px) {
:root {--hero-cover-mobile-padding: 45px;--mobile-padding: 25px;--font-size-h2-footer: 2rem; --font-size-h2: 2rem;}
}
/* Legacy Mobile Screens */
@media (max-width: 490px) {
:root {--slider-paragraph-font-size: 1rem;}
}
@media (max-width: 480px) {
:root {}
}
@media (max-width: 380px) {
:root {--slider-paragraph-font-size: .85rem;}
}
/* Print Styles Override */
@media print {
header, footer, sidebar, nav, .pet-share-bar, .pet-print-profile {
		display: none;
	}
}
.site-credit-by { margin: 0.75rem 0 0; opacity: 0.85; }
.site-credit-by:hover { opacity: 1; }
/* Header breathing room: height no longer depends on the logo's shape (a short wide wordmark used to
   collapse the bar to the height of the buttons). Children can tune these variables. */
:root {
	--header-min-height: 88px;
	--header-padding-block: 14px;
}
/* ShelterForms places with no form assigned render nothing, so hide their empty section. */
.page-section-form:not(:has(.shelter-form, .sf-notice)) { display: none; }
.page-section-gallery:not(:has(.shelter-gallery, .shelter-gallery-albums)) { display: none; }
.page-section-team-depts:not(:has(.shelter-team-depts)) { display: none; }

/* Safety net: nothing in the shell (a wide badge row, an off-screen tooltip) may widen the page past the screen.
   clip, not hidden, so it creates no scroll container and sticky positioning keeps working. */
.wp-site-blocks {
	overflow-x: clip;
}
/* v bump for cache */
