/* Start a Project — formal intake layout (theme 0.1.5) */

.fx-start-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 44px;
	max-width: var(--fx-site-max);
	margin: 0 auto;
	padding: 0 24px;
	align-items: start;
}

.fx-start-main {
	min-width: 0;
}

.fx-start-main .fx-mic-wrap {
	background: #fffdf9;
	border: 1px solid var(--fx-site-line);
	border-radius: 18px;
	padding: 28px;
	box-shadow: var(--fx-site-shadow);
}

.fx-start-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 22px;
	padding: 12px 16px;
	border: 1px solid var(--fx-site-line);
	border-radius: 10px;
	background: #fff;
	font-size: 12px;
	letter-spacing: .02em;
	color: var(--fx-site-slate);
}

.fx-start-trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.fx-start-trust span + span::before {
	content: "·";
	color: var(--fx-site-line);
	margin-right: 4px;
}

.fx-start-trust svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
	color: var(--fx-site-orange-text);
}

.fx-start-trust a {
	color: var(--fx-site-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fx-start-rail {
	position: sticky;
	top: 24px;
	display: grid;
	gap: 16px;
}

.fx-start-rail__card {
	border: 1px solid var(--fx-site-line);
	border-radius: 14px;
	background: #fff;
	padding: 22px;
	box-shadow: var(--fx-site-shadow);
}

.fx-start-rail__card h2 {
	margin: 0 0 16px;
	font-size: 20px;
	letter-spacing: -.01em;
}

.fx-start-rail__card h3 {
	margin: 0 0 6px;
	font-size: 14px;
}

.fx-start-rail__card p {
	margin: 0 0 8px;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--fx-site-slate);
}

.fx-start-rail__card p:last-child {
	margin-bottom: 0;
}

.fx-start-rail__card a {
	color: var(--fx-site-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fx-start-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 16px;
}

.fx-start-steps li {
	display: grid;
	grid-template-columns: 30px 1fr;
	gap: 12px;
}

.fx-start-steps li > span {
	padding-top: 2px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--fx-site-orange-text);
}

.fx-start-steps strong {
	display: block;
	font-size: 14px;
	color: var(--fx-site-navy);
}

.fx-start-steps p {
	margin: 4px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--fx-site-slate);
}

.fx-start-rail__card--muted {
	background: var(--fx-site-paper);
	box-shadow: none;
}

/* Stepper */
.fx-form-stepper {
	margin: 0 0 26px;
}

.fx-form-stepper__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 280px;
}

.fx-form-stepper__bar > span[data-dot] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 1px solid var(--fx-site-line);
	background: #fff;
	color: var(--fx-site-slate);
	font-size: 12px;
	font-weight: 700;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.fx-form-stepper__bar > span.is-active {
	background: var(--fx-site-navy);
	border-color: var(--fx-site-navy);
	color: #fff;
}

.fx-form-stepper__line {
	flex: 1;
	height: 2px;
	border-radius: 2px;
	background: var(--fx-site-line);
	transition: background-color .3s ease;
}

.fx-form-stepper.is-step-2 .fx-form-stepper__line {
	background: var(--fx-site-navy);
}

.fx-form-stepper__labels {
	display: flex;
	justify-content: space-between;
	max-width: 300px;
	margin-top: 6px;
	font-size: 10px;
	font-weight: 650;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fx-site-slate);
}

.fx-form-stepper.is-step-2 .fx-form-stepper__labels span:last-child {
	color: var(--fx-site-navy);
}

.fx-form-step[hidden],
.mic-contact__field[hidden] {
	display: none !important;
}

/* Step buttons */
.fx-form-nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

.fx-form-nav--split {
	justify-content: space-between;
}

.fx-form-next {
	border: 0;
	border-radius: 7px;
	padding: 12px 20px;
	background: var(--fx-site-navy);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 650;
	cursor: pointer;
}

.fx-form-next:hover,
.fx-form-next:focus-visible {
	background: var(--fx-site-navy-2);
	outline: 2px solid var(--fx-site-navy-2);
	outline-offset: 2px;
}

.fx-form-back {
	border: 0;
	background: none;
	padding: 8px 0;
	color: var(--fx-site-slate);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}

