/**
 * Nexza Contact widget. The form styles
 * also apply to a form plugin's fields placed in the widget.
 */

.nx-contact-head {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 3vw, 48px);
	align-items: end;
	margin-bottom: 56px;
}

.nx-contact-head > * {
	min-width: 0;
}

.nx-contact-head h2,
.nx-contact-head p {
	margin: 0;
}

.nx-contact-head p {
	color: var(--nx-muted-dark);
}

.nx-contact-body {
	display: grid;
	grid-template-columns: 42% 1fr;
	gap: clamp(32px, 5vw, 80px);
	align-items: start;
}

.nx-contact-body > * {
	min-width: 0;
}

.nx-contact-details h3 {
	margin: 0;
	color: var(--nx-sand);
}

.nx-contact-details > p {
	margin: 28px 0 0;
	color: var(--nx-muted-dark);
}

/* Phone / email / office rows */
.nx-cinfo {
	display: flex;
	flex-direction: column;
	gap: 22px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

.nx-cinfo a,
.nx-cinfo div {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--nx-sand);
	overflow-wrap: anywhere;
}

.nx-cinfo a:hover,
.nx-cinfo a:focus-visible {
	color: var(--nx-ember);
}

.nx-cinfo i {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border: 1px solid var(--nx-line-2);
	border-radius: 50%;
	background: var(--nx-ink);
	font-style: normal;
	color: var(--nx-copper);
}

.nx-cinfo small {
	display: block;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--nx-taupe);
}

/* Form card */
.nx-form,
.nx-contact-form .fluentform {
	padding: clamp(24px, 3vw, 44px);
	border: 1px solid var(--nx-line-2);
	border-radius: 26px;
	background: var(--nx-ink);
}

.nx-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
}

.nx-field {
	min-width: 0;
}

.nx-field--full {
	grid-column: 1 / -1;
}

.nx-contact-form label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--nx-muted-dark);
}

.nx-contact-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.nx-contact-form textarea,
.nx-contact-form select {
	width: 100%;
	padding: 16px 18px;
	border: 1px solid var(--nx-line-2);
	border-radius: 14px;
	background: var(--nx-card);
	font: inherit;
	font-size: 16px;
	color: var(--nx-sand);
	transition: border-color .3s;
}

.nx-contact-form textarea {
	min-height: 160px;
	resize: vertical;
}

.nx-contact-form input:focus,
.nx-contact-form textarea:focus,
.nx-contact-form select:focus {
	outline: none;
	border-color: var(--nx-copper);
}

.nx-contact-form .is-bad {
	border-color: var(--nx-ember);
}

.nx-err {
	min-height: 18px;
	margin-top: 6px;
	font-size: 13px;
	color: var(--nx-ember);
}

/* Honeypot: off screen, not display:none (some bots skip hidden fields). */
.nx-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.nx-form-note {
	grid-column: 1 / -1;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1px solid var(--nx-copper);
	color: var(--nx-sand);
}

.nx-form-note--invalid,
.nx-form-note--error {
	border-color: var(--nx-ember);
}

@media (max-width: 860px) {
	.nx-contact-head,
	.nx-contact-body {
		grid-template-columns: 1fr;
	}

	.nx-contact-head {
		gap: 16px;
		margin-bottom: 40px;
	}
}

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