/**
 * Module: Contact Us Section
 * Loaded when a `contact_us_section` layout is present on the page.
 */

.contact-us {
	background: var(--white);
	padding: 64px 0;
}

.contact-us .wrap {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 56px;
	align-items: start;
}

.contact-us .head .eyebrow {
	display: inline-block;
	font-family: var(--display);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--crimson);
	margin-bottom: 12px;
}

.contact-us .head h2 {
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	color: var(--indigo);
	margin: 0;
	line-height: 1.15;
}

.contact-us .head p {
	color: var(--ink-soft);
	font-size: 17px;
	margin-top: 14px;
	margin-bottom: 0;
	max-width: 560px;
	line-height: 1.5;
}

/* Query Form / CF7 Styling */
.qform {
	margin-top: 30px;
	background: var(--indigo-tint);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 28px 28px 26px;
}

.qform .row,
.qform .wpcf7-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 16px;
	row-gap: 0;
}

.qform .wpcf7-form fieldset.hidden-fields-container {
	display: none;
}

.qform .wpcf7-form > p {
	margin: 0;
}

.qform .wpcf7-form br {
	display: none;
}

.qform .wpcf7-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
	margin-top: 6px;
}

/* 2x2 input columns */
.qform .wpcf7-form > p:has([name="full-name"]) {
	grid-column: 1;
}

.qform .wpcf7-form > p:has([name="company"]) {
	grid-column: 2;
}

.qform .wpcf7-form > p:has([name="phone-number"]) {
	grid-column: 1;
}

.qform .wpcf7-form > p:has([name="email-address"]) {
	grid-column: 2;
}

/* Full width elements */
.qform .wpcf7-form > p:has(.wpcf7-radio),
.qform .wpcf7-form > p:has(.wpcf7-textarea),
.qform .wpcf7-form > p:has(.wpcf7-checkbox),
.qform .wpcf7-form > p:has(.wpcf7-submit),
.qform .wpcf7-form > p:nth-child(n+6),
.qform .wpcf7-form > div {
	grid-column: 1 / -1;
}

.qform .f {
	display: flex;
	flex-direction: column;
}

.qform .f.full {
	grid-column: 1 / -1;
}

.qform label,
.qform .wpcf7-form label {
	display: block;
	font-family: var(--display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-soft);
	margin: 14px 0 6px;
}

.qform label .opt {
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	color: var(--mist);
}

.qform input[type="text"],
.qform input[type="email"],
.qform input[type="tel"],
.qform select,
.qform textarea,
.qform .wpcf7-text,
.qform .wpcf7-textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #ffffff;
	color: var(--ink);
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
}

.qform textarea,
.qform .wpcf7-textarea {
	min-height: 120px;
	resize: vertical;
}

.qform input:focus,
.qform select:focus,
.qform textarea:focus {
	border-color: var(--indigo);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(0, 43, 92, .14);
}

/* Radio pills / Query Types */
.qform .wpcf7-radio,
.qform .types {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0;
}

