/* Contact Us page template. */

.contact-card {
	max-width: 1100px;
	margin: 50px auto 0;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 20px 50px rgba(10, 34, 64, 0.08);
	padding: 40px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

/* --- Left: map + info blocks --- */
.contact-map {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	margin-bottom: 10px;
	background: rgba(10, 34, 64, 0.04);
}

.contact-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.contact-map-fallback {
	display: inline-block;
	margin-bottom: 20px;
	color: rgba(32, 40, 45, 0.55);
	text-decoration: underline;
}

.contact-info-list {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.contact-info-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.contact-info-icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: #0a2240;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-info-label {
	font-size: 13px;
	color: rgba(32, 40, 45, 0.55);
	margin-bottom: 4px;
}

.contact-info-text a {
	color: #0a2240;
	text-decoration: none;
}

.contact-info-text a:hover {
	text-decoration: underline;
}

/* --- Right: dark "Make an Appointment" form box --- */
.contact-card-right {
	background: #0a2240;
	border-radius: 12px;
	padding: 40px;
	color: #fff;
}

.contact-card-right h2 {
	color: #fff;
	margin-bottom: 8px;
}

.contact-form-subtext {
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 26px;
}

/* Generic container for whatever a form plugin's shortcode outputs —
 * plugins style their own inputs/buttons, this just keeps text and
 * links readable against the dark box and gives basic breathing room. */
.contact-form-shortcode {
	color: rgba(255, 255, 255, 0.85);
}

.contact-form-shortcode label {
	color: rgba(255, 255, 255, 0.85);
}

.contact-form-shortcode a {
	color: #c2d500;
}

.contact-form-admin-notice {
	color: rgba(255, 255, 255, 0.6);
	font-style: italic;
}

@media (max-width: 991px) {
	.contact-card {
		grid-template-columns: 1fr;
		padding: 24px;
	}
	.contact-card-right {
		padding: 30px;
	}
}

/* --- Global Offices --- */
.offices-heading {
	color: #0a2240;
	margin-bottom: 30px;
}

.offices-box {
	max-width: 1100px;
	margin: 0 auto;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(10, 34, 64, 0.1);
}

.offices-tabs {
	display: flex;
	background: #f7f7f7;
	border-bottom: 1px solid rgba(10, 34, 64, 0.08);
}

.offices-tab {
	flex: 1;
	border: none;
	background: none;
	cursor: pointer;
	padding: 22px 20px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: rgba(32, 40, 45, 0.4);
	text-align: left;
	position: relative;
	border-right: 1px solid rgba(10, 34, 64, 0.08);
}

.offices-tab:last-child {
	border-right: none;
}

.offices-tab.is-active {
	color: #0a66c2;
	background: #fff;
}

.offices-tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 5px;
	background: #c2d500;
}

.offices-panel {
	position: relative;
	overflow: hidden;
	background: #0a2240;
}

.offices-panel .media-bg img {
	object-fit: cover;
}

.offices-panel-inner {
	position: relative;
	z-index: 1;
	padding: 50px 40px;
}

.offices-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 32px;
}

.office-item h3 {
	color: #fff;
	margin-bottom: 12px;
	letter-spacing: 0.5px;
}

.office-company {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	margin: 0 0 6px;
	line-height: 1.5;
}

.office-address {
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 6px;
	line-height: 1.5;
}

.office-email {
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	text-decoration: none;
}

.office-email:hover {
	color: #c2d500;
}

@media (max-width: 767px) {
	.offices-tabs {
		flex-direction: column;
	}
	.offices-tab {
		text-align: center;
		padding: 16px;
	}
	.offices-panel-inner {
		padding: 36px 24px;
	}
	.offices-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
}
