/**
 * McCrossen Download Popup — modal styles (dark blue brand theme)
 *
 * Used on /mccrossenseo and /mccrossenseo-faq landing pages to capture an
 * email lead before triggering the public download. Opt-out via "Skip" link.
 *
 * Color palette matches the platform brand:
 *   - background:   #0a1628 (deep navy)
 *   - primary CTA:  #2563eb (brand blue, same as the SIGN IN button in the header)
 *   - accent text:  #60a5fa (lighter blue for high contrast on navy)
 *   - error red:    #ef4444 (kept consistent with rest of theme)
 *
 * @since theme v1.0.41 (initial green theme)
 * @since theme v1.0.42 (repainted to dark blue brand theme)
 */

.mccm-dl-overlay {
	position: fixed;
	inset: 0;
	background: rgba(7, 22, 41, 0.82);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 99998;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: mccm-dl-fade-in 180ms ease-out;
}

.mccm-dl-overlay[data-open="true"] {
	display: flex;
}

@keyframes mccm-dl-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.mccm-dl-modal {
	background: #0a1628;
	color: #e2e8f0;
	border: 1px solid rgba(37, 99, 235, 0.45);
	border-radius: 14px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 60px rgba(37, 99, 235, 0.18);
	max-width: 480px;
	width: 100%;
	padding: 32px 28px 28px;
	position: relative;
	z-index: 99999;
	animation: mccm-dl-slide-up 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mccm-dl-slide-up {
	from { opacity: 0; transform: translateY(20px) scale(0.96); }
	to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.mccm-dl-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: 0;
	color: #94a3b8;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 6px;
	transition: color 120ms, background 120ms;
}
.mccm-dl-close:hover { color: #e2e8f0; background: rgba(255,255,255,0.06); }
.mccm-dl-close:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

.mccm-dl-eyebrow {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #60a5fa;
	margin: 0 0 8px;
	font-weight: 600;
}

.mccm-dl-title {
	font-size: 22px;
	line-height: 1.25;
	margin: 0 0 8px;
	color: #f1f5f9;
	font-weight: 700;
}

.mccm-dl-body {
	font-size: 14px;
	line-height: 1.55;
	color: #cbd5e1;
	margin: 0 0 20px;
}

.mccm-dl-field { margin-bottom: 14px; }

.mccm-dl-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #94a3b8;
	margin-bottom: 6px;
	letter-spacing: 0.02em;
}

.mccm-dl-field input {
	width: 100%;
	padding: 10px 12px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #f1f5f9;
	font-size: 14px;
	font-family: inherit;
	transition: border-color 120ms, background 120ms;
	box-sizing: border-box;
}

.mccm-dl-field input:focus {
	outline: none;
	border-color: #2563eb;
	background: rgba(37, 99, 235, 0.06);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.mccm-dl-field input::placeholder { color: #64748b; }

.mccm-dl-error {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.4);
	color: #fca5a5;
	font-size: 12px;
	padding: 8px 12px;
	border-radius: 6px;
	margin-bottom: 12px;
	display: none;
}

.mccm-dl-error[data-shown="true"] { display: block; }

.mccm-dl-actions { margin-top: 20px; }

.mccm-dl-submit {
	width: 100%;
	background: #2563eb;
	color: #ffffff;
	border: 0;
	padding: 12px 16px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: background 120ms, transform 80ms;
	font-family: inherit;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.mccm-dl-submit:hover { background: #1d4ed8; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5); }
.mccm-dl-submit:active { transform: translateY(1px); }
.mccm-dl-submit:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }
.mccm-dl-submit:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }

.mccm-dl-skip {
	display: block;
	text-align: center;
	margin-top: 12px;
	color: #94a3b8;
	font-size: 12px;
	text-decoration: underline;
	background: transparent;
	border: 0;
	cursor: pointer;
	width: 100%;
	font-family: inherit;
}
.mccm-dl-skip:hover { color: #e2e8f0; }

.mccm-dl-trust {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 11px;
	color: #64748b;
	line-height: 1.5;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.mccm-dl-overlay,
	.mccm-dl-modal { animation: none; }
}

@media (max-width: 480px) {
	.mccm-dl-modal { padding: 24px 20px 22px; }
	.mccm-dl-title { font-size: 19px; }
}
