/**
 * HCC Risk Adjustment Coding service page styles.
 */

/* -------------------------------------------------------------------------- */
/* Shared accents (page-scoped)                                               */
/* -------------------------------------------------------------------------- */


.dit-hcc-page .dit-btn--sm .wp-block-button__link {
	padding: 0.7rem 1.2rem;
	font-size: 0.9rem;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.dit-hcc-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: clamp(520px, 72vh, 680px);
	padding-block: clamp(3rem, 7vw, 5.5rem);
	background-color: #eef5f6;
	background-image: url("../assets/img/services-hero.png");
	background-repeat: no-repeat;
	background-position: center right;
	background-size: cover;
}

.dit-hcc-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(247, 251, 251, 0.97) 0%,
		rgba(247, 251, 251, 0.92) 34%,
		rgba(247, 251, 251, 0.55) 52%,
		rgba(247, 251, 251, 0.12) 68%,
		transparent 82%
	);
}

.dit-hcc-hero::after {
	content: "";
	position: absolute;
	right: -8%;
	bottom: -22%;
	width: min(54vw, 560px);
	height: min(34vw, 280px);
	background: var(--dit-teal);
	border-radius: 55% 45% 0 70% / 70% 40% 0 60%;
	opacity: 0.95;
	z-index: 0;
	pointer-events: none;
}

.dit-hcc-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	width: 100%;
	min-height: inherit;
}

.dit-hcc-hero__content {
	position: relative;
	z-index: 2;
	max-width: 38rem;
	opacity: 0;
	transform: translateY(1.1rem);
	animation: dit-hcc-hero-in 0.85s var(--dit-ease) forwards;
	animation-delay: 0.08s;
}

.dit-hcc-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1.1rem;
	color: var(--dit-teal);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.dit-hcc-hero__title {
	color: var(--dit-navy);
	font-size: clamp(2rem, 4.2vw, 3rem);
	line-height: 1.15;
	margin: 0 0 0.85rem;
	max-width: 16ch;
}

.dit-hcc-hero__subtitle {
	margin: 0 0 1rem;
	color: var(--dit-teal);
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 700;
	line-height: 1.35;
}

.dit-hcc-hero__lead {
	margin: 0 0 0.85rem;
	color: var(--dit-navy);
	font-size: clamp(1.02rem, 1.7vw, 1.12rem);
	font-weight: 600;
	line-height: 1.55;
	max-width: 34rem;
}

.dit-hcc-hero__text {
	margin: 0 0 1.75rem;
	color: var(--dit-muted);
	font-size: 1.02rem;
	line-height: 1.65;
	max-width: 36rem;
}

