/* [orvos_foglalas] CTA – két változat (po- prefix): A = fehér kártya, B = türkiz sáv.
   A változatot a js/orvos-foglalas.js választja véletlenszerűen. */

.po-cta-wrap {
  --po-brand: #00b3a7;
  --po-brand-strong: #007a74;
  --po-brand-tint: #e6f2f2;
  --po-ink: #222222;
  --po-ink-strong: #333333;
  --po-muted: #666666;
  --po-border: #e0e0e0;
  --po-white: #ffffff;
  /* A befogadó Elementor-tároló teljes szélessége: a tároló belső margóján (--padding-left/right) is túlnyúlik.
     Elementoron kívül a változók hiányában 0, vagyis 100% szélesség. */
  box-sizing: border-box;
  width: calc(100% + var(--padding-left, 0px) + var(--padding-right, 0px));
  max-width: none;
  margin: 32px 0 32px calc(var(--padding-left, 0px) * -1);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Az Elementor shortcode-widget középre igazított oszlopban a tartalmához zsugorodna: teljes sor. */
.elementor-widget-shortcode:has(.po-cta-wrap) {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}

.po-cta {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-radius: 20px;
}

.po-cta[hidden] { display: none; }

.po-cta p { margin: 0; }

.po-cta-text {
  position: relative;
  flex: 999 1 340px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.po-cta-actions {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.po-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.po-cta-title {
  font-weight: 800;
}

.po-cta-btn,
.po-cta-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.po-cta-btn:hover,
.po-cta-btn-outline:hover { transform: translateY(-2px); }

.po-cta-btn:focus-visible,
.po-cta-btn-outline:focus-visible,
.po-cta-note a:focus-visible {
  outline: 2px solid var(--po-brand-strong);
  outline-offset: 3px;
}

/* ---------- A változat: fehér kártya ---------- */

.po-cta--a {
  gap: 28px 36px;
  padding: 32px 36px;
  background: var(--po-white);
  border: 1px solid var(--po-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  color: var(--po-ink);
}

.po-cta--a .po-cta-eyebrow { color: var(--po-brand-strong); }

.po-cta--a .po-cta-title {
  color: var(--po-ink-strong);
  font-size: 25px;
  line-height: 33px;
}

.po-cta-cimkek {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.po-cta-cimkek li {
  margin: 0;
  padding: 4px 12px;
  border-radius: 50px;
  background: var(--po-brand-tint);
  color: var(--po-brand-strong);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.po-cta--a .po-cta-lead {
  margin-top: 2px;
  color: var(--po-muted);
  font-size: 15px;
  line-height: 25px;
}

.po-cta--a .po-cta-btn {
  min-height: 52px;
  padding: 0 28px;
  background: var(--po-brand);
  color: var(--po-white);
  font-size: 15px;
}

.po-cta--a .po-cta-btn:hover { background: var(--po-brand-strong); color: var(--po-white); }

.po-cta-note {
  text-align: center;
  color: var(--po-muted);
  font-size: 13px;
  line-height: 19px;
}

.po-cta-note a {
  color: var(--po-ink-strong);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- B változat: türkiz sáv ---------- */

.po-cta--b {
  gap: 28px 48px;
  padding: 40px 44px;
  background: var(--po-brand);
  color: var(--po-white);
}

.po-cta-mark {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  max-width: none;
  opacity: .18;
  pointer-events: none;
}

.po-cta--b .po-cta-text { gap: 14px; }

.po-cta--b .po-cta-eyebrow { color: var(--po-white); }

.po-cta-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--po-white);
}

.po-cta--b .po-cta-title {
  color: var(--po-white);
  font-size: 28px;
  line-height: 36px;
}

.po-cta-elonyok {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.po-cta-elonyok li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--po-white);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
}

.po-cta-elonyok svg { flex: 0 0 18px; }

.po-cta--b .po-cta-actions { gap: 12px; }

.po-cta--b .po-cta-btn {
  min-height: 56px;
  padding: 0 30px;
  background: var(--po-white);
  color: var(--po-brand);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 41, 38, .15);
}

.po-cta--b .po-cta-btn:hover { color: var(--po-brand-strong); box-shadow: 0 6px 18px rgba(0, 41, 38, .22); }

.po-cta-btn-outline {
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--po-white);
  color: var(--po-white);
  font-size: 14px;
}

.po-cta-btn-outline:hover { background: rgba(255, 255, 255, .12); color: var(--po-white); }

.po-cta--b .po-cta-btn:focus-visible,
.po-cta-btn-outline:focus-visible { outline-color: var(--po-white); }

/* ---------- Mobil ---------- */

@media (max-width: 767px) {
  /* Mobilon a tároló belső margóján belül marad (szegéllyel), nem lóg ki a kijelző széléig. */
  .po-cta-wrap {
    width: 100%;
    margin-left: 0;
  }

  .po-cta--a { padding: 24px 20px; gap: 20px; }
  .po-cta--b { padding: 28px 22px; gap: 22px; }
  .po-cta--a .po-cta-title { font-size: 21px; line-height: 28px; }
  .po-cta--b .po-cta-title { font-size: 23px; line-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .po-cta-btn, .po-cta-btn-outline { transition: none; }
  .po-cta-btn:hover, .po-cta-btn-outline:hover { transform: none; }
}
