/* CLE Registration form — intentionally neutral so it inherits your theme. */

.cle-reg {
	max-width: 640px;
	margin: 2rem 0;
	padding: 1.75rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: #fff;
}

.cle-reg__title {
	margin: 0 0 0.25rem;
}

.cle-reg__meta {
	margin: 0 0 1.25rem;
	opacity: 0.7;
	font-size: 0.95em;
}

.cle-reg__row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.cle-reg__field {
	flex: 1 1 240px;
	display: flex;
	flex-direction: column;
}

.cle-reg__field label {
	font-size: 0.85em;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.cle-reg__field input,
.cle-reg__field select {
	padding: 0.65rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	font: inherit;
	font-size: 16px; /* prevents iOS zoom-on-focus */
	min-height: 44px; /* touch target */
	background: #fff;
	box-sizing: border-box;
}

.cle-reg__field input:focus,
.cle-reg__field select:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

/* Honeypot — visually removed, still in DOM for bots. */
.cle-reg__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Register: the primary action — big, bold, unmissable. */
.cle-reg__submit {
	padding: 0.95rem 2.4rem;
	border: none;
	border-radius: 8px;
	background: #1d2a4a;
	color: #fff;
	font: inherit;
	font-size: 1.08em;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	min-height: 48px;
	box-shadow: 0 2px 8px rgba(29, 42, 74, 0.25);
	transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.cle-reg__submit:hover:not(:disabled) {
	background: #24365e;
	box-shadow: 0 4px 14px rgba(29, 42, 74, 0.32);
	transform: translateY(-1px);
}

.cle-reg__submit:focus-visible {
	outline: 3px solid #2a5db0;
	outline-offset: 2px;
}

.cle-reg__submit:disabled {
	opacity: 0.5;
	cursor: wait;
	transform: none;
}

/* In the popup the submit spans full width for maximum prominence. */
.cle-modal__box .cle-reg__form > .cle-reg__submit {
	display: block;
	width: 100%;
}

.cle-reg__msg {
	margin: 0.9rem 0 0;
	font-size: 0.95em;
	min-height: 1.2em;
}

.cle-reg__msg.is-success {
	color: #1a7a3a;
	font-weight: 600;
}

.cle-reg__msg.is-error {
	color: #b32d2e;
	font-weight: 600;
}

.cle-reg__full {
	padding: 0.9rem 1rem;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 6px;
	font-weight: 600;
}

/* ---- Register button + modal ---- */

.cle-modal[hidden] {
	display: none;
}

.cle-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.cle-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.cle-modal__box {
	position: relative;
	max-width: 680px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 12px;
	padding: 0.5rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cle-modal__box .cle-reg {
	border: none;
	margin: 0;
}

/* Close: small, quiet, discoverable — never competing with the form. */
.cle-modal .cle-modal__close,
.cle-modal .cle-modal__close:hover,
.cle-modal .cle-modal__close:focus {
	position: absolute;
	top: 0.7rem;
	right: 0.7rem;
	z-index: 1;
	width: 32px !important;
	height: 32px !important;
	min-height: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: rgba(0, 0, 0, 0.06) !important;
	color: #6b7280 !important;
	font-size: 1.05rem !important;
	line-height: 32px !important;
	text-align: center;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.15s, color 0.15s;
}

.cle-modal .cle-modal__close:hover,
.cle-modal .cle-modal__close:focus {
	background: rgba(0, 0, 0, 0.12) !important;
	color: #1d2a4a !important;
	outline: 2px solid #1d2a4a;
	outline-offset: 1px;
}

body.cle-modal-open {
	overflow: hidden;
}

/* ---- Group registration: additional attendee blocks ---- */

.cle-reg__extra {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	padding: 1rem 1rem 0.25rem;
	margin-bottom: 1rem;
	background: rgba(0, 0, 0, 0.02);
}

.cle-reg__extra-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.9rem;
	font-size: 0.85em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.75;
}

/* Explicit colors + !important so theme/Elementor global button
   styles (white text, grey hovers, blue backgrounds) can't override. */

.cle-reg .cle-reg__remove,
.cle-reg .cle-reg__remove:hover,
.cle-reg .cle-reg__remove:focus {
	border: none !important;
	background: transparent !important;
	color: #b32d2e !important;
	font: inherit;
	font-size: 0.85em !important;
	font-weight: 600;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	padding: 0.2rem 0.4rem !important;
	box-shadow: none !important;
	min-height: 0 !important;
	width: auto !important;
	display: inline-block !important;
}

.cle-reg .cle-reg__remove:hover {
	text-decoration: underline !important;
}

.cle-reg .cle-reg__add {
	display: block !important;
	width: 100% !important;
	margin-bottom: 1rem;
	padding: 0.7rem 1rem !important;
	border: 1.5px dashed #9aa3b2 !important;
	border-radius: 8px !important;
	background: #ffffff !important;
	color: #1d2a4a !important;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none !important;
}

.cle-reg .cle-reg__add:hover:not(:disabled),
.cle-reg .cle-reg__add:focus:not(:disabled) {
	background: #eef3fb !important;
	border-color: #1d2a4a !important;
	color: #1d2a4a !important;
}

.cle-reg .cle-reg__add:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	background: #ffffff !important;
	color: #6b7280 !important;
}

.cle-reg__opt {
	font-weight: 400;
	opacity: 0.6;
}

/* CLE credit line — the sentence attorneys scan for */
.cle-reg__credit {
	margin: -0.6rem 0 1.1rem;
	padding: 0.5rem 0.8rem;
	background: #eef3fb;
	border-left: 3px solid #1d2a4a;
	border-radius: 0 6px 6px 0;
	font-weight: 600;
	font-size: 0.92em;
	color: #1d2a4a;
}


/* ---- Mobile: popup becomes a full-screen sheet ---- */
@media (max-width: 600px) {
	.cle-modal {
		padding: 0;
		align-items: stretch;
	}

	.cle-modal__box {
		max-width: none;
		max-height: none;
		height: 100%;
		border-radius: 0;
		padding: 0.75rem 0.25rem 2rem;
	}

	.cle-reg {
		padding: 1.1rem;
	}

	.cle-reg__title {
		font-size: 1.25rem;
		padding-right: 44px; /* keep clear of the close button */
	}

	.cle-reg__row {
		gap: 0.6rem;
		margin-bottom: 0.8rem;
	}

	.cle-reg__field {
		flex-basis: 100%; /* one field per line on phones */
	}

	.cle-reg__submit {
		width: 100%;
		padding: 1.05rem;
	}
}

/* ---- Animated result popup (Phantom-style, brand navy) ---- */

#cle-pop {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.cle-pop__overlay {
	position: absolute;
	inset: 0;
	background: rgba(27, 42, 74, 0.55);
	backdrop-filter: blur(2px);
	animation: clePopFade 0.25s ease-out;
}