.dit-hcc-hero__actions {
	position: relative;
	z-index: 2;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.dit-hcc-hero__actions .dit-btn--outline .wp-block-button__link {
	background: var(--dit-white);
	box-shadow: none;
}

@keyframes dit-hcc-hero-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1023px) {
	.dit-hcc-hero {
		background-position: 72% center;
		background-size: cover;
		min-height: auto;
		padding-bottom: 3.5rem;
	}

	.dit-hcc-hero::before {
		background: linear-gradient(
			180deg,
			rgba(247, 251, 251, 0.97) 0%,
			rgba(247, 251, 251, 0.94) 58%,
			rgba(247, 251, 251, 0.82) 100%
		);
	}

	.dit-hcc-hero::after {
		width: 70vw;
		height: 110px;
		right: -28%;
		bottom: -18%;
		opacity: 0.45;
	}

	.dit-hcc-hero__title {
		max-width: 18ch;
	}

	.dit-hcc-hero__actions {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		max-width: 22rem;
	}

	.dit-hcc-hero__actions .wp-block-button,
	.dit-hcc-hero__actions .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 768px) {
	.dit-hcc-hero {
		background-position: 68% center;
		padding-block: 2.75rem 3rem;
	}

	.dit-hcc-hero__content {
		max-width: 100%;
	}

	.dit-hcc-hero__title {
		max-width: none;
		font-size: clamp(1.75rem, 6vw, 2.25rem);
	}

	.dit-hcc-pilot__media img,
	.dit-hcc-benefits__media img {
		object-fit: cover;
		width: 100%;
		max-height: 280px;
	}

	.dit-hcc-hero__actions {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.dit-hcc-hero {
		background-position: 60% center;
		padding-block: 2.25rem 2.5rem;
	}

	.dit-hcc-hero::before {
		background: linear-gradient(
			180deg,
			rgba(247, 251, 251, 0.98) 0%,
			rgba(247, 251, 251, 0.94) 55%,
			rgba(247, 251, 251, 0.88) 100%
		);
	}

	.dit-hcc-pilot__media img,
	.dit-hcc-benefits__media img {
		max-height: 220px;
		min-height: 180px;
	}
}

@media (max-width: 375px) {
	.dit-hcc-hero__subtitle {
		font-size: 1.05rem;
	}

	.dit-hcc-hero__text,
	.dit-hcc-hero__lead {
		font-size: 0.95rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dit-hcc-hero__content {
		animation: none;
		opacity: 1;
		transform: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Overview                                                                   */
/* -------------------------------------------------------------------------- */

.dit-hcc-overview {
	background: var(--dit-white);
}

.dit-hcc-overview__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: stretch;
	width: 100%;
}

.dit-hcc-overview__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: none;
	min-width: 0;
}

.dit-hcc-overview .dit-section__title {
	max-width: 18ch;
}

.dit-hcc-overview__media {
	position: relative;
	align-self: stretch;
	margin: 0 !important;
	min-height: 28rem;
	height: 100%;
	border-radius: 20px;
	overflow: hidden;
	box-shadow:
		0 20px 44px rgba(11, 42, 74, 0.12),
		0 0 0 1px rgba(13, 115, 119, 0.06);
}

.dit-hcc-overview__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 28%;
	background: linear-gradient(180deg, transparent 0%, rgba(11, 42, 74, 0.18) 100%);
	pointer-events: none;
	z-index: 1;
}

.dit-hcc-overview__media.wp-block-image,
.dit-hcc-overview figure.dit-hcc-overview__media {
	margin: 0 !important;
}

.dit-hcc-overview__media img,
.dit-hcc-overview__media.wp-block-image img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	min-height: 0;
	object-fit: cover;
	object-position: center 25%;
}

@media (max-width: 1023px) {
	.dit-hcc-overview__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 1.75rem;
	}

	.dit-hcc-overview__media {
		min-height: 24rem;
	}
}

@media (max-width: 900px) {
	.dit-hcc-overview__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.dit-hcc-overview__media {
		order: -1;
		min-height: 16rem;
		height: auto;
		aspect-ratio: 16 / 10;
	}

	.dit-hcc-overview .dit-section__title {
		max-width: none;
	}
}

@media (max-width: 480px) {
	.dit-hcc-overview__media {
		min-height: 14rem;
		aspect-ratio: 4 / 3;
		border-radius: 16px;
	}
}

/* -------------------------------------------------------------------------- */
/* Capabilities                                                               */
/* -------------------------------------------------------------------------- */

.dit-hcc-capabilities {
	background: #f5f8f9;
}

.dit-hcc-capabilities .dit-section__title {
	max-width: 18ch;
}

.dit-hcc-capabilities .dit-hcc-cap-cards,
.dit-hcc-cap-cards {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	/* Match HEDIS / QA capability card spacing */
	gap: 1.5rem !important;
	row-gap: 1.5rem !important;
	column-gap: 1.5rem !important;
	margin-top: 2rem;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
	align-items: stretch;
}

.dit-hcc-cap-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 1.65rem 1.45rem 1.5rem;
	background: var(--dit-white);
	border: 1px solid rgba(13, 115, 119, 0.08);
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(11, 42, 74, 0.06);
	transition:
		transform 0.35s var(--dit-ease),
		box-shadow 0.35s ease,
		border-color 0.35s ease,
		background 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
	.dit-hcc-cap-card:hover {
		transform: translateY(-6px);
		border-color: rgba(13, 115, 119, 0.26);
		background: linear-gradient(180deg, #ffffff 0%, #f4fbfb 100%);
		box-shadow:
			0 22px 46px rgba(11, 42, 74, 0.12),
			0 8px 18px rgba(13, 115, 119, 0.1);
	}
}

