/* Telefonszám felugró – top bar (#mcPhoneToggle) */
.mc-phone-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: transparent;
  pointer-events: none;
  transition:
    background 0.25s ease,
    backdrop-filter 0.25s ease,
    -webkit-backdrop-filter 0.25s ease;
}

/* Főoldallal azonos gradiens + enyhe háttér-elmosás */
.mc-phone-overlay.is-open {
  display: block;
  pointer-events: auto;
  background: var(
    --df-gradient-overlay,
    linear-gradient(135deg, rgba(25, 50, 74, 0.94) 0%, rgba(32, 79, 117, 0.92) 60%, rgba(36, 140, 153, 0.88) 100%)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Eredeti felugró – középre igazított fő tartalom */
.mc-phone-box {
  --mc-phone-accent: #248c99;
  --mc-phone-navy: #1e3a50;
  position: absolute;
  z-index: 1;
  width: min(360px, calc(100vw - 20px));
  max-width: 360px;
  overflow: hidden;
  padding: 22px 20px 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 40, 64, 0.22), 0 0 0 1px rgba(30, 58, 80, 0.08);
  font-family: 'Poppins', system-ui, sans-serif;
  text-align: center;
  transform-origin: top right;
  pointer-events: auto;
  animation: mcPhoneSlideIn 0.28s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes mcPhoneSlideIn {
  from { opacity: 0; transform: translateY(-12px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mc-phone-box-close {
  position: absolute;
  top: 12px;
  right: 16px;
  padding: 0;
  border: none;
  background: none;
  color: #8a99a8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.mc-phone-box-close:hover {
  color: #1e3a50;
}

.mc-phone-box-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--df-gradient, linear-gradient(135deg, #19324a 0%, #204f75 60%, #248c99 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.mc-phone-box h3 {
  margin: 0 28px 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #1e3a50;
}

.mc-phone-box p {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #5a6b7d;
}

.mc-phone-box-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 0;
  border-radius: 10px;
  background: var(--df-gradient, linear-gradient(135deg, #19324a 0%, #204f75 60%, #248c99 100%));
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(25, 50, 74, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.mc-phone-box-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(32, 79, 117, 0.35);
}

.mc-phone-box-cta i {
  margin-right: 0;
}

/* Lábléc – kártyás „mégis telefonálok” */
.mc-phone-box__footer {
  margin: 16px -20px 0;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, #f6f9fb 0%, #edf3f7 100%);
  border-top: 1px solid #e3ebf1;
  text-align: center;
}

.mc-phone-box__footer-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa8b6;
}

.mc-phone-box__footer-or::before,
.mc-phone-box__footer-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cfd9e2 50%, transparent);
}

.mc-phone-box__call-link {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(30, 58, 80, 0.08),
    0 4px 14px rgba(30, 58, 80, 0.07);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mc-phone-box__call-link:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(74, 142, 166, 0.35),
    0 8px 24px rgba(74, 142, 166, 0.2);
}

.mc-phone-box__call-link:focus-visible {
  outline: 2px solid var(--mc-phone-accent);
  outline-offset: 2px;
}

.mc-phone-box__call-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7c8f;
}

.mc-phone-box__call-top i {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(74, 142, 166, 0.12);
  color: var(--mc-phone-accent);
  font-size: 12px;
}

.mc-phone-box__call-number {
  display: block;
  padding: 12px 16px 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--mc-phone-navy);
  background: linear-gradient(180deg, #fafcfd 0%, #f4f9fb 100%);
  border-top: 1px solid #e8f0f5;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s, background 0.2s;
}

.mc-phone-box__call-link:hover .mc-phone-box__call-number {
  color: var(--mc-phone-accent);
  background: linear-gradient(180deg, #fff 0%, #eef7fa 100%);
}

@media (max-width: 1024px) {
  .mc-phone-box {
    transform-origin: top center;
  }
}
