/* ==========================================================================
   İLETİŞİM SAYFASI — sakin, hizalı yerleşim (inc/contact-page-premium.php)
   Yalnızca iletişim sayfasında yüklenir; ana stil dosyasına dokunmaz.
   İlkeler: açık zemin, tek koyu öğe (form), ince çizgiler, az gölge, animasyon yok,
   tüm bölümlerde aynı 8px tabanlı aralık ve aynı kolon ızgarası.
   Geri alma: contact-page.php içinde mc_render_contact_page() başındaki premium
   çağrısını kaldırmak eski yerleşimi geri getirir.
   ========================================================================== */

.mcx-page {
	/* Renkler sitenin token'larından: lacivert, kum/bronz vurgu, soğuk yüzey. */
	--mcx-navy: var(--mc-brand-navy, #0a2a5c);
	--mcx-ink: #1d2a44;
	--mcx-muted: var(--mc-muted-text, #5c6d88);
	--mcx-line: var(--mc-line, #dfe6f2);
	--mcx-surface: var(--mc-surface, #f2f6ff);
	--mcx-accent: var(--mc-accent, #2a7fff);
	--mcx-sand: var(--mc-sand, #6fb6ea);
	--mcx-sand-text: var(--mc-sand-text, #1a66a3);
	--mcx-sand-light: var(--mc-sand-light, #a9d8ff);
	--mcx-wa: #1f9d63;
	--mcx-radius: var(--mc-radius, 14px);
	--mcx-gap: clamp(24px, 3.5vw, 56px);
	--mcx-pad: clamp(56px, 6vw, 88px);

	background: #fff;
	color: var(--mcx-ink);
	overflow-x: clip;
}

.mcx-page *,
.mcx-page *::before,
.mcx-page *::after {
	box-sizing: border-box;
}

.mcx-page a:focus-visible,
.mcx-page button:focus-visible,
.mcx-page summary:focus-visible {
	outline: 3px solid rgba(var(--mc-accent-rgb), 0.45);
	outline-offset: 3px;
}

/* --- Ortak -------------------------------------------------------------- */
.mcx-eyebrow {
	margin: 0 0 12px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mcx-sand-text);
}

/* Bölüm başlığı: sitenin diğer sayfalarıyla aynı ölçü, ağırlık ve altın ayraç
   (--mc-fs-h2, 800, -0.022em, ince kum çizgi). */
.mcx-h2 {
	margin: 0 0 12px;
	font-size: var(--mc-fs-h2, clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem));
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.022em;
	color: var(--mc-brand-navy, #0a2a5c);
	text-wrap: balance;
}

.mcx-h2::after,
.mcx-cta-title::after {
	content: "";
	display: block;
	width: 72px;
	height: 2px;
	margin: 20px 0 4px;
	background: linear-gradient(90deg, var(--mcx-sand) 0%, var(--mcx-sand) 72%, transparent 100%);
}

.mcx-lead {
	margin: 0;
	max-width: 38em;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--mcx-muted);
}

.mcx-section {
	padding: var(--mcx-pad) 0;
}

.mcx-section-head {
	max-width: 44rem;
	margin-bottom: clamp(28px, 3.5vw, 40px);
}

.mcx-locations {
	scroll-margin-top: calc(var(--mc-header-offset, 72px) + 8px);
}

.mcx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	color: #fff;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mcx-btn:hover {
	color: #fff;
}

.mcx-btn--wa {
	background: var(--mcx-wa);
}

.mcx-btn--wa:hover {
	background: #188553;
}

.mcx-btn--primary {
	background: var(--mcx-accent);
}

.mcx-btn--primary:hover {
	background: #1d6de6;
}

.mcx-btn--ghost {
	background: #fff;
	border-color: var(--mcx-line);
	color: var(--mc-brand-navy, #0a2a5c);
}

.mcx-btn--ghost:hover {
	border-color: var(--mcx-accent);
	color: var(--mcx-accent);
}

.mcx-btn-sub {
	font-weight: 500;
	color: var(--mcx-muted);
}

.mcx-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	font-weight: 700;
	color: var(--mcx-accent);
	text-decoration: none;
}

.mcx-link:hover {
	text-decoration: underline;
}

/* --- HERO: anasayfa ile aynı koyu lacivert zemin; iki eşit kolon ------------- */
.mcx-hero {
	padding: calc(var(--mc-header-offset, 72px) + 24px) 0 clamp(48px, 5vw, 72px);
	background:
		radial-gradient(60% 70% at 8% 18%, rgba(var(--mc-sand-rgb, 111, 182, 234), 0.14) 0%, transparent 60%),
		radial-gradient(55% 65% at 95% 85%, rgba(46, 117, 230, 0.2) 0%, transparent 62%),
		linear-gradient(160deg, #031634 0%, #05204e 100%);
	color: #fff;
}

.mcx-crumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 clamp(24px, 3vw, 36px);
	font-size: 0.85rem;
	color: rgba(220, 232, 255, 0.65);
}

.mcx-crumbs a {
	color: rgba(220, 232, 255, 0.85);
	text-decoration: none;
}

.mcx-crumbs a:hover {
	color: #fff;
}

.mcx-crumbs [aria-current] {
	font-weight: 600;
	color: #fff;
}

.mcx-hero-inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mcx-gap);
	align-items: stretch;
}

.mcx-hero-copy,
.mcx-hero-form {
	min-width: 0;
}

/* Sol kolon: içerik form kartının yüksekliğinde dikey ortalı; boşluk kalmaz. */
.mcx-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.mcx-hero-copy .mcx-channels {
	margin-top: 4px;
}

/* Başlığın altında sitedeki gibi kısa altın çizgi */
.mcx-hero-lead {
	position: relative;
	padding-top: 22px;
}

.mcx-hero-lead::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 72px;
	height: 2px;
	background: linear-gradient(90deg, var(--mcx-sand) 0%, rgba(var(--mc-sand-rgb, 111, 182, 234), 0) 100%);
}

/* Koyu zeminde eyebrow: açık kum (anasayfa hero etiketi gibi) */
.mcx-hero .mcx-eyebrow {
	color: var(--mcx-sand-light);
	letter-spacing: 0.18em;
}

.mcx-hero-title {
	margin: 0 0 16px;
	font-size: var(--mc-fs-h1-compact, clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem));
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.022em;
	color: #fff;
	text-wrap: balance;
}

.mcx-hero-lead {
	margin: 0 0 28px;
	max-width: 34em;
	font-size: 1.02rem;
	line-height: 1.7;
	color: rgba(220, 232, 255, 0.9);
}

/* Kanal kartları: koyu zeminde ince çizgili, düz */
.mcx-channels {
	display: grid;
	gap: 12px;
}

.mcx-channel {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 16px;
	align-items: center;
	gap: 16px;
	min-height: 96px;
	padding: 18px 22px 18px 18px;
	border: 1px solid rgba(160, 200, 255, 0.2);
	border-radius: var(--mcx-radius);
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	text-decoration: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.mcx-channel:hover {
	border-color: rgba(var(--mc-sand-rgb, 111, 182, 234), 0.8);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.mcx-channel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--mcx-sand-light);
	font-size: 1.2rem;
}

.mcx-channel-copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mcx-channel-copy strong {
	font-size: 1.12rem;
	font-weight: 700;
	line-height: 1.3;
}

.mcx-channel-copy span {
	font-size: 0.9rem;
	line-height: 1.45;
	color: rgba(220, 232, 255, 0.78);
	overflow-wrap: anywhere;
}

/* Etiket yerine tek ok: temiz ve hizalı */
.mcx-channel-go {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	color: var(--mcx-sand-light);
	font-size: 0;
}

.mcx-channel-go i {
	font-size: 0.9rem;
}

/* WhatsApp: yalnızca simgesi yeşil; kart diğeriyle aynı (sitenin WhatsApp rengi) */
.mcx-channel--wa .mcx-channel-icon {
	background: var(--mcx-wa);
	color: #fff;
}

.mcx-hero-mail {
	margin: 16px 0 0;
	font-size: 0.92rem;
	color: rgba(220, 232, 255, 0.75);
}

.mcx-hero-mail a {
	font-weight: 600;
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--mcx-sand);
	text-underline-offset: 3px;
}

