/* Mẫu Phong Bì Đỏ Sẫm — theo video mẫu chủ shop gửi (đã xin phép). Nền trắng, phong bì + chân trang đỏ sẫm #6b1e2e,
   chữ xám nâu; tên viết tay (Great Vibes), tên lớn có chân (Playfair Display), chữ in hoa nhỏ (Cormorant Garamond). Góc vuông. */

.t-phong-bi-do-sam {
  --wine: #6b1e2e;
  --wine-2: #7d2537;
  --wine-deep: #521421;
  --ink: #5a4a4d;
  --soft: #8a7b7e;
  --line: #c9b9bc;
  --f-script: "Great Vibes", cursive;
  --f-title: "Playfair Display", Georgia, serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --gate-bg: #fdfbfb;
  --gate-ink: #5a4a4d;
  color: var(--ink);
  font-family: var(--f-serif);
}
.t-phong-bi-do-sam .thiepmai-frame { background: #fff; }
.t-phong-bi-do-sam .thiepmai-frame > section { position: relative; }
.t-phong-bi-do-sam p, .t-phong-bi-do-sam h1, .t-phong-bi-do-sam h2, .t-phong-bi-do-sam figure { margin: 0; }
.t-phong-bi-do-sam .ph { inset: 0; }
.t-phong-bi-do-sam .pb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* chữ dùng chung */
.t-phong-bi-do-sam .pb-sec { padding: 36px 26px; text-align: center; }
.t-phong-bi-do-sam .pb-caps { font: 500 13px/1.55 var(--f-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.t-phong-bi-do-sam .pb-script { font: 400 34px/1.2 var(--f-script); color: var(--wine); }
.t-phong-bi-do-sam .pb-title { margin-bottom: 14px; }
.t-phong-bi-do-sam .pb-btn {
  display: inline-block; margin-top: 14px; padding: 6px 30px; border: 1px solid var(--wine); background: transparent; color: var(--wine);
  font: 600 12px var(--f-serif); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.t-phong-bi-do-sam .pb-btn--fill { width: 100%; margin-top: 4px; padding: 11px; background: var(--wine); color: #fff; font-size: 13px; }
.t-phong-bi-do-sam .pb-mono {
  display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 1.5px solid rgba(255, 236, 240, .85); border-radius: 50%;
  font: 400 26px/1 var(--f-script); color: #fbe9ee;
}
.t-phong-bi-do-sam .pb-mono i { font-style: normal; font-size: .55em; margin: 0 1px; }

/* ---------- 1. bìa ---------- */
.t-phong-bi-do-sam .pb-cover { height: 720px; overflow: hidden; background: #fff; }
.t-phong-bi-do-sam .pb-cover__pic { position: absolute; inset: 0 0 40px; }
.t-phong-bi-do-sam .pb-cover__pic::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 14%, rgba(0,0,0,0) 62%, rgba(40,8,16,.42) 88%, #fff 100%); }
.t-phong-bi-do-sam .pb-cover__pic img { object-position: center 30%; }
.t-phong-bi-do-sam .pb-cover__tag { position: absolute; top: 20px; left: 0; right: 0; text-align: center; font-size: 40px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 8px rgba(0, 0, 0, .18); }
.t-phong-bi-do-sam .pb-cover__text { position: absolute; left: 0; right: 0; bottom: 74px; text-align: center; color: #fff; }
.t-phong-bi-do-sam .pb-cover__names { font: 500 34px/1.2 var(--f-title); text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.t-phong-bi-do-sam .pb-cover__names i { font-style: italic; font-weight: 400; }
.t-phong-bi-do-sam .pb-cover__date { margin-top: 6px; font: 500 20px var(--f-title); letter-spacing: .14em; font-variant-numeric: lining-nums; }

/* ---------- 2. phong bì mở nắp ---------- */
.t-phong-bi-do-sam .pb-env-wrap { padding: 30px 0 44px; overflow: hidden; }
.t-phong-bi-do-sam .pb-env { position: relative; width: 300px; height: 340px; margin: 0 auto; }
.t-phong-bi-do-sam .pb-env__back { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; background: var(--wine-deep); }
.t-phong-bi-do-sam .pb-env__flap { position: absolute; left: 0; right: 0; bottom: 199px; height: 120px; background: #3d0f19; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.t-phong-bi-do-sam .pb-env__photo { position: absolute; z-index: 1; width: 150px; height: 190px; padding: 7px 7px 26px; background: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .22); }
.t-phong-bi-do-sam .pb-env__photo .ph { inset: 7px 7px 26px; }
.t-phong-bi-do-sam .pb-env__photo--l { left: 14px; top: 84px; rotate: -6deg; }
.t-phong-bi-do-sam .pb-env__photo--r { right: 12px; top: 44px; rotate: 4deg; }
.t-phong-bi-do-sam .pb-env__front { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 170px; background: var(--wine);
  clip-path: polygon(0 0, 50% 46%, 100% 0, 100% 100%, 0 100%); box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.t-phong-bi-do-sam .pb-env__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(0,0,0,.12)); }
.t-phong-bi-do-sam .pb-env__mono { position: absolute; z-index: 3; left: 50%; bottom: 34px; translate: -50% 0; }
.t-phong-bi-do-sam .pb-flower { position: absolute; z-index: 4; width: 110px; height: 156px; }
.t-phong-bi-do-sam .pb-flower--tl { left: 8px; top: 10px; rotate: 160deg; }
.t-phong-bi-do-sam .pb-flower--r { right: -4px; top: 150px; rotate: -18deg; }
.t-phong-bi-do-sam .pb-flower--bl { left: 14px; bottom: 6px; width: 96px; height: 136px; rotate: 12deg; }

/* ---------- 3. đếm ngược ---------- */
.t-phong-bi-do-sam .pb-cd { padding-top: 6px; }
.t-phong-bi-do-sam .pb-cd__title { font-size: 15px; letter-spacing: .1em; }
.t-phong-bi-do-sam .pb-cd__row { display: flex; justify-content: center; gap: 28px; margin-top: 16px; }
.t-phong-bi-do-sam .pb-cd__row p { display: grid; gap: 2px; }
.t-phong-bi-do-sam .pb-cd__row b { font: 400 34px var(--f-serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.t-phong-bi-do-sam .pb-cd__row span { font: italic 500 16px var(--f-serif); color: var(--soft); }

/* ---------- 4. ảnh lớn + lời mời ---------- */
.t-phong-bi-do-sam .pb-invite { padding-top: 20px; }
.t-phong-bi-do-sam .pb-invite__pic { position: relative; height: 330px; margin: 0 -26px 26px; overflow: hidden; }
.t-phong-bi-do-sam .pb-invite__guest { margin: 2px 0 4px; font-size: 40px; }

/* ---------- 5. cô dâu chú rể ---------- */
.t-phong-bi-do-sam .pb-couple { padding-top: 10px; }
.t-phong-bi-do-sam .pb-couple__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.t-phong-bi-do-sam .pb-polar { position: relative; padding: 7px 7px 0; background: #fff; box-shadow: 0 6px 16px rgba(60, 20, 30, .16); }
.t-phong-bi-do-sam .pb-polar__img { position: relative; height: 210px; overflow: hidden; }
.t-phong-bi-do-sam .pb-polar figcaption { padding: 10px 4px 12px; }
.t-phong-bi-do-sam .pb-polar figcaption small { display: block; font-size: 11px; }
.t-phong-bi-do-sam .pb-polar figcaption b { display: block; font: 400 28px/1.15 var(--f-script); color: var(--wine); }
.t-phong-bi-do-sam .pb-polar--l { rotate: -3deg; margin-top: 4px; }
.t-phong-bi-do-sam .pb-polar--r { rotate: 3deg; margin-top: 30px; }
.t-phong-bi-do-sam .pb-families { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.t-phong-bi-do-sam .pb-families p { font: 500 15px/1.55 var(--f-serif); color: var(--ink); }
.t-phong-bi-do-sam .pb-families p:first-child { text-align: left; }
.t-phong-bi-do-sam .pb-families p:last-child { text-align: right; }
.t-phong-bi-do-sam .pb-families b { display: block; margin-bottom: 4px; color: var(--wine); font-weight: 700; }
.t-phong-bi-do-sam .pb-families small { display: block; margin-top: 4px; font-size: 12px; color: var(--soft); }

/* ---------- 6. lễ & tiệc ---------- */
.t-phong-bi-do-sam .pb-events { display: grid; justify-items: center; gap: 6px; padding-top: 18px; }
.t-phong-bi-do-sam .pb-event { width: 100%; padding: 4px 6px 10px; }
.t-phong-bi-do-sam .pb-event__title { font-size: 15px; font-weight: 700; color: var(--wine); letter-spacing: .14em; }
.t-phong-bi-do-sam .pb-event__at { margin-top: 4px; font: italic 500 15px var(--f-serif); color: var(--soft); }
.t-phong-bi-do-sam .pb-event__date { display: inline-block; margin-top: 8px; padding: 4px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font: 500 20px var(--f-title); letter-spacing: .1em; color: var(--ink); font-variant-numeric: lining-nums; }
.t-phong-bi-do-sam .pb-event__lunar { margin-top: 6px; font: italic 500 14px var(--f-serif); color: var(--soft); }
.t-phong-bi-do-sam .pb-event__place { margin-top: 6px; font-size: 30px; }
.t-phong-bi-do-sam .pb-event__addr { font-size: 12px; }
.t-phong-bi-do-sam .pb-callas { width: 70px; height: 46px; margin: 6px 0; }
.t-phong-bi-do-sam .thiepmai-events { padding: 0 26px 10px; }
.t-phong-bi-do-sam .thiepmai-event { background: #faf4f5; color: var(--ink); }

/* ---------- 7. lịch trình ---------- */
.t-phong-bi-do-sam .pb-program__list { margin: 0; padding: 0; list-style: none; }
.t-phong-bi-do-sam .pb-program__list li { display: grid; grid-template-columns: 70px 1fr; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: left; }
.t-phong-bi-do-sam .pb-program__list b { font: 500 18px var(--f-title); color: var(--wine); font-variant-numeric: lining-nums; }
.t-phong-bi-do-sam .pb-program__list small { grid-column: 2; font: italic 400 14px var(--f-serif); color: var(--soft); }

/* ---------- 8. album ---------- */
.t-phong-bi-do-sam .pb-album { text-align: left; }
.t-phong-bi-do-sam .pb-album__title { display: flex; align-items: center; gap: 12px; font-size: 38px; }
.t-phong-bi-do-sam .pb-album__title::after { content: ""; flex: 1; height: 1px; margin-top: 10px; background: var(--wine); opacity: .6; }
.t-phong-bi-do-sam .pb-album__text { margin-top: 10px; font: 500 14px/1.6 var(--f-serif); color: var(--soft); }
.t-phong-bi-do-sam .pb-album__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.t-phong-bi-do-sam .pb-album__item { position: relative; overflow: hidden; height: 240px; }
.t-phong-bi-do-sam .pb-album__item--wide { grid-column: 1 / -1; height: 250px; }

/* ---------- 9. xác nhận ---------- */
.t-phong-bi-do-sam .pb-rsvp__lead { font-size: 12px; }
.t-phong-bi-do-sam .pb-form { display: grid; gap: 10px; margin-top: 16px; }
.t-phong-bi-do-sam .pb-field { width: 100%; box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: 500 15px var(--f-serif); }
.t-phong-bi-do-sam .pb-field::placeholder { color: var(--soft); }
.t-phong-bi-do-sam .pb-form__msg { min-height: 18px; font: 600 13px var(--f-serif); color: var(--wine); }
.t-phong-bi-do-sam .pb-rsvp [data-block="gift"] .pb-btn { margin-top: 0; }

/* ---------- 10. chân trang ---------- */
.t-phong-bi-do-sam .pb-end { padding: 40px 28px 36px; background: var(--wine); color: #fff; text-align: center; }
.t-phong-bi-do-sam .pb-end__names { font: 500 30px/1.2 var(--f-title); }
.t-phong-bi-do-sam .pb-end__date { margin-top: 4px; font: 500 20px var(--f-title); letter-spacing: .12em; font-variant-numeric: lining-nums; }
.t-phong-bi-do-sam .pb-end__calla { display: block; width: 76px; height: 50px; margin: 6px auto 4px; }
.t-phong-bi-do-sam .pb-end__text { color: rgba(255, 255, 255, .88); font-size: 12px; font-weight: 600; }
.t-phong-bi-do-sam .pb-end__thanks { margin-top: 10px; font-size: 52px; color: #fff; }
.t-phong-bi-do-sam .thiepmai-credit { background: var(--wine); }

/* ---------- màn mở thiệp: nền trắng, nút là phong bì đỏ sẫm có chữ lồng + nhành hoa rum ---------- */
.t-phong-bi-do-sam .thiepmai-gate__door { background: var(--gate-bg); box-shadow: none; }
.t-phong-bi-do-sam .thiepmai-gate__label { font: 500 12px var(--f-serif); letter-spacing: .2em; color: var(--soft); }
.t-phong-bi-do-sam .thiepmai-gate__guest { margin: 2px 0 8px; font-size: 40px; color: var(--wine); }
.t-phong-bi-do-sam .thiepmai-gate__names { margin-top: 14px; font-size: 34px; line-height: 1.2; color: var(--ink); }
.t-phong-bi-do-sam .thiepmai-gate__date { font: 500 19px var(--f-title); letter-spacing: .14em; color: var(--ink); font-variant-numeric: lining-nums; }
.t-phong-bi-do-sam .thiepmai-seal {
  width: 280px; height: 180px; margin-top: 26px; overflow: hidden;
  background:
    linear-gradient(to bottom right, transparent calc(50% - 1px), rgba(0, 0, 0, .22) 50%, transparent calc(50% + 1px)) left top / 50% 58% no-repeat,
    linear-gradient(to bottom left, transparent calc(50% - 1px), rgba(0, 0, 0, .22) 50%, transparent calc(50% + 1px)) right top / 50% 58% no-repeat,
    var(--wine);
  filter: drop-shadow(0 10px 14px rgba(60, 10, 20, .3));
  animation-duration: 3s;
}
.t-phong-bi-do-sam .thiepmai-seal::after {
  content: ""; position: absolute; right: 30px; bottom: 16px; width: 120px; height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M2 36 C20 32 38 26 58 14' fill='none' stroke='%23c9c06a' stroke-width='1.2' stroke-linecap='round'/%3E%3Cpath d='M6 37 C24 34 40 30 56 22' fill='none' stroke='%23d8cf7a' stroke-width='1' stroke-linecap='round'/%3E%3Cpath d='M40 22 C38 14 42 6 50 3 C52 10 50 18 44 22Z' fill='%237b4fb0'/%3E%3Cpath d='M44 21 C46 14 52 9 59 9 C58 16 52 21 46 22Z' fill='%239a74c8'/%3E%3C/svg%3E") center / contain no-repeat;
  rotate: -10deg;
}
.t-phong-bi-do-sam .thiepmai-seal__wax { display: none; }
.t-phong-bi-do-sam .thiepmai-seal__mark {
  display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-top: 6px; border: 1.5px solid rgba(255, 236, 240, .85); border-radius: 50%;
  font: 400 28px/1 var(--f-script); color: #fbe9ee; text-shadow: none;
}
.t-phong-bi-do-sam .thiepmai-seal__hint { margin-top: 22px; font: 500 15px var(--f-serif); letter-spacing: .14em; color: var(--soft); opacity: 1; }

/* ---------- lịch tháng ---------- */
.t-phong-bi-do-sam .pb-cal { padding-top: 6px; }
.t-phong-bi-do-sam .pb-cal__title { font: 400 34px/1.2 var(--f-script); color: var(--wine); margin-bottom: 10px; }
.t-phong-bi-do-sam .pb-cal__grid { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 0; }
.t-phong-bi-do-sam .pb-cal__row { display: grid; grid-template-columns: repeat(7, 1fr); }
.t-phong-bi-do-sam .pb-cal__row span { position: relative; display: grid; place-items: center; height: 36px; font: 500 16px var(--f-serif); font-variant-numeric: lining-nums; color: var(--ink); }
.t-phong-bi-do-sam .pb-cal__row--head span { height: 30px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--soft); }
.t-phong-bi-do-sam .pb-cal__row span b { position: relative; font-weight: inherit; }
.t-phong-bi-do-sam .pb-cal__row span.is-day svg { position: absolute; width: 32px; height: 30px; }
.t-phong-bi-do-sam .pb-cal__row span.is-day b { color: #fff; font-weight: 700; }
