/* =============================================================
   Crown Church Orlando — All Modals (merged)
   Combines: modal-groups, modal-serve, modal-visit,
             modal-recalibrate, modal-give
   Merged to reduce 5 HTTP requests → 1
   ============================================================= */

/* ── Shared: prevent body scroll when any modal is open ── */
body.no-scroll,
body.modal-open,
body.cc-give-open {
	overflow: hidden;
}
body.cc-give-open {
	touch-action: none;
}


/* =============================================================
   GROUPS MODAL
   ============================================================= */
#crown-groups-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.82);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
#crown-groups-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
@media (max-width: 500px) {
	#crown-groups-overlay { padding: 0; }
}


/* =============================================================
   SERVE MODAL
   ============================================================= */
#crown-serve-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.85);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
#crown-serve-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
@media (max-width: 500px) {
	#crown-serve-overlay { padding: 0; }
}


/* =============================================================
   VISIT MODAL
   ============================================================= */
#crown-visit-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.78);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
#crown-visit-overlay.is-open {
	opacity: 1;
	visibility: visible;
}
@media (max-width: 500px) {
	#crown-visit-overlay { padding: 0; }
}
.modal-header {
	background: #1b252f;
	padding: 32px 40px 28px 40px;
}
.modal-headline {
	font-family: 'Poppins', sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 8px 0;
	line-height: 1.2;
	padding-right: 40px;
}
.modal-subheadline {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #cfae6b;
	margin: 0;
	line-height: 1.5;
}
.modal-service-info {
	background: #ecf0f3;
	padding: 20px 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
}
.modal-service-info svg {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
}
.modal-service-text {
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #1b252f;
	margin: 0;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	text-align: center;
	padding: 0 16px;
	box-sizing: border-box;
}
.modal-map { line-height: 0; }
.modal-map iframe {
	display: block;
	width: 100%;
	height: 220px;
	border: none;
}
.modal-divider {
	border: none;
	border-top: 1px solid #cfae6b;
	margin: 24px 40px;
}
.modal-connect-label {
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #cfae6b;
	text-align: center;
	margin: 0 0 20px 0;
}
@media (max-width: 480px) {
	.modal-header { padding: 20px 16px 16px 16px; }
	.modal-headline { font-size: 1.2rem; }
	.modal-subheadline { font-size: 0.85rem; }
	.modal-service-info { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
	.modal-service-text { font-size: 15px; white-space: normal; }
	.modal-divider { margin: 16px; }
}


/* =============================================================
   RECALIBRATE MODAL
   ============================================================= */
@keyframes rcmSlideUp {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}
#crown-recalibrate-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.85);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
#crown-recalibrate-overlay.is-open { opacity: 1; visibility: visible; }
#crown-recalibrate-modal {
	display: flex;
	flex-direction: row;
	width: 90vw;
	max-width: 980px;
	height: 85vh;
	max-height: 700px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 40px 100px rgba(0,0,0,0.60);
	animation: rcmSlideUp 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
#crown-recalibrate-overlay:not(.is-open) #crown-recalibrate-modal { animation: none; }
.rcm-left {
	width: 40%;
	flex-shrink: 0;
	background: #1b252f;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	overflow: hidden;
}
.rcm-left::after {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 50% 60%, rgba(207,174,107,0.10) 0%, transparent 65%);
	pointer-events: none;
}
.rcm-accent-bar { width: 100%; height: 4px; background: #cfae6b; flex-shrink: 0; }
.rcm-church-label {
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #cfae6b;
	margin: 28px 0 0 0;
	padding: 0 32px;
	text-align: center;
	position: relative;
	z-index: 1;
}
.rcm-event-identity {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 32px;
	text-align: center;
	position: relative;
	z-index: 1;
}
.rcm-event-title {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(28px,3.5vw,48px);
	font-weight: 300;
	font-style: italic;
	color: #ffffff;
	line-height: 1;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	width: 100%;
	text-align: center;
}
.rcm-event-type {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 4px;
	text-transform: uppercase;
	color: #cfae6b;
	margin: 10px 0 0 0;
}
.rcm-event-date {
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 400;
	color: rgba(255,255,255,0.75);
	margin: 16px 0 0 0;
}
.rcm-gold-rule { width: 40px; height: 2px; background: #cfae6b; border-radius: 1px; margin: 20px auto; }
.rcm-tagline {
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: rgba(255,255,255,0.60);
	line-height: 1.7;
	text-align: center;
	max-width: 260px;
	margin: 0 auto;
}
.rcm-attribution {
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	color: rgba(255,255,255,0.35);
	text-align: center;
	margin: 0;
	padding: 0 32px 28px 32px;
	position: relative;
	z-index: 1;
}
.rcm-right {
	flex: 1;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}
.rcm-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid #e0e0e0;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 10;
	transition: border-color 0.18s ease, background 0.18s ease;
}
.rcm-close:hover { border-color: #cfae6b; background: rgba(207,174,107,0.06); }
.rcm-close svg { width: 16px; height: 16px; stroke: #1b252f; stroke-width: 2; stroke-linecap: round; }
.rcm-reg-header { padding: 36px 40px 20px 40px; flex-shrink: 0; }
.rcm-reg-eyebrow {
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #cfae6b;
	margin: 0 0 8px 0;
}
.rcm-reg-heading {
	font-family: 'Poppins', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #1b252f;
	margin: 0;
	line-height: 1.25;
}
.rcm-cta-wrap {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 40px 40px;
	gap: 20px;
}
.rcm-cta-feature {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 20px;
	background: #f9f9fc;
	border-radius: 8px;
	border-left: 3px solid #cfae6b;
}
.rcm-cta-icon { width: 28px; height: 28px; flex-shrink: 0; margin-top: 2px; }
.rcm-cta-icon svg { width: 100%; height: 100%; }
.rcm-cta-feature-label {
	font-family: 'Poppins', sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #cfae6b;
	margin: 0 0 4px;
}
.rcm-cta-feature-value {
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #1b252f;
	margin: 0;
	line-height: 1.4;
}
.rcm-cta-feature-value span { font-weight: 400; color: #626567; font-size: 14px; }
.rcm-register-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #cfae6b;
	color: #1b252f;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 16px 32px;
	border-radius: 6px;
	transition: background 0.2s, transform 0.15s;
	margin-top: 4px;
}
.rcm-register-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.rcm-register-btn:hover { background: #bca36d; transform: translateY(-1px); }
.rcm-register-note { font-family: 'Poppins', sans-serif; font-size: 11px; color: #626567; text-align: center; margin: 0; }
@media (max-width: 768px) {
	#crown-recalibrate-overlay { padding: 0; align-items: flex-end; }
	#crown-recalibrate-modal {
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		height: 96vh;
		max-height: 96vh;
		border-radius: 14px 14px 0 0;
	}
	.rcm-left {
		width: 100%;
		flex-shrink: 0;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 16px;
		padding: 0 20px;
		height: auto;
	}
	.rcm-left::after { display: none; }
	.rcm-accent-bar { display: none; }
	.rcm-church-label, .rcm-event-identity, .rcm-attribution { display: none; }
	.rcm-left::before {
		content: 'Recalibrate 2026';
		font-family: 'Poppins', sans-serif;
		font-size: 16px;
		font-weight: 700;
		font-style: italic;
		color: #ffffff;
		padding: 16px 0;
		white-space: nowrap;
	}
	#crown-recalibrate-modal::before {
		content: '';
		display: block;
		width: 100%;
		height: 4px;
		background: #cfae6b;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 20;
		border-radius: 14px 14px 0 0;
	}
	.rcm-right { flex: 1; overflow-y: auto; }
	.rcm-reg-header { padding: 24px 20px 16px 20px; }
	.rcm-reg-heading { font-size: 18px; }
	.rcm-cta-wrap { padding: 0 20px 28px; gap: 14px; }
	.rcm-cta-feature { padding: 12px 16px; }
	.rcm-close { top: 10px; right: 10px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
}


/* =============================================================
   GIVE MODAL
   ============================================================= */
#crown-give-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.88);
	z-index: 9999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
#crown-give-overlay.is-open { opacity: 1; visibility: visible; }
.cc-give-box {
	position: relative;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	width: 100vw;
	max-width: 100vw;
	height: 95dvh;
	height: 95vh;
	max-height: 95dvh;
	max-height: 95vh;
	border-radius: 18px 18px 0 0;
	box-shadow: 0 -4px 32px rgba(0,0,0,0.4);
	overflow: hidden;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
.cc-give-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 10;
	background: rgba(0,0,0,0.55);
	color: #ffffff;
	border: none;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	font-size: 22px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
	flex-shrink: 0;
}
.cc-give-close:hover,
.cc-give-close:focus-visible {
	background: #cfae6b;
	color: #1b252f;
	outline: none;
}
#cc-give-frame {
	display: block;
	width: 100%;
	flex: 1;
	min-height: 0;
	border: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 481px) {
	#crown-give-overlay { align-items: center; }
	.cc-give-box {
		width: 100%;
		max-width: 500px;
		height: 88vh;
		max-height: 720px;
		border-radius: 12px;
		box-shadow: 0 24px 64px rgba(0,0,0,0.55);
		margin: 0 16px;
	}
}