.dit-hcc-cap-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.15rem;
}

.dit-hcc-cap-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgba(13, 115, 119, 0.1);
	color: var(--dit-teal);
	flex-shrink: 0;
}

.dit-hcc-cap-card__index {
	color: rgba(20, 145, 155, 0.35);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
}

.dit-hcc-cap-card__title {
	margin: 0 0 0.45rem;
	color: var(--dit-navy);
	font-size: 1.15rem;
	line-height: 1.3;
}

.dit-hcc-cap-card__subtitle {
	margin: 0 0 0.75rem;
	color: var(--dit-teal);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
}

.dit-hcc-cap-card__text {
	margin: 0;
	color: var(--dit-muted);
	font-size: 0.98rem;
	line-height: 1.6;
}

@media (max-width: 1100px) and (min-width: 701px) {
	.dit-hcc-capabilities .dit-hcc-cap-cards,
	.dit-hcc-cap-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem !important;
		row-gap: 1.5rem !important;
		column-gap: 1.5rem !important;
	}
}

@media (max-width: 700px) {
	.dit-hcc-capabilities .dit-hcc-cap-cards,
	.dit-hcc-cap-cards {
		grid-template-columns: 1fr;
		gap: 1.25rem !important;
		row-gap: 1.25rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dit-hcc-cap-card,
	.dit-hcc-cap-card:hover {
		transform: none;
		transition: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Benefits — dark panel (aligned with HEDIS / QA)                            */
/* -------------------------------------------------------------------------- */

.dit-hcc-benefits {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--dit-navy);
}

.dit-hcc-benefits::before {
	content: "";
	position: absolute;
	top: -20%;
	right: -12%;
	width: min(48vw, 420px);
	height: min(48vw, 420px);
	background: radial-gradient(circle, rgba(13, 115, 119, 0.28) 0%, rgba(13, 115, 119, 0) 70%);
	pointer-events: none;
	z-index: 0;
}

.dit-hcc-benefits__panel {
	position: relative;
	z-index: 1;
	width: 100%;
}

.dit-hcc-benefits__header {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.55fr);
	gap: clamp(1.25rem, 3vw, 2.5rem);
	align-items: end;
	margin-bottom: 2rem;
}

.dit-hcc-benefits__copy .dit-section__title {
	max-width: 16ch;
}

.dit-hcc-benefits__media {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.dit-hcc-benefits__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
	max-height: 220px;
	object-fit: cover;
}

.dit-hcc-benefit-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.35rem;
}

.dit-hcc-benefit {
	padding: 1.45rem 1.25rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--dit-ease);
}

.dit-hcc-benefit:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(154, 213, 216, 0.35);
	transform: translateY(-3px);
}

.dit-hcc-benefit__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: rgba(13, 115, 119, 0.35);
	color: #9ad5d8;
}

.dit-hcc-benefit__title {
	margin: 0 0 0.55rem;
	color: var(--dit-white);
	font-size: 1.05rem;
	line-height: 1.35;
}

.dit-hcc-benefit__text {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
	line-height: 1.55;
}

