/**
 * TAMUK Blackbaud Plugin Form Styles
 *
 * Scoped styles for the Update Your Info and Memorial Giving forms.
 * These complement the theme's integrations.css.
 */

/* Base form sizing (theme may override) */
.tamuk-bb-form {
	max-width: 720px;
	margin: 0 auto;
}

.tamuk-bb-form .form-title {
	text-align: center;
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: #003399;
}

.tamuk-bb-form .form-intro {
	text-align: center;
	color: #6B7280;
	margin-bottom: 2rem;
}

/* Remove default fieldset borders */
.tamuk-bb-form fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

/* Constituent search results */
.constituent-search-results {
	margin-top: 1rem;
	padding: 1rem;
	background: #F9FAFB;
	border-radius: 0.5rem;
}

.constituent-search-results .result-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border: 1px solid #E5E7EB;
	border-radius: 0.5rem;
	margin-bottom: 0.5rem;
	cursor: pointer;
	transition: border-color 150ms ease, background-color 150ms ease;
}

.constituent-search-results .result-item:hover,
.constituent-search-results .result-item:focus {
	border-color: #003399;
	background-color: #e6edf7;
}

.constituent-search-results .result-item.is-selected {
	border-color: #003399;
	background-color: #e6edf7;
	outline: 2px solid #003399;
}

/* RSVP modal close button */
.rsvp-modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #6B7280;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rsvp-modal-close:hover {
	color: #111827;
}

.rsvp-modal-content {
	position: relative;
}

/* Loading overlay with Lottie animation */
.tamuk-bb-loading-overlay {
	position: absolute;
	inset: 0;
	z-index: 100;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-radius: inherit;
}

/* CSS spinner fallback — hidden once Lottie loads */
.tamuk-bb-loading-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #e5e7eb;
	border-top-color: #003399;
	border-radius: 50%;
	animation: tamuk-spin 0.8s linear infinite;
}

/* Hide spinner when Lottie player is present and working */
.tamuk-bb-loading-overlay lottie-player:not([style*="display: none"]) ~ .tamuk-bb-loading-spinner {
	display: none;
}

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

.tamuk-bb-loading-text {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #003399;
	font-family: "Cinzel", serif;
}

