/* =========================================================
   LABORMED - WordPress eklemeleri
   (iletişim sayfası, yasal metinler, çerez onayı, form durumu)
   ========================================================= */

/* ---------- Form ---------- */
.lm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form.is-sending button[type="submit"] { opacity: .7; cursor: progress; }
.form__check { align-items: flex-start !important; line-height: 1.6; }
.form__check input { margin-top: 3px; }
.form__msg:empty { display: none; }
.form__msg.ok, .form__msg.err { padding: 12px 14px; border-radius: 8px; }
.form__msg.ok { background: #ecfdf3; }
.form__msg.err { background: #fff1ef; }

/* ---------- Metin içeriği (yasal sayfalar, blog, ürün açıklaması) ---------- */
.prose { color: var(--text); font-size: 15.5px; line-height: 1.85; min-width: 0; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 38px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; line-height: 1.3; }
.prose h3 { margin-top: 28px; font-size: 18px; font-weight: 700; color: var(--ink); }
.prose a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--red); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--red); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.prose thead th { background: var(--gray-bg); color: var(--ink); font-weight: 700; white-space: nowrap; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.pd-panel .prose p { margin-bottom: 0; }
.page-body { max-width: 860px; }
.post-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin-bottom: 10px; }

.legal { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.legal .prose { max-width: 820px; }
.legal .prose > p:first-child { font-size: 17px; color: #374151; }
.legal__side { position: sticky; top: 110px; display: grid; gap: 22px; }
.legal__nav { list-style: none; display: grid; gap: 4px; margin-bottom: 18px; }
.legal__nav a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink); }
.legal__nav a:hover { background: var(--gray-bg); }
.legal__nav a.is-active { background: var(--navy); color: var(--white); }
.legal__date { margin-top: 36px !important; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.btn--block { width: 100%; }

/* ---------- İletişim sayfası ---------- */
.ct-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: -130px; position: relative; z-index: 2; }
.ct-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px 28px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); transition: transform .3s, border-color .3s; }
.ct-card:hover { transform: translateY(-6px); border-color: #c9c4ef; }
.ct-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px; background: var(--red-soft); color: var(--red); font-size: 20px; transition: background .3s, color .3s; }
.ct-card:hover .ct-card__icon { background: var(--red); color: var(--white); }
.ct-card small { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ct-card b { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.ct-card__note { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.ct-card__note i { font-size: 11px; margin-left: 4px; }
.page-hero:has(+ .section .ct-cards) { padding-bottom: 170px; }
.ct-main .contact__info > p { color: var(--text); }
.ct-points { list-style: none; display: grid; gap: 18px; margin-top: 8px; }
.ct-points li { display: flex; gap: 14px; align-items: flex-start; }
.ct-points i { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--navy); }
.ct-points b { display: block; font-size: 15px; color: var(--ink); }
.ct-points span { font-size: 14px; color: var(--text); }
.ct-main .prose { margin-top: 26px; }

.ct-map { line-height: 0; }
.lm-embed { position: relative; height: 440px; background: #e9ebf4; line-height: 1.6; }
.lm-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.lm-embed__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 10px; padding: 24px;
  background: radial-gradient(rgba(47, 37, 132, .08) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(180deg, #eef0f8, #e4e6f2); }
.lm-embed__ph > i { font-size: 34px; color: var(--navy); }
.lm-embed__ph b { font-size: 18px; color: var(--ink); }
.lm-embed__ph p { max-width: 460px; font-size: 14px; color: var(--text); }
.lm-embed__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ---------- Alt bilgi: çerez tercihleri bağlantısı ---------- */
.footer__legal { flex-wrap: wrap; }
.footer__cookie { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__cookie:hover { color: var(--white); }
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; justify-content: center; gap: 8px; }
.pager .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); font-weight: 700; }
.pager .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Çerez onayı ---------- */
.cc { position: fixed; z-index: 90; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: center; pointer-events: none; animation: ccUp .45s ease both; }
.cc[hidden], .cc-modal[hidden] { display: none; }
@keyframes ccUp { from { opacity: 0; transform: translateY(24px); } }
.cc__box { pointer-events: auto; width: 100%; max-width: 1100px; display: flex; align-items: center; gap: 22px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(17, 24, 39, .22); }
.cc__icon { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 22px; }
.cc__text { flex: 1; min-width: 0; }
.cc__text b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.cc__text p { font-size: 13.5px; line-height: 1.65; color: var(--text); }
.cc__text a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.cc__actions { flex: none; display: flex; gap: 10px; }
body.has-cc .to-top { bottom: 130px; }

.cc-lock, .cc-lock body { overflow: hidden; }
.cc-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(11, 15, 26, .55); backdrop-filter: blur(3px); animation: ccFade .25s both; }
@keyframes ccFade { from { opacity: 0; } }
.cc-modal__box { width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--white); border-radius: 20px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.cc-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.cc-modal__head h2 { font-size: 21px; font-weight: 800; color: var(--ink); }
.cc-modal__close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; font-size: 15px; }
.cc-modal__close:hover { background: var(--gray-bg); }
.cc-modal__lead { font-size: 14px; line-height: 1.7; color: var(--text); margin-bottom: 18px; }
.cc-modal__lead a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.cc-opt { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cc-opt:first-of-type { cursor: default; }
.cc-opt b { display: block; font-size: 14.5px; color: var(--ink); }
.cc-opt small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.6; color: var(--text); }
.cc-opt__always { flex: none; font-size: 12px; font-weight: 700; color: #15803d; white-space: nowrap; }
.cc-switch { flex: none; appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 999px; background: #d1d5db; position: relative; cursor: pointer; transition: background .25s; }
.cc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s; }
.cc-switch:checked { background: var(--navy); }
.cc-switch:checked::after { transform: translateX(20px); }
.cc-switch:focus-visible { outline: 3px solid rgba(47, 37, 132, .35); outline-offset: 2px; }
.cc-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.cc-modal__actions .btn { flex: 1; }

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  .legal__side { position: static; order: 2; }
  .ct-cards { grid-template-columns: 1fr; margin-top: -110px; }
  .cc__box { flex-wrap: wrap; }
  .cc__actions { width: 100%; }
  .cc__actions .btn { flex: 1; }
}
@media (max-width: 640px) {
  .cc { left: 10px; right: 10px; bottom: 10px; }
  .cc__box { padding: 18px; gap: 14px; }
  .cc__icon { display: none; }
  .cc__actions { flex-wrap: wrap; }
  .cc__actions [data-cc="settings"] { flex-basis: 100%; order: 3; }
  .lm-embed { height: 360px; }
  .cc-modal__box { padding: 22px 18px; }
  .cc-modal__actions .btn { flex-basis: 100%; }
}