@media (max-width: 1100px) {
	.dit-hcc-benefit-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.dit-hcc-benefits__header {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.dit-hcc-benefits__media {
		order: -1;
		max-width: 320px;
	}
}

@media (max-width: 600px) {
	.dit-hcc-benefit-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dit-hcc-benefit:hover {
		transform: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Free pilot — aligned with HEDIS / QA                                       */
/* -------------------------------------------------------------------------- */

.dit-hcc-pilot {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #f0f4f5;
}

.dit-hcc-pilot::before {
	content: "";
	position: absolute;
	right: -12%;
	bottom: -35%;
	width: min(48vw, 420px);
	height: min(40vw, 320px);
	background: rgba(13, 115, 119, 0.12);
	border-radius: 55% 45% 60% 40% / 50% 55% 45% 50%;
	z-index: 0;
	pointer-events: none;
}

.dit-hcc-pilot__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: center;
	width: 100%;
}

.dit-hcc-pilot__content .dit-section__title {
	max-width: 16ch;
}

.dit-hcc-pilot__note {
	margin-top: 0.35rem;
	padding: 1rem 1.15rem;
	border-left: 3px solid var(--dit-teal);
	border-radius: 0 12px 12px 0;
	background: var(--dit-white);
	color: var(--dit-navy);
	font-weight: 600;
}

.dit-hcc-pilot__actions {
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.dit-hcc-pilot__visual {
	position: relative;
}

.dit-hcc-pilot__media {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(11, 42, 74, 0.1);
}

.dit-hcc-pilot__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	object-fit: cover;
	filter: saturate(0.92);
}

.dit-hcc-pilot__badge {
	position: absolute;
	left: -0.85rem;
	bottom: 1.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	height: 5.5rem;
	border-radius: 50%;
	background: var(--dit-teal);
	color: var(--dit-white);
	box-shadow: 0 0 0 8px rgba(13, 115, 119, 0.16), 0 16px 32px rgba(13, 115, 119, 0.35);
	z-index: 2;
}

.dit-hcc-pilot__badge-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
}

.dit-hcc-pilot__badge-label {
	margin-top: 0.15rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

@media (max-width: 900px) {
	.dit-hcc-pilot__grid {
		grid-template-columns: 1fr;
	}

	.dit-hcc-pilot__media img {
		min-height: 220px;
	}

	.dit-hcc-pilot__badge {
		left: 0.75rem;
		bottom: 0.85rem;
		width: 4.75rem;
		height: 4.75rem;
	}

	.dit-hcc-pilot__badge-num {
		font-size: 1.4rem;
	}

	.dit-hcc-pilot__actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 22rem;
	}

	.dit-hcc-pilot__actions .wp-block-button,
	.dit-hcc-pilot__actions .wp-block-button__link {
		width: 100%;
		text-align: center;
	}
}

/* -------------------------------------------------------------------------- */
/* Related services                                                           */
/* -------------------------------------------------------------------------- */

.dit-hcc-related {
	background: var(--dit-white);
}

.dit-hcc-related .dit-section__title {
	max-width: 18ch;
}

.dit-hcc-related-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.35rem;
	margin-top: 2rem;
}

.dit-hcc-related-card {
	display: flex;
	flex-direction: column;
	padding: 1.65rem 1.45rem 1.5rem;
	background: #f7fbfb;
	border: 1px solid rgba(13, 115, 119, 0.1);
	border-radius: 16px;
	border-left: 3px solid var(--dit-teal);
	transition: transform 0.3s var(--dit-ease), box-shadow 0.3s ease;
}

.dit-hcc-related-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(11, 42, 74, 0.08);
}

.dit-hcc-related-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: rgba(13, 115, 119, 0.1);
	color: var(--dit-teal);
	border: 1px solid transparent;
}

.dit-hcc-related-card__title {
	margin: 0 0 0.55rem;
	color: var(--dit-navy);
	font-size: 1.1rem;
	line-height: 1.3;
}

.dit-hcc-related-card__text {
	margin: 0 0 1.15rem;
	color: var(--dit-muted);
	font-size: 0.98rem;
	line-height: 1.55;
	flex: 1 1 auto;
}

.dit-hcc-related-card__link {
	color: var(--dit-teal);
	font-weight: 700;
	text-decoration: none;
	letter-spacing: 0.01em;
}

