.tgf-form-wrap {
	max-width: 760px;
	margin: 0 auto;
	color: #333;
	text-align: left;
}

.tgf-form-wrap .tgf-form {
	text-align: left;
}

/* Counter Elementor/theme rules that center form labels and inputs. */
.tgf-form-wrap .tgf-form label,
.tgf-form-wrap .tgf-form legend,
.tgf-form-wrap .tgf-form input,
.tgf-form-wrap .tgf-form select,
.tgf-form-wrap .tgf-form textarea,
.tgf-form-wrap .tgf-form fieldset,
.tgf-form-wrap .tgf-form fieldset p {
	text-align: left !important;
}

.tgf-form-wrap .tgf-form .tgf-field > label,
.tgf-form-wrap .tgf-form legend {
	width: 100% !important;
}

/* Counter Elementor/theme rules that hide label text but leave child spans visible. */
.tgf-form-wrap .tgf-form label,
.tgf-form-wrap .tgf-form legend,
.tgf-form-wrap .tgf-form fieldset p {
	color: #333 !important;
	font-size: 1rem !important;
	line-height: 1.45 !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: static !important;
	height: auto !important;
	max-width: none !important;
	clip: unset !important;
	clip-path: none !important;
	overflow: visible !important;
	white-space: normal !important;
	text-indent: 0 !important;
}

.tgf-form .tgf-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
	justify-content: flex-start;
	align-items: flex-start;
}

.tgf-form fieldset.tgf-row {
	border: none;
	padding: 0;
	margin: 0 0 1.25rem;
}

.tgf-form legend {
	font-weight: 600;
	margin-bottom: 0.75rem;
	padding: 0;
	width: 100%;
	text-align: left;
}

.tgf-form .tgf-field {
	flex: 1 1 calc(50% - 0.5rem);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}

.tgf-form .tgf-field--full {
	flex-basis: 100%;
}

.tgf-form .tgf-field > label {
	font-weight: 600;
	margin-bottom: 0.35rem;
	text-align: left;
	width: 100%;
}

.tgf-form .tgf-required {
	color: #c0392b;
}

.tgf-form label.tgf-checkbox {
	font-weight: 400;
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	cursor: pointer;
}

.tgf-form label.tgf-checkbox input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 0.2rem;
}

