/*
 * Redix Academy: the "coming soon" front page (page 8, "ראשי", Elementor canvas: no header or footer) in the
 * academy's look, without touching its content. The sky video stays, under a night-navy veil with a soft
 * cyan light in the middle and the faint grid of the personal area; the words take the site's sizes and
 * weights, and "בקרוב ייפתח אתר הקורסים!" becomes a lit badge. Loaded only on that page (includes/soon.php).
 */
body.page-id-8 {
	background: #070b1a;
}
body.page-id-8 .custom-video-bg {
	background-color: #070b1a;
}

/* The video, dimmed and cooled, so the sky reads as night. */
body.page-id-8 .custom-video-bg .elementor-background-video-hosted {
	filter: saturate(.55) brightness(.9);
}

/* Elementor's overlay, moved above the video: night instead of teal, a cyan light behind the words,
   darker at the edges. */
body.page-id-8 .custom-video-bg::before {
	z-index: 1 !important;
	background:
		radial-gradient(ellipse 46% 38% at 50% 50%, rgba(47, 224, 230, .16), rgba(47, 224, 230, 0) 72%),
		radial-gradient(ellipse 85% 80% at 50% 50%, rgba(7, 11, 26, .5), rgba(7, 11, 26, .9) 100%),
		linear-gradient(180deg, rgba(10, 16, 39, .55) 0%, rgba(7, 11, 26, .3) 45%, rgba(7, 11, 26, .92) 100%) !important;
	opacity: 1 !important;
}

/* The faint grid of the academy, fading out from the middle. */
body.page-id-8 .custom-video-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image:
		linear-gradient(rgba(125, 240, 244, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(125, 240, 244, .06) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, #000 0%, transparent 78%);
	mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, #000 0%, transparent 78%);
	pointer-events: none;
}
body.page-id-8 .custom-video-bg > .e-con-inner > .e-con {
	position: relative;
	z-index: 2;
}
body.page-id-8 .custom-video-bg .rac-video-toggle {
	z-index: 3;
}

/* The words. Each selector carries .elementor-widget-heading so it outweighs Elementor's own sizes for
   these headings (at tablet width they made the badge's line huge). */
body.page-id-8 .custom-video-bg .elementor-widget-heading h2.elementor-heading-title {
	color: #c2cde8;
	font-family: var(--ra-font, Assistant, sans-serif);
	font-size: clamp(22px, 2.8vw, 36px);
	font-weight: 300;
	line-height: 1.3;
	letter-spacing: .01em;
}
body.page-id-8 .custom-video-bg .elementor-widget-heading h1.elementor-heading-title {
	color: #f2f6ff;
	font-family: var(--ra-font, Assistant, sans-serif);
	font-size: clamp(46px, 7.4vw, 104px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.02em;
	text-shadow: 0 0 46px rgba(47, 224, 230, .28);
}
body.page-id-8 .custom-video-bg h1 .aaaa {
	color: #2fe0e6;
}

/* "בקרוב ייפתח אתר הקורסים!" as a lit badge with a pulsing dot. */
body.page-id-8 .custom-video-bg .elementor-widget-heading p.elementor-heading-title {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 10px;
	padding: 11px 22px;
	border: 1px solid rgba(47, 224, 230, .45);
	border-radius: 999px;
	background: rgba(7, 11, 26, .55);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 0 34px -8px rgba(47, 224, 230, .5);
	color: #7df0f4;
	font-family: var(--ra-font, Assistant, sans-serif);
	font-size: clamp(16px, 1.4vw, 19px);
	font-weight: 700;
	line-height: 1.3;
}
body.page-id-8 .custom-video-bg .elementor-widget-heading p.elementor-heading-title::before {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #2fe0e6;
	box-shadow: 0 0 0 0 rgba(47, 224, 230, .6);
}
@media (prefers-reduced-motion: no-preference) {
	body.page-id-8 .custom-video-bg .elementor-widget-heading p.elementor-heading-title::before {
		animation: rac-soon-pulse 2.2s ease-out infinite;
	}
}
@keyframes rac-soon-pulse {
	0% { box-shadow: 0 0 0 0 rgba(47, 224, 230, .6); }
	80%, 100% { box-shadow: 0 0 0 12px rgba(47, 224, 230, 0); }
}

/* The portal button (phones only), as the site's buttons. */
body.page-id-8 .custom-video-bg .elementor-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: 14px;
	background: #2fe0e6;
	color: #041018;
	font-family: var(--ra-font, Assistant, sans-serif);
	font-size: 17px;
	font-weight: 800;
	box-shadow: 0 14px 30px -14px rgba(47, 224, 230, .75);
}
body.page-id-8 .custom-video-bg .elementor-button .e-font-icon-svg {
	fill: currentColor;
}

/* ---------------------------------------------------------------- the waitlist (shown once it is connected)
   First name, email and the button in one row (one under the other on a phone), the consent box under
   them, then the privacy line. */
body.page-id-8 .custom-video-bg .rac-wl {
	width: min(100%, 640px);
	margin: 30px auto 0;
	gap: 14px;
}
/* The lead line is a heading too: it keeps none of the badge's look. */
body.page-id-8 .custom-video-bg .rac-wl-lead.elementor-widget-heading p.elementor-heading-title {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: none;
	color: #f2f6ff;
	font-size: clamp(17px, 1.5vw, 20px);
	font-weight: 700;
}
body.page-id-8 .custom-video-bg .rac-wl-lead.elementor-widget-heading p.elementor-heading-title::before {
	content: none;
}
body.page-id-8 .rac-waitlist {
	width: 100%;
}
body.page-id-8 .rac-waitlist .elementor-form-fields-wrapper {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
	gap: 10px;
	margin: 0;
}
body.page-id-8 .rac-waitlist .elementor-field-group {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}
/* The hidden anti-spam field stays in the form but takes no place in the row. */
/* (Elementor prints it as a bare div, without the field-group class.) */
body.page-id-8 .rac-waitlist .elementor-form-fields-wrapper > .elementor-field-type-text:not(.elementor-field-group) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}
body.page-id-8 .rac-waitlist .elementor-field-type-acceptance {
	grid-column: 1 / -1;
	order: 5;
	justify-content: center;
}
/* Labels stay for screen readers; the placeholders say the same on screen. */
body.page-id-8 .rac-waitlist .elementor-field-type-text > .elementor-field-label,
body.page-id-8 .rac-waitlist .elementor-field-type-email > .elementor-field-label,
body.page-id-8 .rac-waitlist .elementor-field-type-acceptance > .elementor-field-label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
/* Strong enough to win over Elementor's default (white) field style for this widget. */
body.page-id-8 .rac-waitlist.elementor-widget-form .elementor-field-group .elementor-field.elementor-field-textual {
	min-height: 52px;
	padding: 12px 18px;
	border: 1px solid rgba(194, 205, 232, .24);
	border-radius: 14px;
	background: rgba(7, 11, 26, .62);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #f2f6ff;
	font-family: var(--ra-font, Assistant, sans-serif);
	font-size: 16px;
	color-scheme: dark;
	transition: border-color 200ms ease, box-shadow 200ms ease;
}
body.page-id-8 .rac-waitlist.elementor-widget-form .elementor-field-group .elementor-field.elementor-field-textual::placeholder {
	color: #8b99bc;
	opacity: 1;
}
body.page-id-8 .rac-waitlist.elementor-widget-form .elementor-field-group .elementor-field.elementor-field-textual:focus {
	border-color: #2fe0e6;
	outline: none;
	box-shadow: 0 0 0 3px rgba(47, 224, 230, .2);
}
body.page-id-8 .rac-waitlist .elementor-field-type-submit .elementor-button {
	min-height: 52px;
	width: 100%;
	padding: 12px 28px;
	border: 0;
	border-radius: 14px;
	background: #2fe0e6;
	color: #041018;
	font-family: var(--ra-font, Assistant, sans-serif);
	font-size: 17px;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 14px 30px -14px rgba(47, 224, 230, .8);
	transition: background-color 200ms ease, transform 160ms cubic-bezier(.22, 1, .36, 1);
}
body.page-id-8 .rac-waitlist .elementor-field-type-submit .elementor-button:hover {
	background: #7df0f4;
}
body.page-id-8 .rac-waitlist .elementor-field-type-submit .elementor-button:active {
	transform: scale(.97);
}
body.page-id-8 .rac-waitlist .elementor-field-type-submit .elementor-button:focus-visible {
	outline: 2px solid #7df0f4;
	outline-offset: 3px;
}
body.page-id-8 .rac-waitlist .elementor-field-subgroup .elementor-field-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #c2cde8;
	font-size: 14.5px;
	line-height: 1.5;
	text-align: start;
}
body.page-id-8 .rac-waitlist .elementor-field-subgroup input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: #2fe0e6;
	color-scheme: dark;
}
body.page-id-8 .rac-waitlist .elementor-message {
	margin-top: 12px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}
