/* ============================================================
   MODULE CSS 09 · contact.css — Liên hệ tương tác: địa chỉ bấm được
   mở popup bản đồ, số điện thoại bấm được mở hộp lựa chọn gọi.
   Chỉ dùng token của 01-base.css (nền trắng, bo tròn 12px, nút pill,
   màu nhấn xanh lá) — không định nghĩa màu / bo tròn riêng.
   Nạp sau 08-method-article.css.
   ============================================================ */

/* ---------- Địa chỉ & số điện thoại bấm được ---------- */
.contact-address {
  color: inherit; text-decoration: underline;
  text-decoration-color: var(--leaf-200); text-underline-offset: 3px;
  cursor: pointer;
}
.contact-address:hover { color: var(--accent); text-decoration-color: var(--accent); }
a[data-contact-phone] { cursor: pointer; }

/* Tab nhỏ "Tham gia Skool" (link ngoài trong nhóm Học Cùng Sơn):
   cùng kiểu pill với các tab nhỏ khác, nhấn nhẹ bằng viền + chữ xanh. */
.group-tab-ext { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.group-tab-ext:hover { background: var(--accent-soft); }

/* ---------- Khung popup dùng chung (bản đồ + hộp liên hệ) ---------- */
.contact-modal { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 18px; }
.contact-modal[hidden] { display: none; }
.contact-modal-backdrop { position: absolute; inset: 0; background: rgba(18, 28, 12, 0.82); backdrop-filter: blur(4px); }
.contact-modal-box {
  position: relative; width: min(440px, 100%);
  background: var(--surface); border-radius: var(--radius-l); overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  animation: videoIn 0.25s ease both;
  padding-bottom: 20px;
}
.contact-modal-box-wide { width: min(680px, 100%); }
.contact-modal-addr {
  margin: 0; padding: 0 20px 14px;
  color: var(--ink-soft); font-size: 0.95rem;
}

/* ---------- Popup bản đồ ---------- */
.contact-map-frame { position: relative; margin: 0 20px; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; background: var(--bg-soft); }
.contact-map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }
.contact-modal-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 16px 20px 0;
}
.contact-modal-note { flex: 1 1 100%; margin: 0; font-size: 0.88rem; color: var(--muted); }
.contact-modal-foot .btn { flex: 0 1 auto; }

/* ---------- Hộp lựa chọn cách liên hệ ---------- */
.contact-actions { display: grid; gap: 10px; padding: 0 20px; }
.contact-actions .btn { justify-content: center; width: 100%; }
.contact-actions button.btn { font: inherit; cursor: pointer; }

@media (max-width: 580px) {
  .contact-modal { padding: 10px; }
  .contact-map-frame iframe { height: 260px; }
  .contact-modal-foot .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-modal-box { animation: none; }
}
