/* ------------------------------------------------------------------
	Amity — Join flow (questionnaire + signup)
	Built on the site's established type, color and component styles.
------------------------------------------------------------------- */

html, body, div, span, h1, h2, h3, p, a, em, img, strong, ul, li, fieldset,
form, label, legend, button, input, select, textarea, header, footer, section,
dl, dt, dd {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

ul { list-style: none; }

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

:root {
	--amity-navy: #121738;
	--amity-navy-deep: #10182F;
	--amity-green: #49A258;
	--amity-green-dark: #388244;
	--amity-yellow: #F7D347;
	--amity-yellow-bright: #FFD326;
	--amity-orange: #FF5C00;
	--amity-orange-light: #ED7734;
	--field-bg: rgba(255,255,255,0.071);
	--field-bg-hover: rgba(255,255,255,0.12);
	--hairline: rgba(255,255,255,0.18);
}

html {
	font-size: 18pt;
}

body {
	-webkit-text-size-adjust: none;
	line-height: 1;
	min-height: 100vh;
	min-width: 320px;
	overflow-x: hidden;
	word-wrap: break-word;
	background-color: var(--amity-navy);
	color: #FFFFFF;
	font-family: 'Raleway', sans-serif;
	font-weight: 300;
}

body::before {
	content: '';
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 0;
	background-image: linear-gradient(to top, rgba(18,23,56,0.978), rgba(18,23,56,0.978)), url('images/bg.jpg');
	background-position: 0% 0%, center;
	background-repeat: repeat, no-repeat;
	background-size: auto, cover;
}

input, select, textarea, button {
	font: inherit;
	color: inherit;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
}

/* Layout ---------------------------------------------------------- */

.join-wrapper {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	padding: 1.75rem 1.5rem 2.5rem 1.5rem;
}

.join-inner {
	width: 100%;
	max-width: 42rem;
	margin: 0 auto;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

/* Header ---------------------------------------------------------- */

.join-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	width: 100%;
	max-width: 45rem;
	margin: 0 auto 2rem auto;
	padding: 2.75rem 1.5rem 0 1.5rem;
	position: relative;
	z-index: 1;
}

.join-header .logo img {
	display: block;
	width: 7rem;
	height: auto;
}

.button-close {
	display: inline-block;
	height: 2.375rem;
	line-height: calc(2.375rem - 6px);
	padding: 0 0.9rem;
	vertical-align: middle;
	font-family: 'Fredoka', sans-serif;
	font-size: 1em;
	font-weight: 400;
	border-radius: 0.625rem;
	text-decoration: none;
	color: #FFFFFF;
	border: solid 3px #FFFFFF;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.button-close:hover {
	color: var(--amity-yellow);
	border-color: var(--amity-yellow);
}

/* Progress -------------------------------------------------------- */

.progress {
	margin-bottom: 2rem;
}

.progress-steps {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
}

.progress-steps > li {
	flex: 1 1 0;
	min-width: 0;
}

.progress-steps .num {
	display: block;
	font-family: 'Knewave', cursive;
	font-size: 1.25em;
	line-height: 1.125;
	color: rgba(255,255,255,0.3);
	transition: color 0.25s ease;
}

.progress-steps .name {
	display: block;
	margin-top: 0.35rem;
	font-family: 'Raleway', sans-serif;
	font-size: 0.7em;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255,255,255,0.45);
	transition: color 0.25s ease;
}

.progress-steps .bar {
	display: block;
	height: 4px;
	margin-top: 0.6rem;
	border-radius: 2px;
	background-color: rgba(255,255,255,0.15);
	transition: background-color 0.25s ease;
}

.progress-steps > li.is-active .num,
.progress-steps > li.is-done .num {
	color: var(--amity-green);
}

.progress-steps > li.is-active .name {
	color: #FFFFFF;
}

.progress-steps > li.is-active .bar,
.progress-steps > li.is-done .bar {
	background-color: var(--amity-green);
}

/* Steps ----------------------------------------------------------- */

.step {
	display: none;
}

.step.is-current {
	display: block;
	animation: step-in 0.35s ease;
}

