/*!
 * CoverMy Coming Soon - front-end styles
 * Every rule is scoped under .cmcs-root (or .cmcs-modal-backdrop for the
 * portalled modal) so nothing leaks into, or is overridden by, the theme.
 */

/* -------------------------------------------------------------------------
   Root + reset
   ---------------------------------------------------------------------- */
.cmcs-root {
	--cmcs-accent: #cc73a8;
	--cmcs-brand: #0f4a7b;
	--cmcs-overlay: 0.4;
	--cmcs-height: 85vh;
	--cmcs-max-width: 1200px;
	--cmcs-radius: 6px;
	--cmcs-gap: 12px;

	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: var(--cmcs-height);
	margin: 0;
	padding: 0;
	overflow: hidden;
	isolation: isolate;
	background: #000;
	color: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	-webkit-font-smoothing: antialiased;
}

.cmcs-root *,
.cmcs-root *::before,
.cmcs-root *::after {
	box-sizing: border-box;
}

.cmcs-root .cmcs-hero,
.cmcs-root .cmcs-inner,
.cmcs-root .cmcs-header,
.cmcs-root .cmcs-header-inner,
.cmcs-root .cmcs-footer {
	box-sizing: border-box;
}

.cmcs-root [hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
   Display modes
   ---------------------------------------------------------------------- */
.cmcs-root.cmcs-mode-fullscreen {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 100%;
	z-index: 99990;
}

body.admin-bar .cmcs-root.cmcs-mode-fullscreen {
	top: 32px;
	height: calc(100% - 32px);
}

/* -------------------------------------------------------------------------
   Background media
   ---------------------------------------------------------------------- */
.cmcs-root .cmcs-media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background: #000;
}

.cmcs-root .cmcs-video,
.cmcs-root .cmcs-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	object-position: center center;
	box-shadow: none;
}

.cmcs-root .cmcs-scrim {
	position: absolute;
	inset: 0;
	display: block;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, calc(var(--cmcs-overlay) * 0.78)),
		rgba(0, 0, 0, var(--cmcs-overlay))
	);
}

/* -------------------------------------------------------------------------
   Header bar
   ---------------------------------------------------------------------- */
.cmcs-root .cmcs-header {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	width: 100%;
	padding: 1rem 1.25rem;
	background: rgba(255, 255, 255, 0.22);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	display:none !important;   
}

.cmcs-root .cmcs-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	max-width: var(--cmcs-max-width);
	margin: 0 auto;	display:none !important;
}

.cmcs-root .cmcs-logo {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	text-decoration: none;
	box-shadow: none;
}

.cmcs-root .cmcs-logo img {
	display: block;
	width: auto;
	height: 58px;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.cmcs-root .cmcs-hotline {
	margin: 0;
	color: #fff;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
}

.cmcs-root .cmcs-hotline a {
	color: inherit;
	text-decoration: none;
}

/* -------------------------------------------------------------------------
   Hero
   ---------------------------------------------------------------------- */
.cmcs-root .cmcs-hero {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	width: 100%;
	max-width: var(--cmcs-max-width);
	min-height: 0;
	margin: 0 auto;
	padding: 3rem 1.25rem;
}

.cmcs-root .cmcs-inner {
	width: 100%;
	max-width: 800px;
}

.cmcs-root.cmcs-align-center .cmcs-hero {
	justify-content: center;
	text-align: center;
}

.cmcs-root.cmcs-align-center .cmcs-inner {
	margin-left: auto;
	margin-right: auto;
}

.cmcs-root .cmcs-title {
	margin: 0 0 1.25rem;
	padding: 0;
	color: #fff;
	font-family: inherit;
    font-size: clamp(1.75em, 4.6vw, 3em);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-transform: none;
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}

.cmcs-root .cmcs-subtitle {
	margin: 0 0 0.85rem;
	padding: 0;
	color: #fff;
	font-family: inherit;
 
	font-weight: 600;
	line-height: 1.45;
	opacity: 0.97;
	    font-size: clamp(1em, 1.7vw, 1.25em);
}

.cmcs-root .cmcs-text {
	margin: 0 0 1.25rem;
	padding: 0;
	color: #fff;
	font-family: inherit;
    font-size: clamp(0.95em, 1.5vw, 1.125em);
	font-weight: 400;
	line-height: 1.55;
	opacity: 0.95;
}

/* -------------------------------------------------------------------------
   Form
   ---------------------------------------------------------------------- */
.cmcs-root .cmcs-form {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: var(--cmcs-gap);
	width: 100%;
	max-width: 620px;
	margin: 2rem 0 0;
	padding: 0;
	border: 0;
	background: none;
}

.cmcs-root.cmcs-align-center .cmcs-form {
	margin-left: auto;
	margin-right: auto;
}

.cmcs-root .cmcs-input {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: var(--cmcs-radius);
	background: #fff;
	color: #111;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.2;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	font-size:1em !important;
}

.cmcs-root .cmcs-input::placeholder {
	color: #767676;
	opacity: 1;
}

.cmcs-root .cmcs-input:focus,
.cmcs-root .cmcs-input:focus-visible {
	border-color: var(--cmcs-accent);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
	outline: none;
}

.cmcs-root .cmcs-input.cmcs-invalid {
	border-color: #ffb4b4;
	box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.35);
}

.cmcs-root .cmcs-button {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: auto;
	min-width: 140px;
	height: auto;
	margin: 0;
	padding: 1rem 2.25rem;
	border: 0;
	border-radius: var(--cmcs-radius);
	background: var(--cmcs-accent);
	color: #fff;
	font-family: inherit;
    font-size: 1em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: filter 0.18s ease, transform 0.18s ease;
}

