/* Khối thông tin + form xác nhận dùng chung (invite.js). Mẫu đặt lại các biến --iv-* cho hợp chủ đề. */
:root {
  --iv-card: #ffffff; --iv-ink: #1b2433; --iv-soft: #5f6878; --iv-accent: #1d4e89; --iv-accent-ink: #fff; --iv-line: #e5e1d6; --iv-tint: #f3efe6;
  --iv-display: "Playfair Display", Georgia, serif; --iv-body: "Be Vietnam Pro", system-ui, sans-serif; --iv-radius: 18px; --iv-shadow: 0 18px 40px -24px #0006;
}
[hidden] { display: none !important; }
#info { position: relative; z-index: 2; display: grid; gap: 18px; max-width: 560px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-right)) 96px max(16px, env(safe-area-inset-left)); font-family: var(--iv-body); }
.iv-card { background: var(--iv-card); color: var(--iv-ink); border-radius: var(--iv-radius); padding: 24px 20px; text-align: center; box-shadow: var(--iv-shadow); border: 1px solid var(--iv-line); overflow-wrap: anywhere; }
.iv-card h2 { font: 600 24px/1.25 var(--iv-display); color: var(--iv-accent); margin: 0 0 14px; }
.iv-soft { color: var(--iv-soft); margin: -6px 0 14px; font-size: 15px; }
.iv-count { display: flex; gap: 8px; justify-content: center; }
.iv-count div { flex: 1; max-width: 82px; padding: 10px 2px 6px; border-radius: 14px; background: var(--iv-tint); }
.iv-count b { display: block; font: 600 30px/1 var(--iv-display); color: var(--iv-accent); font-variant-numeric: tabular-nums; }
.iv-count span { font: 600 11px var(--iv-body); letter-spacing: .14em; text-transform: uppercase; color: var(--iv-soft); }
.iv-when { margin: 16px 0 0; display: grid; } .iv-when b { font: 600 26px/1.2 var(--iv-display); } .iv-when span { color: var(--iv-soft); }
.iv-where { margin: 0; display: grid; gap: 4px; } .iv-where b { font: 600 21px/1.3 var(--iv-display); } .iv-where span { color: var(--iv-soft); }
.iv-btn { display: inline-block; margin-top: 16px; padding: 12px 26px; border-radius: 999px; border: 2px solid var(--iv-accent); background: var(--iv-accent); color: var(--iv-accent-ink); text-decoration: none; font: 600 15px var(--iv-body); cursor: pointer; }
.iv-btn.ghost { background: transparent; color: var(--iv-accent); }
.iv-btn:focus-visible { outline: 3px solid var(--iv-accent); outline-offset: 3px; }
.iv-btn:disabled { opacity: .6; }
.iv-agenda, .iv-speakers { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 2px; }
.iv-agenda li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--iv-line); }
.iv-agenda li:last-child, .iv-speakers li:last-child { border: 0; }
.iv-agenda b { font: 600 18px var(--iv-display); color: var(--iv-accent); font-variant-numeric: tabular-nums; }
.iv-speakers li { display: grid; padding: 10px 0; border-bottom: 1px dashed var(--iv-line); } .iv-speakers b { font: 600 18px var(--iv-display); } .iv-speakers span { color: var(--iv-soft); font-size: 15px; }
.iv-dress { margin: 0; font: 600 19px var(--iv-body); }
.iv-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.iv-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; border-radius: calc(var(--iv-radius) - 6px); }
.iv-photos.n1 img, .iv-photos.n3 img:first-child { grid-column: 1 / -1; aspect-ratio: 4/3; }
.iv-msg { white-space: pre-line; font: 500 18px/1.7 var(--iv-body); margin: 0; }
.iv-sign { margin: 14px 0 0; font: 600 20px var(--iv-display); color: var(--iv-accent); }
.iv-sign::before { content: "— "; }
.iv-rsvp form { display: grid; gap: 14px; text-align: left; }
.iv-rsvp label { display: grid; gap: 6px; font: 600 14px var(--iv-body); color: var(--iv-soft); }
.iv-rsvp input:not([type=radio]), .iv-rsvp textarea { font: 400 16px var(--iv-body); padding: 12px 14px; border-radius: 12px; border: 1px solid var(--iv-line); background: var(--iv-tint); color: var(--iv-ink); width: 100%; box-sizing: border-box; }
.iv-rsvp input:focus, .iv-rsvp textarea:focus { outline: 2px solid var(--iv-accent); outline-offset: 1px; }
.iv-attend { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.iv-attend legend { font: 600 14px var(--iv-body); color: var(--iv-soft); margin-bottom: 6px; padding: 0; }
.iv-attend label { display: block; }
.iv-attend input { position: absolute; opacity: 0; }
.iv-attend span { display: block; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--iv-line); background: var(--iv-tint); color: var(--iv-ink); font: 600 14px var(--iv-body); cursor: pointer; }
.iv-attend input:checked + span { background: var(--iv-accent); border-color: var(--iv-accent); color: var(--iv-accent-ink); }
.iv-attend input:focus-visible + span { outline: 3px solid var(--iv-accent); outline-offset: 2px; }
.iv-rsvp .iv-btn { justify-self: center; margin-top: 4px; }
.iv-err { color: #c0392b; margin: 0; text-align: center; min-height: 1px; font-size: 14px; }
.iv-thanks { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--iv-tint); }
.iv-thanks b { font: 600 24px var(--iv-display); color: var(--iv-accent); }
.iv-contact { margin: 16px 0 0; color: var(--iv-soft); } .iv-contact a { color: var(--iv-accent); font-weight: 600; }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .3, 1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
/* Bán vé (ticket.js) */
.iv-total { margin: 0; text-align: center; color: var(--iv-soft); } .iv-total b { font: 600 22px var(--iv-display); color: var(--iv-accent); }
.iv-ticket { display: grid; gap: 8px; justify-items: center; padding: 16px; border-radius: 14px; background: var(--iv-tint); }
.iv-ticket > b { font: 600 24px var(--iv-display); color: var(--iv-accent); }
.iv-ticket img, .iv-ticket canvas { display: block; width: min(100%, 240px) !important; height: auto !important; border-radius: 12px; background: #fff; }
.iv-ticket p { margin: 0; color: var(--iv-soft); font-size: 15px; }
.iv-ticket dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; text-align: left; width: 100%; font-size: 15px; }
.iv-ticket dt { color: var(--iv-soft); } .iv-ticket dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; user-select: all; }
.iv-ticket .iv-btn { margin-top: 4px; }
.iv-acct { margin: 0 0 14px; font-size: 14px; color: var(--iv-soft); } .iv-acct a { color: var(--iv-accent); font-weight: 600; }
.iv-acct .iv-btn { margin-top: 0; } .iv-acct p { margin: 6px 0 0; font-size: 13px; }