body.page-id-8 .rac-waitlist .elementor-message-success {
	color: #7df0f4;
}
body.page-id-8 .rac-waitlist .elementor-message-danger,
body.page-id-8 .rac-waitlist.elementor-widget-form .elementor-error .elementor-field.elementor-field-textual {
	color: #ffb4b4;
	border-color: rgba(255, 140, 140, .6);
}
body.page-id-8 .custom-video-bg .rac-wl-note,
body.page-id-8 .custom-video-bg .rac-wl-note p {
	max-width: 540px;
	margin: 0 auto;
	color: #8b99bc;
	font-size: 13px;
	line-height: 1.6;
	text-align: center;
}
body.page-id-8 .custom-video-bg .rac-wl-note a {
	color: #7df0f4;
	text-underline-offset: 3px;
}
@media (max-width: 720px) {
	body.page-id-8 .rac-waitlist .elementor-form-fields-wrapper {
		grid-template-columns: 1fr;
	}
	/* One column: the consent box (required) comes before the button, as it does for the keyboard. */
	body.page-id-8 .rac-waitlist .elementor-field-type-acceptance {
		order: 0;
		justify-content: flex-start;
	}
	body.page-id-8 .custom-video-bg .rac-wl {
		margin-top: 22px;
		padding-inline: 4px;
		padding-bottom: 64px; /* room for the video's pause button in the corner */
	}
}

/* The links to the site's legal and business pages at the end of the page (includes/soon.php). */
body.page-id-8 .rac-soon-legal {
	position: relative;
	z-index: 2;
	padding: 22px 16px 28px;
	background: #070b1a;
	color: #9aa6c4;
	font-size: 14.5px;
	text-align: center;
}
body.page-id-8 .rac-soon-legal ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px 20px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}
body.page-id-8 .rac-soon-legal a {
	display: inline-block;
	padding: 6px 2px;
	color: #c2cde8;
	text-decoration: underline;
	text-decoration-color: rgba(194, 205, 232, .35);
	text-underline-offset: 3px;
}
body.page-id-8 .rac-soon-legal a:hover,
body.page-id-8 .rac-soon-legal a:focus-visible {
	color: #7df0f4;
	text-decoration-color: currentColor;
}
body.page-id-8 .rac-soon-legal p {
	margin: 0;
}
