/* MedLab Contact page widgets */

.mlc-hero {
	--mlc-hero-from: #003958;
	--mlc-hero-to: #004a73;
	--mlc-hero-accent: #f58220;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42vh;
	padding: clamp(48px, 8vw, 96px) 24px;
	color: #fff;
	background:
		radial-gradient(1200px 480px at 85% 10%, rgba(0, 112, 173, 0.45), transparent 60%),
		radial-gradient(900px 420px at 10% 90%, rgba(245, 130, 32, 0.22), transparent 55%),
		linear-gradient(135deg, var(--mlc-hero-from), var(--mlc-hero-to) 55%, #0070ad);
	text-align: center;
}

.mlc-hero__atmosphere {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at center, #000 35%, transparent 78%);
	pointer-events: none;
	animation: mlc-grid-drift 18s linear infinite;
}

.mlc-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 720px;
	margin: 0 auto;
}

.mlc-hero__brand {
	margin: 0 0 14px;
	font-size: clamp(1.6rem, 3.4vw, 2.4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	animation: mlc-rise 0.7s ease both;
}

.mlc-hero__title {
	margin: 0 0 14px;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	font-weight: 600;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.92);
	animation: mlc-rise 0.75s ease 0.08s both;
}

.mlc-hero__subtitle {
	margin: 0 auto 28px;
	max-width: 34em;
	font-size: 1.02rem;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.78);
	animation: mlc-rise 0.8s ease 0.14s both;
}

.mlc-hero__actions {
	animation: mlc-rise 0.85s ease 0.2s both;
}

.mlc-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	padding: 14px 28px;
	border-radius: 12px;
	background: var(--mlc-hero-accent);
	color: #1a1a1a;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(245, 130, 32, 0.35);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.mlc-hero__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(245, 130, 32, 0.42);
	background: #ff8f2c;
	color: #1a1a1a;
}

/* Contact cards */
.mlc-cards {
	--mlc-card-accent: #004a73;
	--mlc-card-soft: #e8f2f8;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.mlc-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 22px 20px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid rgba(0, 74, 115, 0.08);
	color: inherit;
	text-decoration: none;
	box-shadow: 0 8px 28px rgba(0, 74, 115, 0.05);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
	animation: mlc-rise 0.65s ease both;
	animation-delay: var(--mlc-delay, 0s);
}

.mlc-card:hover {
	transform: translateY(-4px);
	border-color: rgba(0, 74, 115, 0.18);
	box-shadow: 0 16px 36px rgba(0, 74, 115, 0.1);
}

.mlc-card__icon {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--mlc-card-soft);
	color: var(--mlc-card-accent);
}

.mlc-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.mlc-card__title {
	font-size: 0.82rem;
	color: #6b7280;
}

.mlc-card__text {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--mlc-card-accent);
	line-height: 1.4;
	word-break: break-word;
}

.mlc-card__hint {
	font-size: 0.78rem;
	color: #9ca3af;
	line-height: 1.5;
}

/* Form layout */
.mlc-form-layout {
	display: grid;
	gap: 28px;
	align-items: stretch;
}

.mlc-form-layout--split {
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.mlc-form-panel {
	padding: clamp(22px, 3vw, 36px);
	border-radius: 22px;
	background: #fff;
	border: 1px solid rgba(0, 74, 115, 0.08);
	box-shadow: 0 12px 40px rgba(0, 74, 115, 0.06);
	animation: mlc-rise 0.7s ease both;
}

.mlc-form-panel__title {
	margin: 0 0 8px;
	font-size: clamp(1.25rem, 2vw, 1.55rem);
	font-weight: 800;
	color: #004a73;
}

.mlc-form-panel__subtitle {
	margin: 0 0 22px;
	color: #6b7280;
	line-height: 1.7;
}

.mlc-form-panel__body .mlcf-form-shell {
	margin-top: 0;
	margin-bottom: 0;
	max-width: none;
}

.mlc-form-panel__empty {
	margin: 0;
	padding: 18px;
	border-radius: 12px;
	background: #f8fafc;
	color: #64748b;
}

.mlc-aside {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 3vw, 36px);
	border-radius: 22px;
	color: #fff;
	background:
		radial-gradient(500px 240px at 100% 0%, rgba(0, 112, 173, 0.55), transparent 60%),
		linear-gradient(160deg, #003958, #004a73 70%);
	box-shadow: 0 12px 40px rgba(0, 57, 88, 0.22);
	animation: mlc-rise 0.75s ease 0.08s both;
}

.mlc-aside__glow {
	position: absolute;
	inset: auto -20% -30% auto;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(245, 130, 32, 0.28);
	filter: blur(8px);
	pointer-events: none;
}

.mlc-aside__title,
.mlc-aside__text,
.mlc-aside__list,
.mlc-aside__phone {
	position: relative;
	z-index: 1;
}

.mlc-aside__title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	font-weight: 800;
}

.mlc-aside__text {
	margin: 0 0 20px;
	line-height: 1.8;
	color: rgba(255, 255, 255, 0.82);
}

.mlc-aside__list {
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 12px;
}

.mlc-aside__list li {
	position: relative;
	padding-inline-start: 26px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
}

.mlc-aside__list li::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #f58220;
	box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.2);
}

.mlc-aside__phone {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff;
	text-decoration: none;
	backdrop-filter: blur(8px);
	transition: background 0.25s ease, transform 0.25s ease;
}

.mlc-aside__phone:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-2px);
	color: #fff;
}

.mlc-aside__phone span {
	font-size: 0.8rem;
	opacity: 0.8;
}

.mlc-aside__phone strong {
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

@keyframes mlc-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes mlc-grid-drift {
	from { background-position: 0 0, 0 0; }
	to { background-position: 48px 48px, 48px 48px; }
}

@media (max-width: 1100px) {
	.mlc-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mlc-form-layout--split {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.mlc-cards {
		grid-template-columns: 1fr;
	}

	.mlc-hero {
		min-height: 36vh;
		padding: 56px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mlc-hero__atmosphere,
	.mlc-hero__brand,
	.mlc-hero__title,
	.mlc-hero__subtitle,
	.mlc-hero__actions,
	.mlc-card,
	.mlc-form-panel,
	.mlc-aside {
		animation: none !important;
	}
}
