/* Popup khuyến mãi — theo mẫu chị Lý gửi 26/09: ảnh trái, nền hồng phải, chữ lớn, ô email + nút đen. */
.km-popup { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.km-popup[hidden] { display: none; }
.km-nen { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .25s; }
.km-hop {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(860px, 100%); min-height: 440px;
  background: var(--hong-pastel, #F9E1E4); opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .25s, transform .25s;
}
.km-popup.hien .km-nen { opacity: 1; }
.km-popup.hien .km-hop { opacity: 1; transform: none; }
.km-anh { background: #eee center / cover no-repeat; }
.km-noi { padding: 48px 36px 36px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.km-lon { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.05; margin: 0; text-transform: uppercase; letter-spacing: .02em; color: var(--muc, #212121); }
.km-phu { font-size: 1.25rem; font-weight: 600; margin: 8px 0 18px; }
.km-phu span { color: var(--brand, #8C1017); }
.km-mo { font-size: 14.5px; line-height: 1.5; margin: 0 0 18px; color: var(--muc, #212121); }
.km-form input {
  width: 100%; border: 1px solid #999; background: #fff; padding: 14px 16px; font: inherit; font-size: 15px; margin-bottom: 10px; border-radius: 4px;
}
.km-form input:focus { outline: none; border-color: var(--muc, #212121); }
.km-nut {
  width: 100%; border: none; background: #231f20; color: #fff; padding: 15px 16px; font: inherit; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; border-radius: 4px; cursor: pointer;
}
.km-nut:hover { background: var(--brand, #8C1017); }
.km-nut:disabled { opacity: .6; }
.km-loi { color: var(--do, #C0392B); font-size: 13px; margin: 8px 0 0; min-height: 1em; }
.km-ma {
  display: block; width: 100%; border: 2px dashed var(--muc, #212121); background: #fff; padding: 14px; font: inherit;
  font-size: 1.6rem; font-weight: 700; letter-spacing: .12em; margin: 0 0 12px; cursor: copy; color: var(--muc, #212121);
}
.km-x {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 999px; border: none; background: #fff;
  font-size: 18px; cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--muc, #212121); z-index: 1;
}
@media (max-width: 700px) {
  .km-hop { grid-template-columns: 1fr; min-height: 0; max-height: calc(100vh - 32px); overflow-y: auto; }
  .km-anh { height: 180px; }
  .km-noi { padding: 26px 22px 24px; }
  .km-mo { margin-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .km-nen, .km-hop { transition: none; } }
