/**
 * Contact: office details beside a map, a rule, then the message form. Unlike the other inner
 * pages this one is drawn in --as-ink (#111), the home page's ink, not --as-page-ink.
 */

.as-contact {
	display: flex;
	justify-content: center;
	padding: 80px 32px;
	color: var(--as-ink);
}

.as-contact__inner {
	display: flex;
	flex-direction: column;
	gap: 80px;
	width: 100%;
	max-width: var(--as-container-narrow);
}

.as-contact__office {
	display: flex;
	gap: 64px;
	align-items: flex-start;
}

.as-contact__details {
	display: flex;
	flex: 0 0 380px;
	flex-direction: column;
	gap: 24px;
}

.as-contact__detail {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.as-contact__label,
.as-contact__value {
	margin: 0;
}

.as-contact__label {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
}

.as-contact__value {
	font-size: 16px;
	line-height: 1.4;
}

.as-contact__value a {
	color: inherit;
	text-decoration: none;
}

.as-contact__value a:hover,
.as-contact__value a:focus-visible {
	text-decoration: underline;
}

.as-contact__map {
	flex: 1 1 0;
	height: 550px;
	min-width: 0;
	overflow: hidden;
	border-radius: 8px;
	background: #e9e9e9;
}

.as-contact__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.as-contact__divider {
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--as-page-border);
}

.as-contact__form-block {
	display: flex;
	flex-direction: column;
	gap: 32px;
	scroll-margin-top: 120px;
}

.as-contact__heading {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.as-contact__title,
.as-contact__lead {
	margin: 0;
	font-weight: 400;
}

.as-contact__title {
	font-size: 44px;
	line-height: 1.2;
}

.as-contact__lead {
	font-size: 14px;
	line-height: 1.4;
}

.as-contact-form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.as-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.as-field__label {
	font-size: 16px;
	line-height: 1.4;
}

.as-field__label--required {
	color: rgb(17 17 17 / 50%);
}

.as-field__name {
	color: var(--as-ink);
}

.as-field__input {
	display: block;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 16px;
	border: 0;
	border-radius: 4px;
	background: #fff;
	box-shadow: inset 0 0 0 1px var(--as-page-border);
	font: inherit;
	font-size: 15px;
	line-height: 21px;
	color: var(--as-ink);
	appearance: none;
}

.as-field__input--area {
	height: 247px;
	resize: vertical;
}

.as-field__input::placeholder {
	color: rgb(17 17 17 / 45%);
	opacity: 1;
}

.as-field__input:focus {
	outline: none;
	box-shadow: inset 0 0 0 1px var(--as-ink);
}

.as-field__input:focus-visible {
	outline: 2px solid var(--as-ink);
	outline-offset: 2px;
}

.as-field__input[aria-invalid="true"] {
	box-shadow: inset 0 0 0 1px var(--as-red);
}

.as-contact-form__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	justify-content: flex-end;
}

.as-contact-form__message {
	flex: 1 1 260px;
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
}

.as-contact-form__message.is-error {
	color: var(--as-red);
}

.as-contact-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 16px 36px;
	border: 0;
	border-radius: 100px;
	background: var(--as-red);
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.as-contact-form__submit:hover {
	background: #d4202f;
}

.as-contact-form__submit:focus-visible {
	outline: 2px solid var(--as-ink);
	outline-offset: 3px;
}

@media (max-width: 1199px) {
	.as-contact {
		padding: 72px 32px;
	}

	.as-contact__inner {
		gap: 64px;
	}

	.as-contact__office {
		flex-direction: column;
		gap: 40px;
		align-items: stretch;
	}

	.as-contact__details {
		flex: 0 0 auto;
	}

	.as-contact__map {
		flex: 0 0 auto;
		height: 420px;
	}
}

@media (max-width: 809px) {
	.as-contact {
		padding: 56px 20px 64px;
	}

	.as-contact__inner {
		gap: 56px;
	}

	.as-contact__office {
		gap: 32px;
	}

	.as-contact__map {
		height: 320px;
	}

	.as-contact__form-block {
		gap: 24px;
	}

	.as-contact__title {
		font-size: 32px;
	}

	.as-contact-form__submit {
		width: 100%;
	}
}