.mcx-hero-form {
	scroll-margin-top: calc(var(--mc-header-offset, 72px) + 16px);
}

.mcx-hero-form:focus {
	outline: none;
}

.mcx-hero-form .mc-hero-form {
	border-color: rgba(var(--mc-sand-rgb, 111, 182, 234), 0.35);
	border-top: 2px solid var(--mcx-sand);
}

.mcx-hero-form.is-highlight .mc-hero-form {
	box-shadow: 0 0 0 4px rgba(var(--mc-accent-rgb), 0.35);
}

.mcx-form-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 14px 0 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: rgba(220, 232, 255, 0.75);
}

.mcx-form-note i {
	margin-top: 3px;
	color: var(--mcx-sand-light);
}

/* --- Konum: liste ve harita aynı yükseklikte ------------------------------- */
.mcx-locations {
	background: #fff;
}

.mcx-loc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--mcx-gap);
	align-items: stretch;
}

.mcx-loc-list {
	display: grid;
	grid-auto-rows: 1fr;
	gap: 12px;
}

.mcx-hospital {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px;
	border: 1px solid var(--mcx-line);
	border-radius: var(--mcx-radius);
	background: var(--mcx-surface);
	transition: border-color 0.2s ease;
}

.mcx-hospital.is-active {
	border-color: var(--mcx-accent);
	box-shadow: 0 0 0 3px rgba(var(--mc-accent-rgb), 0.1);
}

