/* The "MatterCAD is opening soon" form (templates/site/_interest_form.html)
   in the home page's dialog (templates/site/home.html) and on its plain
   page (templates/site/interest.html). Colours come from the site's theme
   properties (css/site-theme.css). */

.mc-interest-page {
	max-width: 32rem;
	margin: 0 auto;
	padding: 3rem 0 4rem;
}

.mc-interest-title {
	margin: 0 0 1rem;
	font-size: 1.8rem;
	line-height: 1.2;
	color: var(--mc-ink);
}

.mc-interest-form { display: grid; gap: 10px; }

.mc-interest-label { font-weight: 600; color: var(--mc-ink); }

.mc-interest-row { display: flex; gap: 8px; flex-wrap: wrap; }

.mc-interest-email {
	flex: 1 1 14rem;
	min-width: 0;
	font-size: 16px;
	padding: 10px 12px;
	border: 1px solid var(--mc-border);
	border-radius: 8px;
	background: var(--mc-surface);
	color: var(--mc-ink);
}

.mc-interest-email:focus-visible {
	outline: 2px solid var(--mc-accent-focus);
	outline-offset: 1px;
}

.mc-interest-submit { padding: 10px 18px; font-size: 15px; }

.mc-interest-error { margin: 0; color: var(--mc-danger); }
.mc-interest-error[hidden] { display: none; }

.mc-interest-note,
.mc-interest-signin {
	margin: 0;
	font-size: 14px;
	color: var(--mc-text-dim);
}

.mc-interest-done { font-size: 1.05rem; color: var(--mc-ink); }

/* The honeypot: out of sight and out of the tab order, not display:none,
   which some scripts check for. */
.mc-interest-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- the dialog on the home page ---------- */

dialog.mc-interest-dialog {
	width: min(30rem, calc(100vw - 32px));
	padding: 24px;
	border: 1px solid var(--mc-border);
	border-radius: 16px;
	background: var(--mc-surface);
	color: var(--mc-text);
	box-shadow: var(--mc-dialog-shadow);
}

dialog.mc-interest-dialog::backdrop { background: var(--mc-backdrop); }

.mc-interest-dialog .mc-interest-title { font-size: 1.4rem; padding-right: 32px; }

.mc-interest-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--mc-border);
	border-radius: 50%;
	background: transparent;
	color: var(--mc-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.mc-interest-close:focus-visible { outline: 2px solid var(--mc-accent-focus); }
