/* Clinic-aware contact chooser. Native dialog supplies focus trapping and Escape. */
.dx-contact-dialog {
  box-sizing: border-box;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 32px;
  overflow: auto;
  border: 1px solid #dbe4ec;
  border-radius: 20px;
  background: #ffffff;
  color: #1d334a;
  box-shadow: 0 24px 80px rgba(29,51,74,.16);
  font-family: 'Inter', sans-serif;
}
.dx-contact-dialog::backdrop { background: rgba(2,10,23,.72); backdrop-filter: blur(5px); }
.dx-contact-dialog[open] { animation: dx-contact-enter 180ms ease-out both; }
.dx-contact-dialog [data-dx-contact-close] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -12px -12px 6px auto;
  padding: 0;
  border: 1px solid #dbe4ec;
  border-radius: 50%;
  background: transparent;
  color: #1d334a;
  font: inherit;
  font-size: 25px;
  cursor: pointer;
}
.dx-contact-dialog #dx-contact-title { margin: 0; color: #1d334a; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px,5vw,36px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.dx-contact-dialog > p { margin: 12px 0 24px; color: #526474; font-size: 13px; line-height: 1.7; }
.dx-contact-dialog .dx-contact-clinic { position: relative; padding: 21px 22px; margin-top: 12px; border: 1px solid #dbe4ec; border-radius: 12px; background: #f6f9fc; }
.dx-contact-dialog .dx-contact-clinic h3 { margin: 0; color: #1d334a; font-size: 20px; line-height: 1.3; font-weight: 600; }
.dx-contact-dialog .dx-contact-number { display: block; margin: 7px 0 17px; color: #526474; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.dx-contact-dialog [data-dx-channel] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #e50913;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition: background 160ms ease-out;
}
.dx-contact-dialog [data-dx-channel="wa"] { background: #12833f; }
.dx-contact-dialog [data-dx-channel="wa"]:hover { background: #0b6c32; }
.dx-contact-dialog [data-dx-channel="tel"]:hover { background: #bf0610; }
.dx-contact-dialog [data-dx-channel] svg { width: 19px; height: 19px; flex: 0 0 19px; }
.dx-contact-dialog [hidden] { display: none !important; }
.dx-contact-dialog a:focus-visible,.dx-contact-dialog button:focus-visible { outline: 2px solid #005794; outline-offset: 4px; }
.dx-contact-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dx-contact-card-actions > a { min-height: 44px; box-sizing: border-box; margin: 0; }
.cc-card .dx-contact-card-actions { flex-direction: column; align-items: stretch; }
.cc-card .dx-contact-card-actions > a { justify-content: center; padding: 10px 12px; font-size: 11px; }
#contact-clinici { scroll-margin-top: calc(var(--dx-header-bottom, 150px) + 12px); }
@keyframes dx-contact-enter { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
  .dx-contact-dialog { padding: 24px; border-radius: 16px; }
  .dx-contact-dialog .dx-contact-clinic { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-contact-dialog[open] { animation: none; }
  .dx-contact-dialog [data-dx-channel] { transition: none; }
}
