.contact-section {
	background: var(--paper);
	scroll-margin-top: var(--header-height);
}

.contact-layout {
	display: grid;
	grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
	gap: clamp(40px, 7vw, 96px);
	align-items: start;
}

.contact-details h1 {
	max-width: 680px;
	margin-bottom: 20px;
}

.contact-details__intro {
	max-width: 610px;
	margin-bottom: 14px;
	color: var(--grey);
	font-size: 18px;
}

.contact-details__location {
	margin-bottom: 34px;
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.contact-methods {
	border-top: 1px solid var(--line);
}

.contact-method {
	display: grid;
	gap: 5px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	color: inherit;
	text-decoration: none;
}

.contact-method:hover .contact-method__value,
.contact-method:focus-visible .contact-method__value {
	color: var(--ocean);
	text-decoration: underline;
}

.contact-method__label {
	color: var(--grey);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.contact-method__value {
	font-weight: 700;
	overflow-wrap: anywhere;
}

.contact-promise {
	margin-top: 30px;
	padding: 19px 20px;
	border-left: 3px solid var(--yellow);
	background: var(--white);
}

.contact-promise p {
	margin: 0;
	color: var(--grey);
	font-size: 14px;
}

.contact-promise .contact-promise__title {
	margin-bottom: 5px;
	color: var(--ink);
	font-weight: 700;
}

.contact-next {
	margin-top: 42px;
}

.contact-next h2 {
	margin-bottom: 18px;
	font-size: 24px;
}

.contact-next ol {
	display: grid;
	gap: 14px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.contact-next li {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 10px;
	align-items: baseline;
	font-size: 14px;
	font-weight: 700;
}

.contact-next span {
	color: var(--ocean);
	font-family: var(--font-mono);
	font-size: 11px;
}

.contact-form-panel {
	padding: clamp(24px, 4vw, 42px);
	border: 1px solid var(--line);
	border-top: 4px solid var(--ocean);
	border-radius: var(--radius);
	background: var(--white);
	box-shadow: var(--shadow);
}

.contact-form-panel h2 {
	margin-bottom: 10px;
	font-size: clamp(29px, 3vw, 40px);
}

.contact-form-panel__intro {
	margin-bottom: 28px;
	color: var(--grey);
	font-size: 15px;
}

.service-fieldset {
	min-width: 0;
	padding: 0;
	border: 0;
}

.service-fieldset legend {
	margin-bottom: 12px;
	font-weight: 700;
}

.service-options {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.service-option {
	position: relative;
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	cursor: pointer;
}

.service-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.service-option span {
	display: block;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: 4px;
	background: var(--white);
	font-size: 13px;
	font-weight: 700;
	transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.service-option input:checked + span {
	border-color: var(--ocean);
	background: var(--ocean);
	color: var(--white);
}

.service-option input:focus-visible + span {
	outline: 3px solid var(--yellow);
	outline-offset: 2px;
}

.service-fieldset.has-error .service-options {
	padding: 8px;
	margin: -8px;
	border: 1px solid #b42318;
	border-radius: 4px;
}

.field-error {
	margin: 7px 0 0;
	color: #b42318;
	font-size: 13px;
	font-weight: 700;
}

.form-message {
	display: grid;
	gap: 5px;
	margin: 0 0 18px;
	outline: none;
}

.form-message:empty {
	display: none;
}

.form-message--error {
	padding: 14px 16px;
	border-left: 3px solid #b42318;
	background: #fff4f2;
	color: #7a271a;
	font-size: 14px;
}

.lead-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	margin-top: 26px;
}

.lead-form__actions .button {
	min-width: 184px;
}

.thanks-page {
	display: grid;
	min-height: calc(100svh - var(--header-height));
	padding-block: clamp(56px, 9vw, 112px);
	place-items: center;
	background: var(--ink);
	color: var(--white);
}

.thanks-panel {
	max-width: 760px;
	padding: clamp(28px, 5vw, 54px);
	border: 1px solid rgba(255, 255, 255, .26);
	border-top: 4px solid var(--yellow);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, .04);
	text-align: center;
}

.thanks-panel img {
	width: 76px;
	height: auto;
	margin: 0 auto 22px;
}

.thanks-panel .eyebrow {
	justify-content: center;
}

.thanks-panel h1 {
	margin-bottom: 18px;
}

.thanks-panel__copy {
	margin: 0 auto 30px;
	color: #d7e3e3;
	font-size: 18px;
}

.thanks-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	padding: 0;
	margin: 0 0 30px;
	list-style: none;
	text-align: left;
}

.thanks-steps li {
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, .2);
	font-size: 14px;
	font-weight: 700;
}

.thanks-steps span {
	display: block;
	margin-bottom: 7px;
	color: var(--yellow);
	font-family: var(--font-mono);
	font-size: 11px;
}

.thanks-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

.thanks-panel .button--outline {
	border-color: var(--white);
	color: var(--white);
}

.thanks-panel .text-link {
	color: var(--white);
}

@media (max-width: 820px) {
	.contact-layout { grid-template-columns: 1fr; }
	.contact-details { max-width: 680px; }
}

@media (max-width: 560px) {
	.contact-details__intro { font-size: 16px; }
	.contact-form-panel { padding: 24px 18px; }
	.service-options { gap: 8px; }
	.service-option span { font-size: 12px; }
	.lead-form__actions, .lead-form__actions .button { width: 100%; }
	.thanks-panel { padding: 30px 20px; }
	.thanks-steps { grid-template-columns: 1fr; }
	.thanks-actions, .thanks-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.service-option span { transition: none; }
}