.fx-form-back:hover,
.fx-form-back:focus-visible {
	color: var(--fx-site-navy);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Choice cards / pills */
.fx-choice {
	margin-top: 2px;
}

.fx-choice--cards-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.fx-choice--pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fx-choice__option {
	position: relative;
	cursor: pointer;
	transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.fx-choice__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
	pointer-events: none;
}

.fx-choice__label {
	display: block;
	line-height: 1.35;
}

.fx-choice--cards-2 .fx-choice__option {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px 14px;
	border: 1px solid var(--fx-site-line);
	border-radius: 12px;
	background: #fff;
	color: var(--fx-site-ink);
	font-size: 13px;
	font-weight: 600;
}

.fx-choice--cards-2 .fx-choice__option:hover {
	border-color: #b9b2a3;
	box-shadow: 0 12px 26px -22px rgba(11, 18, 32, .55);
	transform: translateY(-1px);
}

.fx-choice__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--fx-site-paper);
	color: var(--fx-site-navy);
	transition: background-color .18s ease, color .18s ease;
}

.fx-choice__icon svg {
	display: block;
}

.fx-choice__tick {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-left: auto;
	border-radius: 999px;
	background: var(--fx-site-navy);
	color: #fff;
	font-size: 11px;
	line-height: 18px;
	text-align: center;
	opacity: 0;
	transform: scale(.7);
	transition: opacity .16s ease, transform .16s ease;
}

.fx-choice--pills .fx-choice__option {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 14px;
	border: 1px solid var(--fx-site-line);
	border-radius: 999px;
	background: #fff;
	color: var(--fx-site-slate);
	font-size: 12.5px;
	font-weight: 600;
}

.fx-choice--pills .fx-choice__option:hover {
	border-color: #b9b2a3;
	color: var(--fx-site-navy);
}

.fx-choice--pills .fx-choice__tick {
	width: 14px;
	height: 14px;
	line-height: 14px;
	font-size: 9px;
	margin-left: 0;
	opacity: 0;
}

.fx-choice__input:checked ~ .fx-choice__tick {
	opacity: 1;
	transform: scale(1);
}

.fx-choice--cards-2 .fx-choice__input:checked ~ .fx-choice__tick {
	opacity: 1;
	transform: scale(1);
}

.fx-choice--cards-2 .fx-choice__input:checked ~ .fx-choice__icon {
	background: var(--fx-site-navy);
	color: #fff;
}

.fx-choice--cards-2 .fx-choice__option:has(.fx-choice__input:checked) {
	border-color: var(--fx-site-navy);
	background: #eef3f7;
}

.fx-choice--pills .fx-choice__option:has(.fx-choice__input:checked) {
	border-color: var(--fx-site-navy);
	background: var(--fx-site-navy);
	color: #fff;
}

.fx-choice--pills .fx-choice__option:has(.fx-choice__input:checked) .fx-choice__tick {
	background: transparent;
	color: #fff;
}

.fx-choice__option:has(.fx-choice__input:focus-visible) {
	outline: 2px solid var(--fx-site-navy);
	outline-offset: 2px;
}

/* Consent: single checkbox-like row */
.fx-consent-field .mic-opt-grid {
	display: block;
}

.fx-consent-field .mic-opt {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	opacity: 1;
	transform: none;
	animation: none;
}

.fx-consent-field .mic-opt:hover {
	transform: none;
	box-shadow: none;
}

.fx-consent-field .mic-opt:has(.mic-opt__input:checked) {
	border: 0;
	background: transparent;
}

.fx-consent-field .mic-opt__glyph {
	display: none;
}

.fx-consent-field .mic-opt__tick {
	order: -1;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	border-radius: 4px;
	border: 1px solid #b9b2a3;
	background: #fff;
	color: transparent;
}

.fx-consent-field .mic-opt__tick--radio .mic-opt__dot {
	display: none;
}

.fx-consent-field .mic-opt__tick::after {
	content: "✓";
	font-size: 13px;
	line-height: 1;
	font-weight: 700;
}

.fx-consent-field .mic-opt__input:checked ~ .mic-opt__tick {
	background: var(--fx-site-navy);
	border-color: var(--fx-site-navy);
	color: #fff;
	transform: none;
}

.fx-consent-field .mic-opt__label {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--fx-site-slate);
}

@media (max-width: 980px) {
	.fx-start-layout {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 0 16px;
	}

	.fx-start-rail {
		position: static;
	}
}