.mcx-hospital-select {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	text-align: left;
	color: inherit;
	cursor: pointer;
}

.mcx-hospital-pin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: rgba(var(--mc-accent-rgb), 0.1);
	color: var(--mcx-accent);
	font-size: 1.1rem;
}

.mcx-hospital.is-active .mcx-hospital-pin {
	background: var(--mcx-accent);
	color: #fff;
}

.mcx-hospital-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mcx-hospital-brand {
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mcx-accent);
}

.mcx-hospital-name {
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--mc-brand-navy, #0a2a5c);
}

.mcx-hospital-state {
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
	color: var(--mcx-muted);
}

.mcx-hospital-state-on {
	display: none;
	color: var(--mcx-accent);
}

.mcx-hospital.is-active .mcx-hospital-state-on {
	display: inline;
}

.mcx-hospital.is-active .mcx-hospital-state-off {
	display: none;
}

.mcx-hospital-address {
	display: grid;
	grid-template-columns: 16px minmax(0, 1fr);
	gap: 12px;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--mcx-line);
	font-size: 0.93rem;
	line-height: 1.6;
	color: var(--mcx-muted);
}

.mcx-hospital-address i {
	margin-top: 4px;
	color: var(--mcx-accent);
	font-size: 0.85rem;
}

.mcx-hospital-directions {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin-top: auto;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--mcx-accent);
	text-decoration: none;
}

.mcx-hospital-directions:hover {
	text-decoration: underline;
}

.mcx-map {
	position: relative;
	min-height: 360px;
	overflow: hidden;
	border: 1px solid var(--mcx-line);
	border-radius: var(--mcx-radius);
	background: #e8eef8;
}

.mcx-map iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* --- Kapanış bandı: açık, ortalı, hizalı ------------------------------------ */
.mcx-cta {
	padding: clamp(40px, 5vw, 72px) 0 var(--mcx-pad);
	background: var(--mcx-surface);
}