.qform .wpcf7-radio label,
.qform .types label {
	margin: 0;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.qform .wpcf7-radio .wpcf7-list-item {
	margin: 0;
}

.qform .wpcf7-radio input[type="radio"],
.qform .types input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.qform .wpcf7-radio .wpcf7-list-item-label,
.qform .types span {
	display: inline-block;
	font-family: var(--body);
	font-weight: 600;
	font-size: 13px;
	color: var(--indigo);
	background: #ffffff;
	border: 1.5px solid var(--line);
	border-radius: 999px;
	padding: 8px 14px;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s, transform .15s;
	line-height: 1.2;
}

.qform .wpcf7-radio .wpcf7-list-item-label:hover,
.qform .types span:hover {
	border-color: var(--indigo);
	transform: translateY(-1px);
}

.qform .wpcf7-radio input:checked + .wpcf7-list-item-label,
.qform .types input:checked + span {
	background: var(--indigo);
	border-color: var(--indigo);
	color: #ffffff;
}

/* Urgent Checkbox */
.qform .wpcf7-checkbox,
.qform .urgent {
	margin-top: 18px;
	text-transform: none;
	letter-spacing: 0;
	font-size: 14px;
	display: block;
	padding: 14px 16px;
	border: 1.5px solid var(--line);
	border-radius: 8px;
	background: #ffffff;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.qform .wpcf7-checkbox:has(input:checked),
.qform .urgent:has(input:checked),
.qform .wpcf7-checkbox.on,
.qform .urgent.on {
	border-color: var(--crimson);
	background: #FFF5F5;
}

.qform .wpcf7-checkbox .wpcf7-list-item,
.qform .wpcf7-checkbox label,
.qform .urgent label {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	cursor: pointer;
	width: 100%;
}

.qform .wpcf7-checkbox input,
.qform .urgent input {
	margin: 0;
	width: 18px;
	height: 18px;
	accent-color: var(--crimson);
	flex: none;
	cursor: pointer;
}

.qform .wpcf7-checkbox .wpcf7-list-item-label,
.qform .urgent .t {
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	color: var(--indigo);
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* Submit Button */
.qform .wpcf7-submit,
.qform .send .btn {
	background: var(--crimson) !important;
	color: #ffffff !important;
	font-family: var(--display);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .02em;
	padding: 15px 30px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	margin-top: 18px;
	transition: background .15s ease, transform .15s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.qform .wpcf7-submit:hover,
.qform .send .btn:hover {
	transform: translateY(-1px);
	background: #d61820 !important;
}

.qform .trust {
	font-size: 13px;
	color: var(--ink-soft);
	margin-top: 14px;
}

.qform .trust b {
	color: var(--indigo);
	font-weight: 600;
}

.qform .privacy {
	font-size: 12px;
	color: var(--mist);
	margin-top: 14px;
	line-height: 1.4;
}

/* Office Card */
.office {
	position: sticky;
	top: 112px;
}

.ocard {
	background: var(--indigo);
	color: #ffffff;
	border-radius: 12px;
	padding: 26px 26px 24px;
	box-shadow: 0 20px 40px rgba(0, 43, 92, .18);
	position: relative;
	overflow: hidden;
}

.ocard::after {
	content: "";
	position: absolute;
	right: -60px;
	top: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .04);
	pointer-events: none;
}

.ocard .eyebrow {
	color: rgba(255, 255, 255, .85);
	font-family: var(--display);
	font-weight: 600;
    font-size: 12px;
    letter-spacing: .14em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.ocard h3 {
	color: #ffffff;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 18px;
}

.ocard dl {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
}

.ocard dt {
	font-family: var(--display);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .6);
	margin-bottom: 3px;
}

.ocard dd {
	font-size: 15px;
	color: #ffffff;
	line-height: 1.5;
	margin: 0;
}

.ocard dd a {
	color: #ffffff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .35);
	transition: border-color .15s;
}

.ocard dd a:hover {
	border-color: #ffffff;
}

.ocard dd .alt {
	color: rgba(255, 255, 255, .7);
	font-size: 13.5px;
}

.hours {
	display: grid;
	gap: 4px;
	font-size: 14.5px;
}

.hours div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.hours div:last-child {
	border-bottom: 0;
}

.hours .today {
	color: #ffffff;
	font-weight: 600;
}

.hours .today span:last-child {
	color: var(--crimson);
	font-family: var(--display);
	font-weight: 700;
}

.ocard .status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--display);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .02em;
	padding: 6px 11px;
	border-radius: 999px;
	margin-top: 8px;
	background: rgba(255, 255, 255, .12);
	color: #ffffff;
	white-space: nowrap;
}

.ocard .status i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	flex: none;
}

.ocard .status.open i {
	background: #3DD47F;
	box-shadow: 0 0 0 0 rgba(61, 212, 127, .5);
	animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
	0% {
		box-shadow: 0 0 0 0 rgba(61, 212, 127, .5);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(61, 212, 127, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(61, 212, 127, 0);
	}
}

/* Map */
.map {
	margin-top: 16px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--line);
	background: var(--frost);
	aspect-ratio: 4 / 3;
	position: relative;
}

.map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	filter: saturate(.85);
}

.map .dir {
	position: absolute;
	left: 12px;
	bottom: 12px;
	background: #ffffff;
	color: var(--indigo);
	font-family: var(--display);
	font-weight: 700;
	font-size: 12.5px;
	padding: 9px 14px;
	border-radius: 6px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	transition: transform .15s ease;
}

.map .dir:hover {
	transform: translateY(-1px);
}

.map .dir svg {
	width: 14px;
	height: 14px;
}

/* Media Queries */
@media (max-width: 980px) {
	.contact-us .wrap {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.office {
		position: static;
	}
}

@media (max-width: 720px) {
	.contact-us {
		padding: 48px 0;
	}

	.qform {
		padding: 22px 18px 20px;
	}

	.qform .row,
	.qform .wpcf7-form {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.qform .wpcf7-form > p:has([name="full-name"]),
	.qform .wpcf7-form > p:has([name="company"]),
	.qform .wpcf7-form > p:has([name="phone-number"]),
	.qform .wpcf7-form > p:has([name="email-address"]) {
		grid-column: 1 / -1;
	}
}