.cmcs-root .cmcs-button:hover,
.cmcs-root .cmcs-button:focus {
	filter: brightness(1.07);
	color: #fff;
	background: var(--cmcs-accent);
}

.cmcs-root .cmcs-button:active {
	transform: translateY(1px);
}

.cmcs-root .cmcs-button:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.cmcs-root .cmcs-button[disabled],
.cmcs-root .cmcs-button.is-busy {
	opacity: 0.7;
	cursor: not-allowed;
}

.cmcs-root .cmcs-inline-status {
	max-width: 620px;
	margin: 0.85rem 0 0;
	padding: 0;
	font-size: 0.95rem;
	line-height: 1.4;
	min-height: 1.2em;
}

.cmcs-root.cmcs-align-center .cmcs-inline-status {
	margin-left: auto;
	margin-right: auto;
}

.cmcs-root .cmcs-inline-status.is-ok {
	color: #b6f7c8;
}

.cmcs-root .cmcs-inline-status.is-err {
	color: #ffc9d0;
}

/* Honeypot + screen-reader helper */
.cmcs-root .cmcs-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.cmcs-root .cmcs-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* -------------------------------------------------------------------------
   Footer bar
   ---------------------------------------------------------------------- */
.cmcs-root .cmcs-footer {
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	width: 100%;
	padding: 1.5rem 1.25rem;
	background: rgba(255, 255, 255, 0.1);
	color: #dfe9f3;
	font-size: 0.875rem;
	line-height: 1.5;
}

.cmcs-root .cmcs-footer-inner {
	display: block;
	width: 100%;
	max-width: var(--cmcs-max-width);
	margin: 0 auto;
}

/* -------------------------------------------------------------------------
   Modal (portalled to <body>, so it is styled stand-alone)
   ---------------------------------------------------------------------- */
.cmcs-modal-backdrop {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.55);
	z-index: 999999;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cmcs-modal-backdrop[hidden] {
	display: none !important;
}

.cmcs-modal-backdrop *,
.cmcs-modal-backdrop *::before,
.cmcs-modal-backdrop *::after {
	box-sizing: border-box;
}

.cmcs-modal-backdrop [hidden] {
	display: none !important;
}

.cmcs-modal-backdrop .cmcs-modal {
	position: relative;
	width: 320px;
	max-width: 100%;
	margin: 0;
	padding: 22px 18px 18px;
	border-radius: 14px;
	background: #fff;
	color: #111;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cmcs-modal-backdrop .cmcs-modal-close {
	position: absolute;
	top: 6px;
	right: 8px;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #666;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.cmcs-modal-backdrop .cmcs-modal-close:hover {
	color: #111;
	background: #f2f2f2;
}

.cmcs-modal-backdrop .cmcs-spinner {
	width: 26px;
	height: 26px;
	margin: 10px auto 12px;
	border: 3px solid #ddd;
	border-top-color: #333;
	border-radius: 50%;
	animation: cmcsSpin 0.8s linear infinite;
}

.cmcs-modal-backdrop .cmcs-spinner[hidden] {
	display: none !important;
}

@keyframes cmcsSpin {
	to {
		transform: rotate(360deg);
	}
}

.cmcs-modal-backdrop .cmcs-modal-text {
	margin: 0 0 6px;
	color: #111;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.cmcs-modal-backdrop .cmcs-modal-status {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.4;
	color: #444;
}

.cmcs-modal-backdrop .cmcs-modal-status.is-ok {
	color: #0a7a2f;
}

.cmcs-modal-backdrop .cmcs-modal-status.is-err {
	color: #b00020;
}

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.cmcs-root .cmcs-hero {
		padding: 2.5rem 1.25rem;
	}
}

@media (max-width: 782px) {
	body.admin-bar .cmcs-root.cmcs-mode-fullscreen {
		top: 46px;
		height: calc(100% - 46px);
	}
}

@media (max-width: 768px) {
	.cmcs-root .cmcs-header {
		padding: 0.85rem 1rem;
		display:none !important;
	}

	.cmcs-root .cmcs-header-inner {
		flex-direction: column;
		justify-content: center;
		gap: 0.5rem;
		text-align: center;
		display:none !important;
	}

	.cmcs-root .cmcs-logo img {
		height: 46px;
	}

	.cmcs-root .cmcs-hotline {
		font-size: 1.05rem;
	}

	.cmcs-root .cmcs-hero {
		padding: 2rem 1rem;
	}

	.cmcs-root .cmcs-inner {
		max-width: 100%;
	}

	.cmcs-root .cmcs-title {
		font-size: 1.9rem;
		line-height: 1.18;
	}

	.cmcs-root .cmcs-form {
		max-width: 100%;
		margin-top: 1.5rem;
	}
}

@media (max-width: 560px) {
	.cmcs-root .cmcs-form {
		flex-direction: column;
	}

	.cmcs-root .cmcs-button {
		width: 100%;
		min-width: 0;
		padding: 1rem 1.25rem;
	}

	.cmcs-root .cmcs-title {
		font-size: 1.65rem;
	}

	.cmcs-root .cmcs-footer {
		padding: 1rem;
		font-size: 0.8125rem;
	}
}

/* -------------------------------------------------------------------------
   Accessibility preferences
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.cmcs-root .cmcs-button,
	.cmcs-modal-backdrop .cmcs-spinner {
		transition: none !important;
		animation: none !important;
	}
}

@media print {
	.cmcs-root .cmcs-media,
	.cmcs-modal-backdrop {
		display: none !important;
	}

	.cmcs-root {
		min-height: 0;
		background: none;
		color: #000;
	}
}