.cle-pop__card {
	position: relative;
	max-width: 400px;
	width: 100%;
	background: #fff;
	border-radius: 16px;
	padding: 2.2rem 1.8rem 1.8rem;
	text-align: center;
	box-shadow: 0 24px 70px rgba(27, 42, 74, 0.35);
	animation: clePopSpring 0.42s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes clePopFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes clePopSpring {
	0%   { opacity: 0; transform: translateY(22px) scale(0.92); }
	100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Self-drawing checkmark */
.cle-pop__check {
	width: 84px;
	height: 84px;
	margin: 0 auto 0.9rem;
	display: block;
}

.cle-pop__check-circle {
	stroke: #2a5db0;
	stroke-width: 2.5;
	stroke-dasharray: 151;
	stroke-dashoffset: 151;
	animation: cleDraw 0.5s ease-out 0.15s forwards;
}

.cle-pop__check-mark {
	stroke: #1b2a4a;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 36;
	stroke-dashoffset: 36;
	animation: cleDraw 0.35s ease-out 0.55s forwards;
}

@keyframes cleDraw {
	to { stroke-dashoffset: 0; }
}

.cle-pop__icon-muted {
	font-size: 3.2rem;
	line-height: 1;
	margin-bottom: 0.7rem;
}

.cle-pop__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	color: #1b2a4a;
	animation: clePopRise 0.35s ease-out 0.25s backwards;
}

.cle-pop__text {
	margin: 0 0 0.55rem;
	font-size: 1rem;
	color: #222;
	line-height: 1.55;
	animation: clePopRise 0.35s ease-out 0.35s backwards;
}

.cle-pop__sub {
	margin: 0 0 1.3rem;
	font-size: 0.88rem;
	color: #6b7280;
	line-height: 1.6;
	animation: clePopRise 0.35s ease-out 0.45s backwards;
}

@keyframes clePopRise {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.cle-pop__btn {
	display: block;
	width: 100%;
	padding: 0.85rem;
	border: none;
	border-radius: 10px;
	background: #1b2a4a;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	min-height: 48px;
}

.cle-pop__btn:hover:not(:disabled) {
	background: #24365e;
}

.cle-pop__btn--ghost {
	background: none;
	color: #6b7280;
	font-weight: 600;
	margin-top: 0.4rem;
	min-height: 40px;
}

.cle-pop__btn--ghost:hover {
	background: rgba(0, 0, 0, 0.04);
	color: #1b2a4a;
}

/* Accessibility: honor OS-level reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	.cle-pop__overlay,
	.cle-pop__card,
	.cle-pop__title,
	.cle-pop__text,
	.cle-pop__sub {
		animation: none;
	}
	.cle-pop__check-circle,
	.cle-pop__check-mark {
		animation: none;
		stroke-dashoffset: 0;
	}
}


.cle-reg__hint {
	font-size: 0.78em;
	color: #6b7280;
	margin-top: 0.25rem;
}

/* ---- Success visual: logo burst (Phantom-style) ---- */

.cle-pop__burst {
	position: relative;
	width: 132px;
	height: 132px;
	margin: 0 auto 1rem;
}

.cle-pop__logoDisc {
	position: absolute;
	inset: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 6px 22px rgba(27, 42, 74, 0.18);
	animation: cleLogoSpring 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.cle-pop__logoImg {
	max-width: 74%;
	max-height: 46%;
	object-fit: contain;
}

@keyframes cleLogoSpring {
	0%   { opacity: 0; transform: scale(0.3); }
	60%  { opacity: 1; transform: scale(1.12); }
	100% { opacity: 1; transform: scale(1); }
}

/* Ring drawing around the logo */
.cle-pop__ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.cle-pop__ring circle {
	stroke: #2a5db0;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 340;
	stroke-dashoffset: 340;
	animation: cleDraw 0.6s ease-out 0.35s forwards;
}

/* Sparks bursting outward */
.cle-pop__spark {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	margin: -3.5px 0 0 -3.5px;
	border-radius: 50%;
	opacity: 0;
	animation: cleSpark 0.7s ease-out 0.45s both;
}

.cle-pop__spark--0 { background: #2ecc71; --sx: 0px;    --sy: -66px; }
.cle-pop__spark--1 { background: #2a5db0; --sx: 39px;   --sy: -53px; animation-delay: 0.48s; }
.cle-pop__spark--2 { background: #2ecc71; --sx: 63px;   --sy: -20px; animation-delay: 0.51s; }
.cle-pop__spark--3 { background: #9db3d9; --sx: 58px;   --sy: 32px;  animation-delay: 0.47s; }
.cle-pop__spark--4 { background: #2ecc71; --sx: 22px;   --sy: 62px;  animation-delay: 0.5s; }
.cle-pop__spark--5 { background: #2a5db0; --sx: -22px;  --sy: 62px;  animation-delay: 0.46s; }
.cle-pop__spark--6 { background: #2ecc71; --sx: -58px;  --sy: 32px;  animation-delay: 0.52s; }
.cle-pop__spark--7 { background: #9db3d9; --sx: -63px;  --sy: -20px; animation-delay: 0.49s; }
.cle-pop__spark--8 { background: #2a5db0; --sx: -39px;  --sy: -53px; animation-delay: 0.53s; }
.cle-pop__spark--9 { background: #2ecc71; --sx: 12px;   --sy: -70px; animation-delay: 0.55s; }

@keyframes cleSpark {
	0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
	25%  { opacity: 1; }
	100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1); }
}

/* Green check badge popping at the logo's corner */
.cle-pop__badge {
	position: absolute;
	right: 4px;
	bottom: 4px;
	width: 38px;
	height: 38px;
	animation: cleBadgePop 0.35s cubic-bezier(0.34, 1.7, 0.64, 1) 0.85s both;
}

.cle-pop__badge-bg {
	fill: #2ecc71;
	stroke: #fff;
	stroke-width: 2.5;
}

.cle-pop__badge-check {
	stroke: #fff;
	stroke-width: 3.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 24;
	stroke-dashoffset: 24;
	animation: cleDraw 0.25s ease-out 1.05s forwards;
}

@keyframes cleBadgePop {
	0%   { opacity: 0; transform: scale(0); }
	100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.cle-pop__logoDisc,
	.cle-pop__badge,
	.cle-pop__spark {
		animation: none;
	}
	.cle-pop__logoDisc,
	.cle-pop__badge { opacity: 1; transform: none; }
	.cle-pop__spark { display: none; }
	.cle-pop__ring circle,
	.cle-pop__badge-check { animation: none; stroke-dashoffset: 0; }
}
