/* Shared form styles for both blocks — mirror .email-input / .join-btn from the original landing page. */

/* The scripts toggle states with [hidden]; keep display rules below from overriding it. */
.atc-waitlist [hidden],
.atc-reg [hidden] { display: none !important; }
.atc-waitlist__form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.atc-waitlist__input {
	flex: 1 1 240px;
	min-width: 0;
	padding: 15px 18px;
	border-radius: 12px;
	border: 1px solid oklch(0.85 0 0);
	font-family: inherit;
	font-size: 16px;
	color: oklch(0.145 0 0);
	background: #fff;
}
.atc-waitlist__input:focus-visible {
	outline: 3px solid oklch(0.5 0.134 242.749 / 0.35);
	outline-offset: 1px;
	border-color: oklch(0.5 0.134 242.749);
}
.atc-waitlist__button {
	display: inline-block;
	padding: 15px 26px;
	border-radius: 12px;
	border: none;
	background: oklch(0.5 0.134 242.749);
	color: oklch(0.977 0.013 236.62);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: normal;
	cursor: pointer;
	box-shadow: 0 8px 20px -6px oklch(0.5 0.134 242.749 / 0.5);
	white-space: nowrap;
}
.atc-waitlist__button:hover { background: oklch(0.44 0.134 242.749); }
.atc-waitlist__button:focus-visible { outline: 3px solid oklch(0.145 0 0); outline-offset: 2px; }
.atc-waitlist__button[disabled] { opacity: .7; cursor: progress; }
.atc-waitlist__note {
	margin: 12px 0 0;
	font-size: 13px;
	color: oklch(0.45 0 0);
	text-align: center;
}
.atc-waitlist__error {
	margin: 8px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	color: oklch(0.45 0.17 27);
	text-align: center;
}
.atc-waitlist__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Light variant, used on the blue CTA box */
.atc-waitlist.is-light .atc-waitlist__input { border-color: transparent; }
.atc-waitlist.is-light .atc-waitlist__button { background: #fff; color: oklch(0.42 0.134 242.749); box-shadow: none; }
.atc-waitlist.is-light .atc-waitlist__button:hover { background: oklch(0.95 0.02 240); }
.atc-waitlist.is-light .atc-waitlist__button:focus-visible { outline-color: #fff; }
.atc-waitlist.is-light .atc-waitlist__note { color: oklch(0.95 0.02 240); }
.atc-waitlist.is-light .atc-waitlist__error {
	font-weight: 700;
	color: #fff;
	background: oklch(0.35 0.14 27);
	border-radius: 8px;
	padding: 8px 12px;
	margin-top: 10px;
}

/* Editor preview */
.editor-styles-wrapper .atc-waitlist__input[disabled] { cursor: default; opacity: 1; }

/* Registration form */
.atc-reg {
	background: #fff;
	border: 1px solid oklch(0.922 0 0);
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 30px 60px -30px oklch(0.145 0 0 / 0.18);
	text-align: left;
}
.atc-reg__form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.atc-reg__field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14.5px;
	font-weight: 600;
	color: oklch(0.145 0 0);
}
.atc-reg__field input,
.atc-reg__field select {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 13px 16px;
	border-radius: 12px;
	border: 1px solid oklch(0.85 0 0);
	font-family: inherit;
	font-size: 16px;
	color: oklch(0.145 0 0);
	background: #fff;
}
.atc-reg__field select {
	appearance: none;
	padding-right: 44px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23555' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
	cursor: pointer;
}
.atc-reg__field select:invalid { color: oklch(0.55 0 0); }
.atc-reg__field input:focus-visible,
.atc-reg__field select:focus-visible {
	outline: 3px solid oklch(0.5 0.134 242.749 / 0.35);
	outline-offset: 1px;
	border-color: oklch(0.5 0.134 242.749);
}
.atc-reg__field [aria-invalid="true"] { border-color: oklch(0.55 0.19 27); }
.atc-reg__field [disabled] { background: oklch(0.97 0 0); cursor: default; }
.atc-reg__hint {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: oklch(0.45 0 0);
}
.atc-reg__field-error,
.atc-reg__error {
	margin: 6px 0 0;
	font-size: 13.5px;
	font-weight: 600;
	color: oklch(0.45 0.17 27);
}
.atc-reg__submit { width: 100%; text-align: center; margin-top: 4px; }
.atc-reg__success { text-align: center; padding: 12px 0; outline: none; }
.atc-reg__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 999px;
	background: oklch(0.96 0.04 155);
	border: 1px solid oklch(0.85 0.09 155);
	color: oklch(0.5 0.13 155);
}
.atc-reg__success:not([hidden]) .atc-reg__success-icon { animation: atc-pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.atc-reg__success:not([hidden]) .atc-reg__success-icon path {
	stroke-dasharray: 22;
	stroke-dashoffset: 22;
	animation: atc-draw .35s .25s ease-out forwards;
}
@keyframes atc-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes atc-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
	.atc-reg__success:not([hidden]) .atc-reg__success-icon,
	.atc-reg__success:not([hidden]) .atc-reg__success-icon path { animation: none; stroke-dashoffset: 0; }
}
.atc-reg__success p { margin: 0 0 8px; font-size: 15.5px; color: oklch(0.34 0 0); }
.atc-reg__success .atc-reg__success-title {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: oklch(0.3 0.08 155);
}
@media (max-width: 760px) {
	.atc-reg { padding: 24px 20px; }
}