.dit-hcc-related-card__link:hover,
.dit-hcc-related-card__link:focus-visible {
	color: var(--dit-teal-mid);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (max-width: 900px) {
	.dit-hcc-related-cards {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dit-hcc-related-card:hover {
		transform: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Insights                                                                   */
/* -------------------------------------------------------------------------- */

.dit-hcc-insights {
	background: #f5f8f9;
}

.dit-hcc-insights__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	margin-bottom: 2rem;
}

.dit-hcc-insights__copy {
	flex: 1 1 18rem;
	max-width: 40rem;
}

.dit-hcc-insights__copy .dit-section__title {
	max-width: 18ch;
}

.dit-hcc-insights__cta {
	flex: 0 0 auto;
}

.dit-hcc-insight-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.35rem;
}

.dit-hcc-insight-card {
	display: flex;
	flex-direction: column;
	background: var(--dit-white);
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(13, 115, 119, 0.08);
	box-shadow: 0 10px 28px rgba(11, 42, 74, 0.05);
}

.dit-hcc-insight-card__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--dit-mist);
}

.dit-hcc-insight-card__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var(--dit-ease);
}

.dit-hcc-insight-card:hover .dit-hcc-insight-card__thumb img {
	transform: scale(1.04);
}

.dit-hcc-insight-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 1.25rem 1.2rem 1.35rem;
}

.dit-hcc-insight-card__date {
	margin: 0 0 0.55rem;
	color: var(--dit-muted);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.dit-hcc-insight-card__title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.4;
	flex: 1 1 auto;
}

.dit-hcc-insight-card__title a {
	color: var(--dit-navy);
	text-decoration: none;
}

.dit-hcc-insight-card__title a:hover,
.dit-hcc-insight-card__title a:focus-visible {
	color: var(--dit-teal);
}

.dit-hcc-insight-card__more {
	color: var(--dit-teal);
	font-weight: 700;
	font-size: 0.92rem;
	text-decoration: none;
}

.dit-hcc-insight-card__more:hover,
.dit-hcc-insight-card__more:focus-visible {
	color: var(--dit-teal-mid);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (max-width: 900px) {
	.dit-hcc-insight-cards {
		grid-template-columns: 1fr;
	}

	.dit-hcc-insights__header {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dit-hcc-insight-card:hover .dit-hcc-insight-card__thumb img {
		transform: none;
	}
}

/* -------------------------------------------------------------------------- */
/* Connect / form                                                             */
/* -------------------------------------------------------------------------- */

.dit-hcc-connect.dit-service-inquiry,
.dit-hcc-connect {
	position: relative;
	isolation: isolate;
	overflow: clip;
	background:
		linear-gradient(105deg, rgba(13, 115, 119, 0.94) 0%, rgba(11, 42, 74, 0.88) 55%, rgba(11, 42, 74, 0.78) 100%),
		url("../assets/img/pilot.jpg") left center / cover no-repeat;
	padding-block: clamp(2.75rem, 5.5vw, 4.25rem);
}

.dit-hcc-connect::before {
	content: "";
	position: absolute;
	left: -10%;
	bottom: -28%;
	width: min(52vw, 480px);
	height: min(38vw, 300px);
	background: rgba(255, 255, 255, 0.08);
	border-radius: 55% 45% 0 70% / 70% 40% 0 60%;
	z-index: 0;
	pointer-events: none;
}

.dit-hcc-connect__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.25rem, 3vw, 2.25rem);
	align-items: center;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.dit-hcc-connect__grid > * {
	min-width: 0;
	max-width: 100%;
}

.dit-hcc-connect .wp-block-shortcode {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
}

.dit-hcc-connect__copy {
	max-width: 28rem;
}

.dit-hcc-connect__copy .dit-section__title {
	max-width: 14ch;
	color: var(--dit-white);
	font-size: clamp(1.65rem, 3vw, 2.15rem);
	margin-bottom: 0.85rem;
}

.dit-hcc-connect__copy .dit-section__text {
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 0.75rem;
	font-size: 0.98rem;
	line-height: 1.55;
}

.dit-hcc-connect__copy .dit-section__text:last-child {
	margin-bottom: 0;
}

.dit-hcc-form {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 1.15rem 1.2rem 1.25rem;
	background: var(--dit-white);
	border-radius: 14px;
	box-shadow: 0 16px 36px rgba(11, 42, 74, 0.16);
	overflow: hidden;
}

.dit-hcc-form *,
.dit-hcc-form *::before,
.dit-hcc-form *::after {
	box-sizing: border-box;
}

.dit-hcc-form__notice {
	margin: 0 0 0.85rem;
	padding: 0.7rem 0.85rem;
	border-radius: 8px;
	font-size: 0.88rem;
	line-height: 1.4;
}

.dit-hcc-form__notice--success {
	background: rgba(13, 115, 119, 0.1);
	color: var(--dit-navy);
	border: 1px solid rgba(13, 115, 119, 0.22);
}

.dit-hcc-form__notice--error {
	background: rgba(180, 45, 45, 0.08);
	color: #7a1f1f;
	border: 1px solid rgba(180, 45, 45, 0.22);
}

.dit-hcc-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem 0.75rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
}