.tgf-form .tgf-field.tgf-checkbox > label {
	font-weight: 400;
	flex-direction: row;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tgf-form input[type="text"],
.tgf-form input[type="email"],
.tgf-form input[type="tel"],
.tgf-form select,
.tgf-form textarea {
	width: 100%;
	padding: 0.6rem 0.7rem;
	border: 1px solid #c4c4c4;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
	background: #fff;
	color: #333;
}

.tgf-form input:disabled {
	background: #f5f5f5;
	color: #555;
	cursor: not-allowed;
}

.tgf-form input:focus,
.tgf-form select:focus,
.tgf-form textarea:focus {
	outline: none;
	border-color: #2c7a3f;
	box-shadow: 0 0 0 2px rgba(44, 122, 63, 0.2);
}

.tgf-form .tgf-error {
	color: #c0392b;
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

.tgf-error-summary {
	border: 1px solid #c0392b;
	background: #fdecea;
	color: #922b21;
	padding: 0.8rem 1rem;
	border-radius: 4px;
	margin-bottom: 1.25rem;
}

.tgf-error-summary__title {
	font-weight: 700;
	margin: 0 0 0.4rem;
}

.tgf-error-summary ul {
	margin: 0;
	padding-left: 1.2rem;
}

.tgf-actions {
	align-items: center;
	justify-content: flex-start;
}

.tgf-submit {
	background: #2c7a3f;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 0.7rem 2rem;
	font-size: 1rem;
	cursor: pointer;
}

.tgf-submit:hover {
	background: #24632f;
}

.tgf-spinner {
	display: none;
	margin-left: 0.75rem;
	width: 1.1rem;
	height: 1.1rem;
	border: 2px solid #c4c4c4;
	border-top-color: #2c7a3f;
	border-radius: 50%;
	animation: tgf-spin 0.7s linear infinite;
}

.htmx-request .tgf-spinner,
.tgf-spinner.htmx-request {
	display: inline-block;
}

@keyframes tgf-spin {
	to {
		transform: rotate(360deg);
	}
}

.tgf-success {
	border: 1px solid #2c7a3f;
	background: #eafaef;
	color: #1e5230;
	padding: 1.5rem;
	border-radius: 6px;
	text-align: center;
}

.tgf-success__title {
	margin-top: 0;
}

.tgf-branch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.5rem 1rem;
}

@media (max-width: 600px) {
	.tgf-form .tgf-field {
		flex-basis: 100%;
	}
}

/* Final alignment overrides — must beat Elementor/theme rules loaded after this sheet. */
.tgf-form-wrap .tgf-form .tgf-field {
	align-items: stretch !important;
	align-self: stretch !important;
	text-align: left !important;
}

.tgf-form-wrap .tgf-form .tgf-field:not(.tgf-checkbox) > label,
.tgf-form-wrap .tgf-form legend {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	text-align: left !important;
}

.tgf-form-wrap .tgf-form .tgf-field input:not([type="checkbox"]):not([type="radio"]),
.tgf-form-wrap .tgf-form .tgf-field select,
.tgf-form-wrap .tgf-form .tgf-field textarea {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	text-align: left !important;
}

.tgf-form-wrap .tgf-form label.tgf-checkbox {
	justify-content: flex-start !important;
	text-align: left !important;
	width: 100% !important;
}

.tgf-tortoise-block--hidden,
.tgf-tortoise-block[hidden] {
	display: none !important;
}

.tgf-tortoise-block__heading {
	font-weight: 600;
	font-size: 1.05rem;
	margin: 0 0 1rem;
	color: #333;
}

.tgf-tortoise-block + .tgf-tortoise-block {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #ddd;
}

.tgf-tortoise-count-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.tgf-tortoise-count {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tgf-tortoise-count__btn {
	min-width: 2.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 1rem;
	line-height: 1.2;
	cursor: pointer;
	text-align: center;
}

.tgf-tortoise-count__btn:hover {
	border-color: #888;
	background: #f5f5f5;
}

.tgf-tortoise-count__btn--active,
.tgf-tortoise-count__btn--active:hover {
	background: #2c7a3f;
	border-color: #2c7a3f;
	color: #fff;
}

.tgf-tortoise-count__btn:focus-visible {
	outline: 2px solid #2c7a3f;
	outline-offset: 2px;
}

.tgf-fieldset {
	border: 1px solid #ddd;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem 0.5rem;
}

.tgf-fieldset legend {
	font-weight: 600;
	padding: 0 0.5rem;
}

.tgf-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.tgf-radio {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: normal;
}

.tgf-rehome-grid-wrap {
	max-width: 100%;
}

.tgf-rehome-grid-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.tgf-rehome-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
}

.tgf-rehome-card {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 1rem;
	background: #fff;
}

.tgf-rehome-card__title {
	margin: 0 0 0.75rem;
	padding: 0.5rem;
	background: #f3f3f3;
	text-align: center;
}

.tgf-rehome-card__description {
	margin: 0 0 0.75rem;
}

.tgf-rehome-card__image-wrap {
	margin-bottom: 0.75rem;
}

.tgf-rehome-card__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: contain;
}

.tgf-rehome-card__meta {
	margin: 0;
	font-size: 0.95rem;
}

.tgf-rehome-card__actions {
	margin-top: 1rem;
	text-align: center;
}

.tgf-rehome-card__actions a {
	color: #c95427;
	font-weight: 600;
	text-decoration: none;
}

.tgf-rehome-card__actions a:hover {
	text-decoration: underline;
}

.tgf-rehome-grid-empty {
	margin: 1rem 0;
}

