/**
 * Contact page rebuild.
 *
 * Two parts:
 *  1) Hero — replaces the flat gray banner-general header with a branded
 *     soft-gradient hero (eyebrow + headline + lede + trust strip).
 *  2) Form container — the iframe that hosts the CRM form (we can't
 *     un-iframe it without breaking the CRM lead-capture pipeline) gets
 *     wrapped in a polished card with proper padding, brand-accent border,
 *     and enough height that its internal scrollbar never shows.
 *
 * Markup in banner-general.php branches on is_page('contact') and renders
 * the .gm-contact-hero block. The CRM iframe lives in the page body
 * content (entry-content) and gets styled here via body.page-contact
 * selectors.
 */

/* ===================================================================
   Hero
   =================================================================== */

.gm-contact-hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(3rem, 8vh, 6rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 7vh, 5rem);
	color: #0B0F19;
	background: #FFFFFF;
}

/* Soft brand-gradient backdrop with a subtle dot pattern for depth */
.gm-contact-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(ellipse 70% 60% at 50% 0%, rgba(1, 146, 239, 0.10) 0%, transparent 60%),
		radial-gradient(ellipse 50% 40% at 100% 100%, rgba(140, 194, 64, 0.08) 0%, transparent 65%),
		linear-gradient(180deg, #f4f8fc 0%, #ffffff 70%);
}
.gm-contact-hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(14, 112, 187, 0.08) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
	opacity: 0.6;
}

.gm-contact-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

/* Eyebrow */
.gm-contact-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #0e70bb;
	background: rgba(1, 146, 239, 0.08);
	border: 1px solid rgba(1, 146, 239, 0.22);
	border-radius: 100px;
	line-height: 1;
}
.gm-contact-hero-eyebrow::before {
	content: '';
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #0192ef;
	box-shadow: 0 0 0 4px rgba(1, 146, 239, 0.18);
}

/* Headline */
.gm-contact-hero-title {
	margin: 0 !important;
	padding: 0 !important;
	color: #0B0F19 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: clamp(2.25rem, 5.5vw, 3.75rem) !important;
	font-weight: 800 !important;
	line-height: 1.05 !important;
	letter-spacing: -0.025em !important;
	text-wrap: balance;
}

/* Lede */
.gm-contact-hero-lede {
	margin: 0 auto !important;
	padding: 0 !important;
	max-width: 580px;
	font-family: 'Inter', sans-serif !important;
	font-size: clamp(1rem, 1.4vw, 1.125rem) !important;
	line-height: 1.6 !important;
	color: #475569 !important;
	font-weight: 400 !important;
}

/* Trust / meta strip */
.gm-contact-hero-meta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 18px;
	margin-top: 0.5rem;
	font-family: 'Inter', sans-serif;
}
.gm-contact-hero-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: color 0.18s ease;
}
.gm-contact-hero-meta-item .gm-icon {
	color: #0e70bb;
	flex-shrink: 0;
}
.gm-contact-hero-meta-item strong {
	color: #0B0F19;
	font-weight: 600;
}
a.gm-contact-hero-meta-link:hover,
a.gm-contact-hero-meta-link:focus-visible {
	color: #0e70bb;
}
a.gm-contact-hero-meta-link:hover strong,
a.gm-contact-hero-meta-link:focus-visible strong {
	color: #0e70bb;
}
.gm-contact-hero-meta-divider {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(14, 112, 187, 0.25);
}

/* Hide the eye-rolling-by-default "Contact" heading that Simple Banner
   plugin or other content injectors might still emit while keeping
   accessibility content intact. */
body.page-contact .banner-general,
body[class*="contact"] .banner-general {
	display: none !important;
}

/* ===================================================================
   Form container — make the CRM iframe look like a deliberate card
   =================================================================== */

body.page-contact .entry-content,
body[class*="contact"] .entry-content {
	max-width: 760px;
	margin: -2rem auto 4rem;
	padding: 0 clamp(1rem, 3vw, 1.5rem);
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
}

/* The page body's iframe — give it a card wrap */
body.page-contact .entry-content iframe[src*="embed.geomedsdvo"],
body[class*="contact"] .entry-content iframe[src*="embed.geomedsdvo"] {
	width: 100% !important;
	min-height: 1700px !important; /* tall enough to hide the CRM's inner scrollbar */
	background: #ffffff !important;
	border: 1px solid rgba(14, 112, 187, 0.14) !important;
	border-radius: 16px !important;
	box-shadow:
		0 2px 4px rgba(14, 25, 53, 0.04),
		0 12px 32px -8px rgba(14, 112, 187, 0.10),
		0 24px 48px -16px rgba(14, 25, 53, 0.06) !important;
	display: block;
}

/* Strip any other section wrappers the entry-content might inherit */
body.page-contact .entry-content > p:empty,
body[class*="contact"] .entry-content > p:empty {
	display: none;
}

/* ===================================================================
   Responsive
   =================================================================== */

@media (max-width: 768px) {
	.gm-contact-hero {
		padding: 2.5rem 1rem 2.5rem;
	}
	.gm-contact-hero-title {
		font-size: 2rem !important;
		line-height: 1.1 !important;
	}
	.gm-contact-hero-lede {
		font-size: 0.95rem !important;
	}
	.gm-contact-hero-meta {
		flex-direction: column;
		gap: 10px;
	}
	.gm-contact-hero-meta-divider {
		display: none;
	}

	body.page-contact .entry-content,
	body[class*="contact"] .entry-content {
		margin-top: 1rem;
		padding: 0 0.75rem;
	}
	body.page-contact .entry-content iframe[src*="embed.geomedsdvo"],
	body[class*="contact"] .entry-content iframe[src*="embed.geomedsdvo"] {
		min-height: 1750px !important;
		border-radius: 12px !important;
	}
}