.dit-hcc-form__field {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.28rem;
	min-width: 0;
	max-width: 100%;
	margin: 0;
}

.dit-hcc-form__field--full {
	grid-column: 1 / -1;
}

.dit-hcc-form__label {
	display: block;
	margin: 0;
	padding: 0;
	color: var(--dit-navy);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.25;
}

.dit-hcc-form__req {
	color: var(--dit-teal);
}

.dit-hcc-form input.dit-hcc-form__input,
.dit-hcc-form select.dit-hcc-form__select,
.dit-hcc-form textarea.dit-hcc-form__textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.5rem 0.7rem;
	min-height: 2.35rem;
	height: 2.35rem;
	border: 1px solid rgba(11, 42, 74, 0.14);
	border-radius: 8px;
	background-color: #f8fbfb;
	color: var(--dit-navy);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 400;
	line-height: 1.35;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dit-hcc-form select.dit-hcc-form__select {
	background-color: #f8fbfb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%230b2a4a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.75L6 6.25l4.5-4.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 0.7rem;
	padding-right: 2rem;
}

.dit-hcc-form input.dit-hcc-form__input:focus,
.dit-hcc-form select.dit-hcc-form__select:focus,
.dit-hcc-form textarea.dit-hcc-form__textarea:focus {
	outline: none;
	border-color: var(--dit-teal);
	background-color: var(--dit-white);
	box-shadow: 0 0 0 2px rgba(13, 115, 119, 0.14);
}

.dit-hcc-form textarea.dit-hcc-form__textarea {
	min-height: 4.75rem;
	height: auto;
	padding-top: 0.55rem;
	padding-bottom: 0.55rem;
	resize: vertical;
}

.dit-hcc-form__submit {
	--dit-btn-glow: rgba(13, 115, 119, 0.3);
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0.15rem 0 0;
	width: 100%;
	max-width: 100%;
	padding: 0.7rem 1.1rem;
	min-height: 2.55rem;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--dit-teal) 0%, #0a5f63 100%);
	color: var(--dit-white);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.dit-hcc-form__submit:hover,
.dit-hcc-form__submit:focus-visible {
	background: linear-gradient(135deg, var(--dit-navy) 0%, #0a3d5c 100%);
	color: var(--dit-white);
}

.dit-hcc-form__hp {
	position: absolute !important;
	left: -9999px !important;
	top: 0 !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

@media (max-width: 1023px) {
	.dit-hcc-connect__grid {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------- */
/* Block-editor conversion: explicit margins                                  */
/* These elements used to sit in Custom HTML blocks. As core blocks they live */
/* in flow-layout groups, so block-gap margins are reset here.                */
/* -------------------------------------------------------------------------- */

.dit-hcc-cap-card__top,
.dit-hcc-benefit__icon,
.dit-hcc-related-card__icon {
	margin-block-start: 0;
}

.dit-hcc-cap-card__icon,
.dit-hcc-cap-card__index,
.dit-hcc-benefit,
.dit-hcc-pilot__badge,
.dit-hcc-pilot__badge-num,
.dit-hcc-related-card,
.dit-hcc-related-card__link-wrap {
	margin-block: 0;
}