.tgf-rehome-grid-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.tgf-rehome-grid-page {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font: inherit;
	cursor: pointer;
}

.tgf-rehome-grid-page.is-active,
.tgf-rehome-grid-page:hover {
	background: #c95427;
	border-color: #c95427;
	color: #fff;
}

.tgf-lostfound-grid-wrap {
	max-width: 100%;
}

.tgf-lostfound-grid-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
}

.tgf-lostfound-grid-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	align-items: center;
	margin-left: auto;
}

.tgf-lostfound-grid-list-link {
	text-decoration: none;
}

.tgf-lostfound-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
}

.tgf-lostfound-card {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 1rem;
	background: #fff;
}

.tgf-lostfound-card__title {
	margin: 0 0 0.75rem;
	padding: 0.5rem;
	background: #f3f3f3;
	text-align: center;
}

.tgf-lostfound-card__description {
	margin: 0 0 0.75rem;
}

.tgf-lostfound-card__image-wrap {
	margin-bottom: 0.75rem;
}

.tgf-lostfound-card__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 220px;
	object-fit: contain;
}

.tgf-lostfound-card__meta {
	margin: 0;
	font-size: 0.95rem;
}

.tgf-lostfound-card__actions {
	margin-top: 1rem;
	text-align: center;
}

.tgf-lostfound-card__actions a,
.tgf-lostfound-card__meta a {
	color: #c95427;
	font-weight: 600;
	text-decoration: none;
}

.tgf-lostfound-card__actions a:hover,
.tgf-lostfound-card__meta a:hover {
	text-decoration: underline;
}

.tgf-lostfound-grid-empty {
	margin: 1rem 0;
}

.tgf-lostfound-grid-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.5rem;
}

.tgf-lostfound-grid-page {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font: inherit;
	cursor: pointer;
}

.tgf-lostfound-grid-page.is-active,
.tgf-lostfound-grid-page:hover {
	background: #c95427;
	border-color: #c95427;
	color: #fff;
}

.tgf-lostfound-card-preview {
	margin: 1rem 0;
}

.tgf-volunteer-events-wrap {
	max-width: 960px;
}

.tgf-volunteer-events__heading {
	text-align: center;
	margin-bottom: 1rem;
}

.tgf-volunteer-events__intro {
	text-align: center;
	margin-bottom: 1.5rem;
}

.tgf-volunteer-events__table-wrap {
	overflow-x: auto;
	margin-bottom: 1.5rem;
}

.tgf-volunteer-events__table {
	width: 100%;
	border-collapse: collapse;
}

.tgf-volunteer-events__table th,
.tgf-volunteer-events__table td {
	border: 1px solid #ddd;
	padding: 0.75rem;
	vertical-align: top;
	text-align: left;
}

.tgf-volunteer-events__table thead {
	background: #f7f7f7;
}

