/* MatricaDiszkont – barátságos elérhetőségi értesítő (egyszer / látogató) */
body.md-contact-notice-open {
  overflow: hidden;
}

.md-contact-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 10990;
  background: rgba(15, 18, 23, 0.35);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.md-contact-notice-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.md-contact-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10991;
  width: min(92vw, 480px);
  max-height: min(88vh, 560px);
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.97);
  pointer-events: none;
  transition:
    transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.28s ease;
}

.md-contact-notice.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.md-contact-notice__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.md-contact-notice__title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.md-contact-notice__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #4a6d92, #5b84ad);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(74, 109, 146, 0.35);
}

.md-contact-notice__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
  letter-spacing: 0.01em;
}

.md-contact-notice__close {
  flex: 0 0 auto;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  opacity: 0.55;
  background: transparent;
  border: 0;
  padding: 0 2px;
  color: #111827;
}

.md-contact-notice__close:hover,
.md-contact-notice__close:focus-visible {
  opacity: 1;
}

.md-contact-notice__body {
  padding: 14px 18px 6px;
  font-size: 15px;
  line-height: 1.55;
  color: #374151;
}

.md-contact-notice__body p {
  margin: 0 0 12px;
}

.md-contact-notice__body p:last-child {
  margin-bottom: 0;
}

.md-contact-notice__highlight {
  display: block;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(74, 109, 146, 0.08);
  border: 1px solid rgba(74, 109, 146, 0.14);
  font-size: 14px;
  color: #1f2937;
}

.md-contact-notice__highlight strong {
  color: #111827;
}

.md-contact-notice__email {
  font-weight: 700;
  color: #4a6d92;
  text-decoration: none;
  word-break: break-all;
}

.md-contact-notice__email:hover,
.md-contact-notice__email:focus-visible {
  text-decoration: underline;
}

.md-contact-notice__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 18px 18px;
}

.md-contact-notice__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.04s ease, box-shadow 0.18s ease, background 0.2s, color 0.2s;
}

.md-contact-notice__btn:active {
  transform: translateY(1px);
}

.md-contact-notice__btn--ghost {
  background: #fff;
  color: #111827;
  border-color: rgba(0, 0, 0, 0.08);
}

.md-contact-notice__btn--ghost:hover,
.md-contact-notice__btn--ghost:focus-visible {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.md-contact-notice__btn--primary {
  background: #4a6d92;
  color: #fff;
  box-shadow: 0 6px 16px rgba(74, 109, 146, 0.35);
}

.md-contact-notice__btn--primary:hover,
.md-contact-notice__btn--primary:focus-visible {
  background: #3d5d7d;
  box-shadow: 0 8px 18px rgba(61, 93, 125, 0.42);
}

@media (max-width: 479.98px) {
  .md-contact-notice__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .md-contact-notice-overlay,
  .md-contact-notice {
    transition: none;
  }
}