.mcx-cta-card {
	padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 56px);
	border: 1px solid rgba(var(--mc-sand-rgb, 111, 182, 234), 0.35);
	border-radius: 20px;
	background: linear-gradient(135deg, #0a2a5c 0%, #123a78 100%);
	box-shadow: 0 24px 50px -28px rgba(10, 42, 92, 0.55);
	text-align: center;
}

.mcx-cta-card .mcx-eyebrow {
	color: var(--mcx-sand-light);
}

.mcx-cta-title {
	margin: 0 auto 12px;
	max-width: 24ch;
	font-size: var(--mc-fs-h2, clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem));
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.022em;
	color: #fff;
	text-wrap: balance;
}

.mcx-cta-card .mcx-cta-text {
	color: rgba(255, 255, 255, 0.78);
}

.mcx-cta-card .mcx-btn--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

.mcx-cta-card .mcx-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	color: #fff;
}

.mcx-cta-card .mcx-btn-sub {
	color: rgba(255, 255, 255, 0.7);
}

/* Ortalı başlık: çizgi ortada, uçları sönen (sitedeki ortalı başlıklar gibi) */
.mcx-cta-title::after {
	margin: 20px auto 4px;
	background: linear-gradient(90deg, transparent 0%, var(--mcx-sand) 28%, var(--mcx-sand) 72%, transparent 100%);
}

.mcx-cta-text {
	margin: 0 auto 28px;
	max-width: none;
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--mcx-muted);
}

.mcx-cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
}

/* --- Ayrılırken kartı ---------------------------------------------------------- */
.mcx-exit[hidden] {
	display: none;
}

.mcx-exit {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mcx-exit-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 30, 60, 0.45);
}

.mcx-exit-card {
	position: relative;
	width: min(100%, 440px);
	padding: 36px 28px 24px;
	border-radius: 24px;
	background: #fff;
	text-align: center;
	box-shadow: 0 30px 70px -30px rgba(10, 30, 60, 0.6);
}

.mcx-exit-card:focus {
	outline: none;
}

.mcx-exit-x {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--mcx-surface);
	color: var(--mcx-muted);
	font-size: 0.95rem;
	cursor: pointer;
}

.mcx-exit-x:hover {
	background: var(--mcx-line);
	color: var(--mc-brand-navy, #0a2a5c);
}

.mcx-exit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	border-radius: 16px;
	background: rgba(var(--mc-accent-rgb), 0.1);
	font-size: 1.4rem;
	color: var(--mcx-accent);
}

.mcx-exit-card h2 {
	margin: 0 0 8px;
	font-size: 1.3rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--mc-brand-navy, #0a2a5c);
}

.mcx-exit-card p {
	margin: 0 0 20px;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--mcx-muted);
}

.mcx-exit-actions {
	display: grid;
	gap: 10px;
}

.mcx-exit-dismiss {
	margin-top: 12px;
	padding: 8px 14px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 0.88rem;
	color: var(--mcx-muted);
	text-decoration: underline;
	cursor: pointer;
}

.mcx-exit-dismiss:hover {
	color: var(--mc-brand-navy, #0a2a5c);
}

/* --- Duyarlı --------------------------------------------------------------------- */
@media (max-width: 960px) {
	.mcx-hero-inner,
	.mcx-loc-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mcx-map {
		min-height: 340px;
	}
}

@media (max-width: 640px) {
	.mcx-channel {
		grid-template-columns: 44px minmax(0, 1fr) 14px;
		gap: 14px;
		padding: 14px;
	}

	.mcx-channel-icon {
		width: 44px;
		height: 44px;
	}

	.mcx-hospital-select {
		grid-template-columns: 44px minmax(0, 1fr);
	}

	.mcx-hospital-state {
		grid-column: 2;
	}

	.mcx-cta-actions {
		flex-direction: column;
		align-items: stretch;
	}

	/* Mobil alt CTA barı içeriği kapatmasın. */
	.mcx-cta {
		padding-bottom: 110px;
	}
}