.tgf-volunteer-events__date-cell {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.tgf-volunteer-events__day {
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.1;
}

.tgf-volunteer-events__month {
	font-size: 0.85rem;
}

.tgf-volunteer-events__title-link {
	display: block;
	width: 100%;
	padding: 0.65rem 1rem;
	background: #c95427;
	color: #fff;
	border: 1px solid #c95427;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	box-sizing: border-box;
	line-height: 1.35;
}

.tgf-volunteer-events__title-link:hover,
.tgf-volunteer-events__title-link:focus {
	background: #b34a22;
	border-color: #b34a22;
	color: #fff;
	text-decoration: none;
}

.tgf-volunteer-events__back-link {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #fff;
	color: #c95427;
	border: 1px solid #c95427;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.35;
}

.tgf-volunteer-events__back-link:hover,
.tgf-volunteer-events__back-link:focus {
	background: #c95427;
	border-color: #c95427;
	color: #fff;
	text-decoration: none;
}

.tgf-volunteer-events__back {
	margin: 0 0 1rem;
}

.tgf-volunteer-events__rsvp-form {
	margin: 1.5rem 0;
}

.tgf-volunteer-events__rsvp-form .tgf-field {
	margin-bottom: 1rem;
}

.tgf-volunteer-events__email-summary {
	margin-bottom: 1rem;
}

.tgf-volunteer-events__change-email {
	display: inline;
	margin-left: 0.5rem;
	padding: 0;
	background: none;
	border: none;
	color: #c95427;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.tgf-volunteer-events__change-email:hover,
.tgf-volunteer-events__change-email:focus {
	color: #b34a22;
}

.tgf-volunteer-events__rsvp-result {
	margin: 1.5rem 0;
}

.tgf-volunteer-events__description {
	margin-top: 2rem;
}

.tgf-volunteer-events__description h4 {
	margin-bottom: 0.5rem;
}

.tgf-volunteer-events__empty {
	text-align: center;
	margin: 1.5rem 0;
}

.tgf-button {
	display: inline-block;
	padding: 0.7rem 2rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	border-radius: 4px;
	box-sizing: border-box;
	text-decoration: none;
}

.tgf-button--primary {
	background: #c95427;
	color: #fff;
	border: 1px solid #c95427;
}

.tgf-button--primary:hover,
.tgf-button--primary:focus {
	background: #b34a22;
	border-color: #b34a22;
	color: #fff;
}

/* Donation form */
.tgf-donation-wrap {
	max-width: 520px;
	padding: 0 1rem;
	box-sizing: border-box;
}

.tgf-donation-title {
	margin: 0 0 1rem;
	color: #a64d24;
	font-size: 1.75rem;
	line-height: 1.2;
	text-align: center;
}

.tgf-donation-section-title {
	margin: 1.25rem 0 0.75rem;
	font-size: 1.125rem;
}

.tgf-donation-frequency {
	display: flex;
	background: #a64d24;
	border-radius: 999px;
	padding: 0.25rem;
	margin-bottom: 1.25rem;
	gap: 0.25rem;
}

.tgf-donation-frequency__option {
	flex: 1 1 50%;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
}

.tgf-donation-frequency__option.is-selected {
	background: #fff;
	color: #a64d24;
}

.tgf-donation-amounts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
	margin-bottom: 1rem;
}

@media (min-width: 480px) {
	.tgf-donation-amounts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.tgf-donation-amount {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	padding: 0.75rem 0.5rem;
	border: 2px solid #a64d24;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	text-align: center;
	box-sizing: border-box;
}

.tgf-donation-amount input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.tgf-donation-amount.is-selected,
.tgf-donation-amount:has(input:checked) {
	background: #a64d24;
	color: #fff;
}

.tgf-donation-amount__value {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.tgf-donation-amount__desc {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	line-height: 1.25;
	opacity: 0.9;
}

.tgf-donation-custom {
	margin-bottom: 1rem;
}

.tgf-donation-custom__label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.tgf-donation-custom__label input {
	margin-right: 0.35rem;
}

.tgf-donation-custom__field {
	display: flex;
	align-items: stretch;
	border: 2px solid #a64d24;
	border-radius: 10px;
	overflow: hidden;
	min-height: 44px;
}

.tgf-donation-custom__prefix {
	display: flex;
	align-items: center;
	padding: 0 0.75rem;
	background: #f7f2ef;
	font-weight: 700;
	color: #333;
}

.tgf-donation-custom__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	padding: 0.75rem;
	font: inherit;
	font-size: 1rem;
}

.tgf-donation-dedicate textarea {
	width: 100%;
	margin-top: 0.5rem;
}

.tgf-donation-actions {
	margin-top: 1.25rem;
}

.tgf-donation-submit {
	width: 100%;
	min-height: 48px;
	border-radius: 10px;
}

.tgf-donation-thankyou__email {
	margin-top: 0.75rem;
	color: #555;
}

.tgf-donation-empty {
	text-align: center;
	padding: 1.5rem 0;
}
