/* Contact dialog shared by index.html and plan.html (built by assets/contact-dialog.js). Self-contained so
 * it does not depend on either page's dialog styles; text rules use logical properties for right-to-left. */
.contact-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 32px); overflow-y: auto; margin: auto; padding: 26px; border: 1px solid var(--site-border); border-radius: var(--radius-card); background: var(--site-surface); color: var(--site-text); box-shadow: var(--site-shadow); font-family: inherit; }
.contact-dialog::backdrop { background: var(--site-surface); backdrop-filter: blur(8px); }
body:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog .ui-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.contact-heading h2 { margin: 4px 0 0; font-size: 22px; line-height: 1.3; }
.contact-close { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--site-border); border-radius: 11px; background: var(--site-surface); color: var(--site-secondary); cursor: pointer; }
.contact-close:hover { background: var(--site-surface); }
.contact-intro { margin: 0 0 18px; color: var(--site-secondary); font-size: 14px; line-height: 1.7; }
.contact-primary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 13px; background: var(--site-surface); color: var(--site-text); font-weight: 700; text-decoration: none; }
.contact-primary:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 3px; }
.contact-primary .contact-handle { margin-inline-start: auto; font-weight: 500; opacity: .85; }
.contact-handle { direction: ltr; unicode-bidi: isolate; }
.contact-divider { margin: 22px 0 10px; font-size: 14px; color: var(--site-secondary); line-height: 1.6; }
.contact-divider strong { color: var(--site-text); margin-inline-end: 6px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-item { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 14px; border: 1px solid var(--site-border); border-radius: 14px; background: var(--site-surface); }
.contact-item-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--site-surface); color: var(--site-text); flex: none; }
.contact-item-icon.whatsapp { background: var(--site-surface); color: var(--site-accent); }
.contact-item-icon.wechat { background: var(--site-surface); color: var(--site-success); }
.contact-item-icon.telegram { background: var(--site-surface); color: var(--site-accent); }
.contact-item-icon.zalo { background: var(--site-surface); color: var(--site-accent); }
.contact-item-icon.phone { background: var(--site-surface); color: var(--site-success); }
.contact-item-text { flex: 1 1 140px; min-width: 0; line-height: 1.4; }
.contact-item-text strong { display: block; font-size: 15px; }
.contact-item-text .contact-handle { display: block; color: var(--site-secondary); font-size: 13px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.contact-action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--site-border); border-radius: 9px; background: var(--site-surface); color: var(--site-text); font: inherit; font-size: 13px; text-decoration: none; cursor: pointer; }
.contact-action:hover { background: var(--site-surface); }
.contact-action[aria-expanded="true"] { border-color: var(--site-border); background: var(--site-surface); }
.contact-qr { margin: 16px 0 0; text-align: center; }
.contact-qr img { width: min(260px, 70vw); height: auto; padding: 10px; border-radius: 14px; background: var(--site-paper); }
.contact-qr figcaption { margin-top: 10px; color: var(--site-secondary); font-size: 13px; line-height: 1.6; }
.contact-status { min-height: 1.3em; margin: 10px 0 0; color: var(--site-success); font-size: 13px; }
@media (max-width: 600px) {
    .contact-dialog { padding: 20px; border-radius: var(--radius-card); }
    .contact-heading h2 { font-size: 19px; }
    .contact-actions { margin-inline-start: 0; width: 100%; }
}
