/**
 * Site fixes: homepage hero form (mobile), comments off, blog header.
 */

/* ---- Hide comments everywhere ---- */
.comments_wrap,
.comments_list_wrap,
#comments,
.comment-respond,
.show_comments_button,
.post_meta .post_meta_item.post_meta_comments,
.comments_in_title,
a[href*="respond"],
.single .post_meta .comments_in_title {
	display: none !important;
}

/* ---- Date / time fake placeholders ---- */
.hero-form .bcs-field-wrap {
	position: relative !important;
	display: block !important;
	width: 100% !important;
}

.hero-form .bcs-field-wrap[data-placeholder]::before {
	content: attr(data-placeholder);
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	color: #777;
	font-size: 14px;
	line-height: 1.4;
	pointer-events: none;
	z-index: 3;
	white-space: nowrap;
}

.hero-form .bcs-field-wrap.has-value[data-placeholder]::before,
.hero-form .bcs-field-wrap.is-focused[data-placeholder]::before {
	opacity: 0;
	visibility: hidden;
}

.hero-form .bcs-field-wrap:not(.has-value):not(.is-focused) input[type="date"]::-webkit-datetime-edit,
.hero-form .bcs-field-wrap:not(.has-value):not(.is-focused) input[type="time"]::-webkit-datetime-edit {
	color: transparent !important;
}

.hero-form .bcs-field-wrap input[type="date"],
.hero-form .bcs-field-wrap input[type="time"] {
	position: relative;
	z-index: 1;
	min-height: 44px;
}

/* ---- Homepage hero form — mobile ---- */
@media (max-width: 768px) {
	.hero {
		padding-bottom: 8px !important;
		overflow: visible !important;
	}

	.hero-slide.active {
		padding-left: 16px !important;
		padding-right: 16px !important;
		padding-bottom: 20px !important;
	}

	/* Card inset — not edge-to-edge */
	.hero .hero-form,
	.hero-form {
		position: relative !important;
		top: auto !important;
		right: auto !important;
		left: auto !important;
		bottom: auto !important;
		transform: none !important;
		display: block !important;
		float: none !important;
		width: calc(100% - 32px) !important;
		max-width: 420px !important;
		margin: 0 auto 24px !important;
		padding: 16px !important;
		border-radius: 8px !important;
		box-sizing: border-box !important;
		background: rgba(255, 255, 255, 0.98) !important;
		box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28) !important;
	}

	.hero-form .wpcf7,
	.hero-form .wpcf7-form,
	.hero-form .form-style-8 {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}

	.hero-form .form-style-8 .columns_wrap {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: stretch !important;
		gap: 10px !important;
		margin: 0 !important;
		padding: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.hero-form .form-style-8 .columns_wrap > [class*="column-"],
	.hero-form .form-style-8 .columns_wrap > .column-1_1,
	.hero-form .form-style-8 .columns_wrap > .column-1_2 {
		float: none !important;
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}

	/* Date + time side by side */
	.hero-form .form-style-8 .columns_wrap > .column-1_2 {
		width: calc(50% - 5px) !important;
		max-width: calc(50% - 5px) !important;
		flex: 0 0 calc(50% - 5px) !important;
	}

	.hero-form .form-style-8 p {
		margin: 0 !important;
	}

	.hero-form .form-style-8 .columns_wrap + .columns_wrap,
	.hero-form .form-style-8 .columns_wrap {
		margin-bottom: 0 !important;
	}

	.hero-form .form-style-8 .style-line {
		margin-bottom: 10px !important;
	}

	.hero-form .form-style-8 .style-line .line {
		display: none !important;
	}

	.hero-form input[type="text"],
	.hero-form input[type="email"],
	.hero-form input[type="tel"],
	.hero-form input[type="date"],
	.hero-form input[type="time"],
	.hero-form input[type="number"],
	.hero-form select,
	.hero-form textarea {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box !important;
		font-size: 16px !important;
		padding: 11px 12px !important;
		border: 1px solid #d5d5d5 !important;
		border-radius: 4px !important;
		background: #fff !important;
		color: #222 !important;
	}

	.hero-form .bcs-field-wrap[data-placeholder]::before {
		font-size: 16px;
		left: 12px;
	}

	.hero-form textarea {
		min-height: 52px !important;
		height: 52px !important;
		resize: vertical;
	}

	.hero-form input[type="submit"],
	.hero-form .wpcf7-submit {
		width: 100% !important;
		min-height: 46px !important;
		margin-top: 6px !important;
	}

	.hero-form .wpcf7-spinner {
		margin: 0 !important;
	}
}

@media (max-width: 480px) {
	.hero .hero-form,
	.hero-form {
		width: calc(100% - 28px) !important;
		margin: 0 auto 20px !important;
		padding: 14px !important;
	}

	.hero-form .form-style-8 .columns_wrap {
		gap: 8px !important;
	}

	.hero-form .form-style-8 .columns_wrap > .column-1_2 {
		width: calc(50% - 4px) !important;
		max-width: calc(50% - 4px) !important;
		flex: 0 0 calc(50% - 4px) !important;
	}

	/* Keep calendar / clock icons usable on narrow fields */
	.hero-form input[type="date"],
	.hero-form input[type="time"] {
		padding-right: 8px !important;
		padding-left: 10px !important;
	}
}
