/* Contact form dialog (inc/contact-form.php, assets/js/contact.js). */

.arch-cf {
	box-sizing: border-box;
	width: min(580px, calc(100vw - 48px));
	max-width: none;
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: 64px clamp(24px, 5vw, 52px) 44px;
	overflow: auto;
	overscroll-behavior: contain;
	border: 1px solid #2E4B53;
	border-radius: 290px 290px 8px 8px / 110px 110px 8px 8px;
	background: var(--arch-navy);
	color: var(--arch-mist);
	font-family: var(--arch-font-body);
	font-size: 17px;
	line-height: 1.6;
}

.arch-cf::backdrop {
	background: rgba(6, 14, 17, 0.8);
}

.arch-cf__x {
	position: absolute;
	top: 74px;
	right: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #2E4B53;
	border-radius: 999px;
	background: transparent;
	color: var(--arch-mist);
	cursor: pointer;
}

.arch-cf__x:hover {
	border-color: var(--arch-copper);
	color: var(--arch-copper);
}

.arch-cf__lines {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	margin-bottom: 22px;
}

.arch-cf__lines span {
	display: block;
	width: 64px;
	height: 2px;
	background: rgba(208, 138, 90, 0.7);
}

.arch-cf__lines span:nth-child(2) {
	width: 42px;
	height: 1.5px;
	background: rgba(208, 138, 90, 0.5);
}

.arch-cf__lines span:nth-child(3) {
	width: 20px;
	height: 1px;
	background: rgba(208, 138, 90, 0.4);
}

.arch-cf__eyebrow {
	margin: 0 0 12px;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.32em;
	color: var(--arch-copper);
}

.arch-cf__title {
	margin: 0;
	text-align: center;
	font-family: var(--arch-font-display);
	font-size: clamp(1.9rem, 4vw, 2.5rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.015em;
	color: var(--arch-mist);
}

.arch-cf__title:focus {
	outline: none;
}

.arch-cf__intro {
	max-width: 400px;
	margin: 14px auto 30px;
	text-align: center;
	font-size: 16px;
	line-height: 1.55;
	color: #B9C8C6;
}

.arch-cf__form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0;
}

.arch-cf__row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.arch-cf__row > .arch-cf__label {
	flex: 1 1 200px;
}

.arch-cf__label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.22em;
	color: #8FA3A1;
}

.arch-cf__optional {
	font-weight: 400;
	letter-spacing: 0.08em;
	color: #5F7579;
}

.arch-cf__input {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid #2E4B53;
	border-radius: 6px;
	background: #0B1A1F;
	color: var(--arch-mist);
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0;
}

.arch-cf__input::placeholder {
	color: #5F7579;
	opacity: 1;
}

.arch-cf__input:focus {
	outline: none;
	border-color: var(--arch-copper);
	box-shadow: 0 0 0 3px rgba(208, 138, 90, 0.22);
}

.arch-cf__input[aria-invalid="true"] {
	border-color: #E07A6A;
}

textarea.arch-cf__input {
	min-height: 132px;
	resize: vertical;
}

.arch-cf__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.arch-cf__error {
	margin: 0;
	padding: 12px 16px;
	border: 1px solid rgba(224, 122, 106, 0.5);
	border-radius: 6px;
	background: rgba(224, 122, 106, 0.08);
	font-size: 15px;
	line-height: 1.5;
	color: #F2B3A8;
}

.arch-cf__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 6px;
}

.arch-cf__place {
	font-size: 13px;
	color: #8FA3A1;
}

.arch-cf__btn {
	min-height: 48px;
	margin-left: auto;
	padding: 14px 28px;
	border: 0;
	border-radius: 999px;
	background: var(--arch-copper);
	color: var(--arch-navy);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
}

.arch-cf__btn:hover {
	background: #E09B6B;
}

.arch-cf__btn:focus-visible,
.arch-cf__x:focus-visible {
	outline: 2px solid var(--arch-mist);
	outline-offset: 3px;
}

.arch-cf__btn[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.arch-cf__sent-view:not([hidden]) {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 8px 0 12px;
	text-align: center;
}

.arch-cf__sent-view .arch-cf__eyebrow {
	margin: 0;
}

.arch-cf__sent-view .arch-cf__btn {
	margin-left: 0;
}

.arch-cf__intro--sent {
	max-width: 380px;
	margin: 0 0 14px;
}