@keyframes step-in {
	from { opacity: 0; transform: translateY(0.6rem); }
	to { opacity: 1; transform: translateY(0); }
}

.step-eyebrow {
	font-family: 'Knewave', cursive;
	font-size: 2.75em;
	line-height: 1.125;
	color: var(--amity-green);
	margin-bottom: 0.5rem;
}

.step-title {
	color: #FFFFFF;
	font-family: 'Fredoka', sans-serif;
	letter-spacing: -0.1rem;
	font-size: 1.875em;
	line-height: 1.25;
	font-weight: 400;
}

.step-note {
	margin-top: 0.75rem;
	font-family: 'Raleway', sans-serif;
	font-weight: 300;
	font-size: 0.875em;
	line-height: 1.5;
	color: rgba(255,255,255,0.7);
}

.step-body {
	margin-top: 1.75rem;
}

.step-title:focus,
.done:focus {
	outline: none;
}

/* Choice grids ---------------------------------------------------- */

.choices {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.choices.cols-2 {
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.choice {
	position: relative;
	display: block;
}

.choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.choice > span {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-height: 3.375rem;
	padding: 0.75rem 1.18125rem;
	border-radius: 0.375rem;
	background-color: var(--field-bg);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
	font-family: 'Raleway', sans-serif;
	font-size: 1em;
	font-weight: 400;
	line-height: 1.4;
	color: #FFFFFF;
	cursor: pointer;
	transition: background-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.choice > span::before {
	content: '';
	display: block;
	flex-grow: 0;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 0.3rem;
	background-color: rgba(255,255,255,0.12);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.85rem;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.choice:hover > span {
	background-color: var(--field-bg-hover);
}

.choice input:checked + span {
	background-color: rgba(73,162,88,0.18);
	box-shadow: inset 0 0 0 2px var(--amity-green);
}

.choice input:checked + span::before {
	background-color: var(--amity-green);
	box-shadow: inset 0 0 0 1px var(--amity-green);
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='648' height='552' preserveAspectRatio='none' viewBox='0 0 648 552'%3E%3Cpath d='M225.3,517.7L2.1,293.1l68.1-67.7L226,382.3L578.1,35.6l67.4,68.4L225.3,517.7z' fill='%23FFFFFF' /%3E%3C/svg%3E");
}

.choice input:focus-visible + span {
	box-shadow: 0 0 0 1px #FFFFFF, inset 0 0 0 1px #FFFFFF;
}

/* Form fields ----------------------------------------------------- */

.fieldset {
	margin-top: 1.75rem;
}

.fieldset:first-child {
	margin-top: 0;
}

.fieldset-title {
	display: block;
	width: 100%;
	margin-bottom: 1rem;
	padding-bottom: 0.6rem;
	border-bottom: solid 1px var(--hairline);
	font-family: 'Fredoka', sans-serif;
	font-size: 1.125em;
	font-weight: 500;
	line-height: 1.25;
	color: #FFFFFF;
}

.fields {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
	display: block;
	grid-column: span 2;
}

.field.half {
	grid-column: span 1;
}

.field > label {
	display: block;
	margin: 0.25rem 0 0.75rem 0;
	text-align: left;
	font-size: 0.875em;
	line-height: 1.5;
	font-family: 'Raleway', sans-serif;
	font-weight: 300;
	color: #FFFFFF;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select {
	display: block;
	width: 100%;
	height: 3.375rem;
	padding: 0 1.18125rem;
	line-height: 3.375rem;
	border: 0;
	outline: 0;
	border-radius: 0.375rem;
	font-size: 1em;
	font-family: 'Raleway', sans-serif;
	font-weight: 300;
	color: #FFFFFF;
	background-color: var(--field-bg);
}

.field select {
	background-repeat: no-repeat;
	background-size: 1rem;
	background-position: calc(100% - 1.18125rem) center;
	padding-right: 3.28125rem;
	text-overflow: ellipsis;
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='504' height='552' preserveAspectRatio='none' viewBox='0 0 504 552'%3E%3Cpath d='M483.9,210.9L252,442.9L20.1,210.9l67.9-67.9L252,307.1l164.1-164.1L483.9,210.9z' fill='%23FFFFFF' /%3E%3C/svg%3E");
}

.field select option {
	background-color: #FFFFFF;
	color: #000000;
}

.field input:focus,
.field select:focus {
	box-shadow: 0 0 0 1px #FFFFFF, inset 0 0 0 1px #FFFFFF;
}

.field input::-webkit-input-placeholder { color: #FFFFFF; opacity: 0.55; }
.field input::-moz-placeholder { color: #FFFFFF; opacity: 0.55; }
.field input:-ms-input-placeholder { color: #FFFFFF; opacity: 0.55; }

.field .hint {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.7em;
	line-height: 1.5;
	color: rgba(255,255,255,0.55);
}

/* Inline checkbox (e.g. "same as home address") -------------------- */

.check-inline {
	grid-column: span 2;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	font-size: 0.875em;
	line-height: 1.5;
	font-family: 'Raleway', sans-serif;
	font-weight: 300;
	color: #FFFFFF;
	position: relative;
}

.check-inline input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}

.check-inline .box {
	display: block;
	flex-grow: 0;
	flex-shrink: 0;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 0.3rem;
	background-color: rgba(255,255,255,0.12);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.8rem;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.check-inline input:checked + .box {
	background-color: var(--amity-green);
	box-shadow: inset 0 0 0 1px var(--amity-green);
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='648' height='552' preserveAspectRatio='none' viewBox='0 0 648 552'%3E%3Cpath d='M225.3,517.7L2.1,293.1l68.1-67.7L226,382.3L578.1,35.6l67.4,68.4L225.3,517.7z' fill='%23FFFFFF' /%3E%3C/svg%3E");
}

.check-inline input:focus-visible + .box {
	box-shadow: 0 0 0 1px #FFFFFF, inset 0 0 0 1px #FFFFFF;
}

/* Notes ----------------------------------------------------------- */

.secure-note {
	margin-top: 0.9rem;
	padding: 0.85rem 1.1rem;
	border-radius: 0.375rem;
	background-color: rgba(73,162,88,0.14);
	box-shadow: inset 0 0 0 1px rgba(73,162,88,0.45);
	font-size: 0.75em;
	line-height: 1.6;
	color: rgba(255,255,255,0.82);
}

/* Errors ---------------------------------------------------------- */

.error {
	display: none;
	margin-top: 1rem;
	padding: 0.8rem 1.1rem;
	border-radius: 0.375rem;
	background-color: rgba(252,121,121,0.16);
	box-shadow: inset 0 0 0 1px #FC7979;
	font-size: 0.8em;
	line-height: 1.5;
	color: #FFFFFF;
}

.error.is-visible {
	display: block;
}

/* Actions --------------------------------------------------------- */

.actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.button {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: 3.375rem;
	line-height: 3.375rem;
	padding: 0 1.6875rem;
	vertical-align: middle;
	font-family: 'Fredoka', sans-serif;
	font-size: 1em;
	font-weight: 400;
	border-radius: 0.375rem;
	flex-direction: row-reverse;
	justify-content: flex-end;
	text-decoration: none;
	cursor: pointer;
	background-color: var(--amity-green);
	color: #FFFFFF;
	background-image: linear-gradient(45deg, var(--amity-green-dark) 0%, rgba(73,162,88,0.012) 100%);
	background-position: 0% 0%;
	background-repeat: repeat;
	background-size: cover;
	transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.button > svg {
	display: block;
	fill: #FFFFFF;
	flex-grow: 0;
	flex-shrink: 0;
	height: 1em;
	min-width: 16px;
	pointer-events: none;
	width: 1em;
	margin-left: 0.5em;
	margin-right: -0.125em;
	transition: fill 0.25s ease;
}

.button > .label {
	overflow: hidden;
	flex-grow: 1;
	flex-shrink: 1;
	text-align: left;
	width: 100%;
}

.button:hover {
	background-color: var(--amity-yellow);
}

.button.orange {
	background-color: var(--amity-orange);
	background-image: linear-gradient(45deg, var(--amity-orange-light) 0%, rgba(255,92,0,0.012) 100%);
}

.button.orange:hover {
	background-color: rgba(252,179,35,0.878);
}

.button.ghost {
	background-color: transparent;
	background-image: none;
	color: #FFFFFF;
	box-shadow: inset 0 0 0 3px rgba(255,255,255,0.5);
	flex-direction: row;
	justify-content: flex-start;
}

.button.ghost > svg {
	transform: scaleX(-1);
	margin-left: -0.125em;
	margin-right: 0.5em;
}

.button.ghost:hover {
	color: var(--amity-yellow);
	box-shadow: inset 0 0 0 3px var(--amity-yellow);
}

.button.ghost:hover > svg {
	fill: var(--amity-yellow);
}

.button:disabled {
	cursor: default;
	opacity: 0.5;
}

/* Done screen ----------------------------------------------------- */

.done {
	display: none;
	text-align: center;
	padding: 1rem 0;
}

.done.is-current {
	display: block;
	animation: step-in 0.35s ease;
}

.done .mark {
	display: block;
	width: 5rem;
	height: 5rem;
	margin: 0 auto 1.75rem auto;
	border-radius: 50%;
	background-color: var(--amity-green);
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='648' height='552' preserveAspectRatio='none' viewBox='0 0 648 552'%3E%3Cpath d='M225.3,517.7L2.1,293.1l68.1-67.7L226,382.3L578.1,35.6l67.4,68.4L225.3,517.7z' fill='%23FFFFFF' /%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 2.25rem;
}

.done .done-title {
	color: #FFFFFF;
	font-family: 'Fredoka', sans-serif;
	letter-spacing: -0.1rem;
	font-size: 2.25em;
	line-height: 1.25;
	font-weight: 400;
}

.done .done-text {
	max-width: 32rem;
	margin: 1.25rem auto 0 auto;
	font-family: 'Raleway', sans-serif;
	font-weight: 300;
	font-size: 1em;
	line-height: 1.875;
	color: rgba(255,255,255,0.85);
}

.done .done-text strong {
	font-weight: 700;
	color: var(--amity-yellow-bright);
}

.done .summary {
	max-width: 32rem;
	margin: 1.75rem auto 0 auto;
	padding: 1.25rem 1.5rem;
	text-align: left;
	border-radius: 0.375rem;
	background-color: var(--field-bg);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.done .summary dl > div {
	margin-top: 1.1rem;
}

.done .summary dl > div:first-child {
	margin-top: 0;
}

.done .summary dt {
	font-family: 'Fredoka', sans-serif;
	font-size: 0.8em;
	font-weight: 500;
	color: var(--amity-green);
}

.done .summary dd {
	margin-top: 0.35rem;
	font-size: 0.8em;
	line-height: 1.6;
	color: #FFFFFF;
}

.done .actions {
	justify-content: center;
}

/* Footer ---------------------------------------------------------- */

.join-footer {
	width: 100%;
	max-width: 42rem;
	margin: 3rem auto 0 auto;
	padding-top: 1.25rem;
	border-top: solid 1px var(--hairline);
	font-size: 0.7em;
	line-height: 1.6;
	color: rgba(255,255,255,0.5);
	position: relative;
	z-index: 1;
}

/* Responsive ------------------------------------------------------ */

@media (max-width: 1680px) {
	html { font-size: 13pt; }
}

@media (max-width: 1024px) {
	html { font-size: 11pt; }
}

@media (max-width: 736px) {
	html { font-size: 12pt; }

	.join-wrapper { padding: 1.25rem 1rem 2rem 1rem; }

	.join-header { padding: 2rem 1rem 0 1rem; }

	.step-eyebrow { font-size: 2.25em; }

	.step-title { font-size: 1.5em; letter-spacing: -0.05rem; }

	.progress-steps { gap: 0.5rem; }

	.progress-steps .name { display: none; }

	.choices, .choices.cols-2 { grid-template-columns: 1fr; }

	.fields { grid-template-columns: 1fr; }

	.field, .field.half, .check-inline { grid-column: span 1; }

	.actions { flex-direction: column-reverse; align-items: stretch; }

	.button { width: 100%; }

	.done .done-title { font-size: 1.75em; }
}