@media (max-width: 720px) {
	.fx-start-main .fx-mic-wrap {
		padding: 18px;
		border-radius: 14px;
	}

	.fx-form-stepper__labels {
		max-width: 100%;
	}

	.fx-form-stepper__bar {
		max-width: 100%;
	}
}

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

/* Validation + email obfuscation */
.fx-field-error {
	margin: 6px 0 0;
	color: #a83030;
	font-size: 12px;
	line-height: 1.4;
}

.fx-field-note--warn {
	margin: 6px 0 0;
	color: #8a5a1e;
	font-size: 11.5px;
	line-height: 1.4;
}

.mic-contact__field.is-error input[type="text"],
.mic-contact__field.is-error input[type="email"],
.mic-contact__field.is-error input[type="url"],
.mic-contact__field.is-error textarea {
	border-color: #a83030;
}

.mic-contact__field.is-error .fx-choice__option {
	border-color: #e0b4b4;
}

.fx-email {
	color: var(--fx-site-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.mic-contact__field.fx-field-focus {
	outline: 2px solid rgba(168, 48, 48, .28);
	outline-offset: 6px;
	border-radius: 10px;
}

/* Step transition */
.fx-form-step.fx-step-enter {
	animation: fxStepIn .28s ease;
}

@keyframes fxStepIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.fx-form-step.fx-step-enter { animation: none; }
}

/* Input focus */
.mic-contact input:focus-visible,
.mic-contact select:focus-visible,
.mic-contact textarea:focus-visible {
	outline: 2px solid rgba(20, 43, 59, .18);
	outline-offset: 1px;
}

/* Email popover */
.fx-email-pop {
	position: fixed;
	z-index: 9999;
	width: 280px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--fx-site-line);
	border-radius: 12px;
	box-shadow: 0 24px 60px -24px rgba(11, 18, 32, .45);
}

.fx-email-pop__label {
	margin: 0 0 4px;
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fx-site-slate);
}

.fx-email-pop__addr {
	display: block;
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--fx-site-ink);
}

.fx-email-pop__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.fx-email-pop__copy {
	border: 0;
	border-radius: 6px;
	background: var(--fx-site-navy);
	color: #fff;
	padding: 8px 10px;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.fx-email-pop__actions a {
	font-size: 12px;
	color: var(--fx-site-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Review summary */
.fx-form-review {
	margin: 30px 0 12px;
	padding: 18px 20px;
	border: 1px solid var(--fx-site-line);
	border-radius: 12px;
	background: var(--fx-site-paper);
}

.fx-form-review__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.fx-form-review__head h3 {
	margin: 0;
	font-size: 16px;
	letter-spacing: -.01em;
}

.fx-form-review__edit {
	border: 0;
	background: none;
	padding: 0;
	color: var(--fx-site-navy);
	font: inherit;
	font-size: 12px;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.fx-form-review__list {
	margin: 0;
	display: grid;
	gap: 8px;
}

.fx-form-review__row {
	display: grid;
	grid-template-columns: 150px 1fr;
	gap: 12px;
	font-size: 12.5px;
	line-height: 1.45;
}

.fx-form-review__row dt {
	color: var(--fx-site-slate);
}

.fx-form-review__row dd {
	margin: 0;
	color: var(--fx-site-ink);
}

.fx-form-review__empty {
	margin: 0;
	font-size: 12.5px;
	color: var(--fx-site-slate);
}

/* Success next steps */
.fx-success-next {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--fx-site-line);
}

.fx-success-next h3 {
	margin: 0 0 10px;
	font-size: 16px;
}

.fx-success-next ol {
	margin: 0 0 10px;
	padding-left: 20px;
	display: grid;
	gap: 6px;
	font-size: 13px;
	color: var(--fx-site-slate);
}

.fx-success-next p {
	margin: 0;
	font-size: 12.5px;
	color: var(--fx-site-slate);
}

@media (max-width: 560px) {
	.fx-form-review__row {
		grid-template-columns: 1fr;
		gap: 2px;
	}
}

@media (max-width: 720px) {
	.fx-form-stepper {
		position: sticky;
		top: 0;
		z-index: 5;
		background: #fffdf9;
		padding: 10px 0 8px;
		margin: -4px 0 18px;
		border-bottom: 1px solid var(--fx-site-line);
	}
}
