:root {
	--page: #ffffff;
	--ink: #17231f;
	--muted: #5f6d68;
	--line: #dbe4df;
	--surface: #f6f8f4;
	--green: /*#004b3f*/#1C7D76;
	--green-2: /*#0d6655*/#2ecec3;
	--gold: #d4a335;
	--gold-soft: #fff7df;
	--error: #9f2d20;
	--success: /*#17633f*/ #437600;
	--shadow: 0 18px 48px rgba(23, 35, 31, 0.11);
	/*font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;*/
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--page);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.5;
	overflow-x: hidden;
}

button,
input,
select,
textarea {
	font: inherit;
}

.registration-page {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: stretch;
	padding: clamp(20px, 4vw, 56px);
	background:
		linear-gradient(90deg, #f4f8f3 0, #f4f8f3 36%, transparent 36%),
		var(--page);
}

.registration-page,
.event-panel,
.form-panel,
.event-copy,
.event-details,
.registration-form {
	min-width: 0;
}

.event-panel {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: calc(100vh - clamp(40px, 8vw, 112px));
	padding: clamp(24px, 4vw, 44px);
	background: var(--green);
	color: #ffffff;
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
}

.brand-mark {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 2px solid rgba(255, 255, 255, 0.78);
	border-radius: 6px;
	color: var(--gold);
	font-weight: 800;
}

.event-copy {
	margin: 56px 0;
}

.event-copy h1 {
	margin: 0;
	max-width: 11ch;
	font-size: clamp(44px, 7vw, 82px);
	line-height: 0.96;
	font-weight: 800;
	letter-spacing: 0;
}

.lede {
	max-width: 34ch;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 18px;
	overflow-wrap: break-word;
}

.event-details {
	display: grid;
	gap: 14px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-row {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 12px;
	align-items: center;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 650;
}

.detail-row span {
	min-width: 0;
	overflow-wrap: break-word;
}

.detail-row svg,
.submit-button svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.detail-row svg {
	color: var(--gold);
}

.configuration-note {
	margin-top: 22px;
	padding: 14px 16px;
	background: rgba(255, 247, 223, 0.14);
	border: 1px solid rgba(255, 247, 223, 0.34);
	border-radius: 8px;
	color: #fff7df;
	font-weight: 650;
}

.form-panel {
	align-self: center;
	width: min(100%, 720px);
	padding: clamp(24px, 4vw, 44px);
	background: #ffffff;
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: var(--shadow);
}

.form-panel h2 {
	margin: 0 0 24px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: 0;
}

.registration-form {
	display: grid;
	gap: 18px;
}

.field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

label,
fieldset {
	min-width: 0;
}

label {
	display: grid;
	gap: 7px;
}

label > span,
legend {
	color: var(--green);
	font-size: 14px;
	font-weight: 750;
}

label small {
	color: var(--muted);
	font-size: 13px;
	font-weight: 650;
}

.checkin-event-word em {
	color: var(--muted);
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
}

input,
select,
textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 13px;
	border: 1px solid #cfdad5;
	border-radius: 6px;
	background: #ffffff;
	color: var(--ink);
	outline: none;
	transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea {
	resize: vertical;
	min-height: 104px;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--green-2);
	box-shadow: 0 0 0 4px rgba(13, 102, 85, 0.13);
}

fieldset {
	margin: 0;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
}

legend {
	padding: 0 8px;
}

.choice-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
	margin-top: 8px;
}

.choice-grid label,
.consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--ink);
	font-weight: 600;
	min-width: 0;
}

.choice-grid input,
.consent input {
	width: 18px;
	height: 18px;
	min-height: 18px;
	margin-top: 3px;
	accent-color: var(--green);
}

.choice-grid span,
.consent span {
	min-width: 0;
	font-size: 14px;
	color: var(--ink);
	font-weight: 650;
	overflow-wrap: break-word;
}

.form-status {
	display: none;
	padding: 13px 14px;
	border-radius: 8px;
	font-weight: 700;
}

.form-status.is-visible {
	display: block;
}

.form-status.is-success {
	color: var(--success);
	background: #edf8f1;
	border: 1px solid #b7dfc4;
}

.form-status.is-error {
	color: var(--error);
	background: #fff0ed;
	border: 1px solid #f0bbb2;
}

.submit-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 22px;
	border: 0;
	border-radius: 8px;
	background: var(--green);
	color: #ffffff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.submit-button:hover {
	background: var(--green-2);
	transform: translateY(-1px);
}

.submit-button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
	transform: none;
}

.checkin-panel {
	display: grid;
	gap: 20px;
}

.checkin-status {
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 14px;
	align-items: start;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--surface);
	color: var(--ink);
}

.checkin-status strong {
	display: block;
	font-size: 18px;
	line-height: 1.25;
	color: var(--ink);
}

.checkin-status p {
	margin: 5px 0 0;
	color: var(--muted);
}

.status-symbol {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 3px solid #cfdad5;
	background: #ffffff;
}

.checkin-status.is-loading .status-symbol {
	border-color: var(--gold);
	border-right-color: transparent;
	animation: checkin-spin 900ms linear infinite;
}

.checkin-status.is-success {
	border-color: #b7dfc4;
	background: #edf8f1;
}

.checkin-status.is-success .status-symbol {
	position: relative;
	border-color: var(--success);
	background: var(--success);
}

.checkin-status.is-success .status-symbol::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 6px;
	width: 10px;
	height: 16px;
	border: solid #ffffff;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
}

.checkin-status.is-error {
	border-color: #f0bbb2;
	background: #fff0ed;
}

.checkin-status.is-error .status-symbol {
	position: relative;
	border-color: var(--error);
	background: var(--error);
}

.checkin-status.is-error .status-symbol::before,
.checkin-status.is-error .status-symbol::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 14px;
	width: 13px;
	height: 3px;
	border-radius: 999px;
	background: #ffffff;
}

.checkin-status.is-error .status-symbol::before {
	transform: rotate(45deg);
}

.checkin-status.is-error .status-symbol::after {
	transform: rotate(-45deg);
}

.attendee-summary {
	display: grid;
	gap: 0;
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}

.attendee-summary > div {
	display: grid;
	grid-template-columns: minmax(120px, 0.45fr) 1fr;
	gap: 16px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--line);
}

.attendee-summary > div:last-child {
	border-bottom: 0;
}

.attendee-summary span {
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.attendee-summary strong {
	min-width: 0;
	overflow-wrap: break-word;
	color: var(--ink);
}

.checkin-panel .submit-button {
	width: 100%;
}

@keyframes checkin-spin {
	to {
		transform: rotate(360deg);
	}
}

.website-field {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

@media (max-width: 860px) {
	.registration-page {
		grid-template-columns: 1fr;
		padding: 16px;
		background: var(--surface);
	}

	.event-panel {
		min-height: auto;
		gap: 34px;
	}

	.event-copy {
		margin: 18px 0 0;
	}

	.event-copy h1 {
		max-width: 12ch;
		font-size: clamp(38px, 13vw, 58px);
	}

	.form-panel {
		align-self: stretch;
	}
}

@media (max-width: 560px) {
	.field-grid,
	.choice-grid {
		grid-template-columns: 1fr;
	}

	.form-panel,
	.event-panel {
		padding: 22px;
	}

	.checkin-status,
	.attendee-summary > div {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0.01ms !important;
	}
}
