/* Eternal Audio – Download Signup dialog (matches the dark ea-* page styling) */

html.ea-ds-open,
html.ea-ds-open body {
	overflow: hidden;
}

.ea-ds-overlay [hidden],
.ea-ds-overlay[hidden] {
	display: none !important;
}

.ea-ds-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	background: rgba(8, 9, 13, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity 180ms ease;
	font-family: "Roboto", "Open Sans", Arial, sans-serif;
}

.ea-ds-overlay.is-visible {
	opacity: 1;
}

.ea-ds-dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	box-sizing: border-box;
	padding: 34px 32px 28px;
	border-radius: 22px;
	background:
		radial-gradient(circle at top left, rgba(46, 196, 232, 0.16), transparent 45%),
		#141720;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
	color: #ffffff;
	transform: translateY(8px);
	transition: transform 180ms ease;
}

.ea-ds-overlay.is-visible .ea-ds-dialog {
	transform: translateY(0);
}

.ea-ds-dialog *,
.ea-ds-dialog *::before,
.ea-ds-dialog *::after {
	box-sizing: border-box;
}

.ea-ds-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.75);
	font-size: 22px;
	line-height: 34px;
	text-align: center;
	cursor: pointer;
	transition: background 150ms ease, color 150ms ease;
}

.ea-ds-close:hover,
.ea-ds-close:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	color: #ffffff;
}

.ea-ds-dialog .ea-ds-eyebrow {
	display: inline-block;
	margin: 0 0 16px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

.ea-ds-dialog .ea-ds-title {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-family: inherit;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.ea-ds-dialog .ea-ds-lead {
	margin: 10px 0 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 15.5px;
	line-height: 1.55;
}

.ea-ds-form {
	margin: 24px 0 0;
}

.ea-ds-dialog .ea-ds-label {
	display: block;
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.ea-ds-dialog input[type="email"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.06);
	color: #ffffff;
	font-family: inherit;
	font-size: 16px;
	line-height: 48px;
	box-shadow: none;
	outline: none;
	transition: border-color 150ms ease, background 150ms ease;
}

.ea-ds-dialog input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.35);
}

.ea-ds-dialog input[type="email"]:focus {
	border-color: #e82e53;
	background: rgba(255, 255, 255, 0.08);
}

.ea-ds-dialog input[type="email"][aria-invalid="true"] {
	border-color: #ff6f8c;
}

.ea-ds-dialog .ea-ds-check {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.5;
	cursor: pointer;
}

.ea-ds-dialog .ea-ds-check input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: #e82e53;
	cursor: pointer;
}

.ea-ds-dialog .ea-ds-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.ea-ds-dialog .ea-ds-error {
	margin: 12px 0 0;
	padding: 0;
	color: #ff8aa2;
	font-size: 14px;
	line-height: 1.4;
}

.ea-ds-dialog .ea-ds-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	margin: 22px 0 0;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: #e82e53;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 150ms ease, transform 150ms ease;
}

.ea-ds-dialog .ea-ds-submit:hover,
.ea-ds-dialog .ea-ds-submit:focus-visible {
	background: #f04a6c;
	transform: translateY(-1px);
}

.ea-ds-dialog .ea-ds-submit[disabled] {
	opacity: 0.7;
	cursor: progress;
	transform: none;
}

.ea-ds-dialog .ea-ds-legal {
	margin: 16px 0 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 12.5px;
	line-height: 1.5;
}

.ea-ds-dialog .ea-ds-legal a {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: underline;
}

.ea-ds-dialog .ea-ds-legal a:hover {
	color: #ffffff;
}

.ea-ds-success {
	text-align: center;
	padding: 8px 0 4px;
}

.ea-ds-dialog .ea-ds-check-icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border-radius: 999px;
	background: rgba(232, 46, 83, 0.16);
	color: #e82e53;
	font-size: 26px;
	font-weight: 700;
}

.ea-ds-success .ea-ds-lead {
	margin-top: 12px;
}

/* Confirmation toast after the double opt-in link */
.ea-ds-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 100001;
	max-width: calc(100% - 32px);
	padding: 14px 20px;
	border-radius: 14px;
	background: #141720;
	border: 1px solid rgba(232, 46, 83, 0.45);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
	color: #ffffff;
	font-family: "Roboto", "Open Sans", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	opacity: 0;
	transform: translate(-50%, 12px);
	transition: opacity 200ms ease, transform 200ms ease;
}

.ea-ds-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ea-ds-toast.is-error {
	border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 480px) {
	.ea-ds-dialog {
		padding: 30px 20px 22px;
		border-radius: 18px;
	}
	.ea-ds-dialog .ea-ds-title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ea-ds-overlay,
	.ea-ds-dialog,
	.ea-ds-toast,
	.ea-ds-dialog .ea-ds-submit {
		transition: none;
	}
}
