/* WordPress / Elementor / CF7 overlays — keep original HTML design */

#page,
.site,
#content,
.site-main,
.elementor-location-header,
#masthead {
	margin: 0;
	padding: 0;
	max-width: none;
	background: transparent;
}

.bhf-hidden {
	display: none !important;
}

.elementor-section,
.elementor-container,
.elementor-widget-wrap,
.elementor-widget-html,
.elementor-widget-html .elementor-widget-container {
	margin: 0;
	max-width: none;
}

.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-section .elementor-container {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.elementor-column-gap-no > .elementor-column > .elementor-element-populated,
.elementor-column-gap-default > .elementor-column > .elementor-element-populated,
.elementor-column-gap-narrow > .elementor-column > .elementor-element-populated {
	padding: 0 !important;
}

.elementor-widget:not(:last-child) {
	margin-bottom: 0 !important;
}

.site-header,
.site-footer,
.hello-elementor header.site-header,
#site-header,
.page-header {
	display: none !important;
}

.hfe-site-header,
.hfe-site-footer,
header.hfe-header,
footer.hfe-footer {
	display: block !important;
}

.page-title,
.entry-title,
h1.entry-title {
	display: none !important;
}

/* CF7 inside original form shells */
.hero-form {
	align-self: flex-start;
	padding: 20px 22px 22px;
	box-sizing: border-box;
}

.hero-form .wpcf7,
.hero-form .wpcf7-form {
	margin: 0;
	width: 100%;
}

.hero-form .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hero-form .hidden-fields-container {
	display: none !important;
}

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

.hero-form .wpcf7-form > label,
.hero-form .wpcf7-form .form-row > label {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 6px;
	margin: 0;
	width: 100%;
	box-sizing: border-box;
}

.hero-form .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.hero-form .wpcf7-form .form-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	width: 100%;
}

.hero-form .wpcf7-form .form-row > label {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
}

.hero-form input.wpcf7-submit,
.hero-form .wpcf7-submit {
	width: 100%;
	margin: 2px 0 0;
	border-radius: 9999px;
	padding: 10px;
	font-size: 14px;
	font-weight: 700;
	background-color: #346c95;
	border: none;
	color: #ffffff;
	height: 40px;
	cursor: pointer;
	flex-shrink: 0;
}

.hero-form input.wpcf7-submit:hover,
.hero-form .wpcf7-submit:hover {
	background-color: #2c5c80;
}

.hero-form .wpcf7-not-valid-tip {
	font-size: 11px;
	color: #fff;
	margin: 4px 0 0;
}

.hero-form .wpcf7-response-output {
	font-size: 11px;
	color: #fff;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	min-height: 0 !important;
}

.hero-form .wpcf7-response-output[aria-hidden="true"] {
	display: none !important;
}

.contact-form-wrapper .wpcf7 {
	display: block;
	width: 100%;
	max-width: 100%;
}

.contact-form-wrapper .wpcf7-form.main-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
	margin: 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.contact-form-wrapper .wpcf7-form.main-form > div {
	min-width: 0;
	width: 100%;
}

.contact-form-wrapper .wpcf7-form.main-form p {
	margin: 0;
}

.contact-form-wrapper .wpcf7-form.main-form label {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	margin: 0;
}

.contact-form-wrapper .wpcf7-form.main-form .full-width,
.contact-form-wrapper .wpcf7-form.main-form .full-width p {
	grid-column: 1 / -1;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.contact-form-wrapper .wpcf7-form.main-form input[type="text"],
.contact-form-wrapper .wpcf7-form.main-form input[type="email"],
.contact-form-wrapper .wpcf7-form.main-form input[type="tel"],
.contact-form-wrapper .wpcf7-form.main-form textarea {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.contact-form-wrapper input.wpcf7-submit,
.contact-form-wrapper .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	border-radius: 9999px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: none;
	background-color: #256f9e;
	color: #ffffff;
}

.contact-form-wrapper .wpcf7-response-output {
	grid-column: 1 / -1;
	font-size: 14px;
}

.tc-bar {
	cursor: pointer;
}

.tc-bar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tc-bar-icon {
	font-size: 18px;
	line-height: 1;
	font-weight: 400;
}

.tc-panel {
	background: #f4f7fa;
	color: #0f172a;
	padding: 28px 0 40px;
}

.tc-content h3 {
	font-size: 16px;
	font-weight: 800;
	margin: 20px 0 8px;
	color: #0f172a;
}

.tc-content h3:first-child {
	margin-top: 0;
}

.tc-content p {
	font-size: 14px;
	line-height: 1.65;
	color: #334155;
	margin: 0 0 8px;
	max-width: none;
}

.tc-content ul {
	margin: 0 0 10px 18px;
	padding: 0;
	list-style: disc;
}

.tc-content li {
	font-size: 14px;
	line-height: 1.65;
	color: #334155;
	margin: 0 0 4px;
}

.tc-content .tc-signoff {
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 2px;
}

@media (max-width: 600px) {
	.hero-form {
		padding: 4px 5px 6px;
	}
	.hero-form .wpcf7-form {
		gap: 4px;
	}
	.hero-form .wpcf7-form > label,
	.hero-form .wpcf7-form .form-row > label {
		gap: 2px;
	}
	.hero-form .wpcf7-form .form-row {
		gap: 4px;
	}
	.hero-form input.wpcf7-submit,
	.hero-form .wpcf7-submit {
		height: auto;
		padding: 2px;
		font-size: 5px;
		margin-top: 1px;
	}
	.contact-form-wrapper .wpcf7-form.main-form {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}
