/* template72 "Vu Quy / Tân Hôn" — sections.css: áo giấy kem / chữ son cho component dùng chung
   (resources/views/components/*). Không sửa markup của component; mọi luật bám vào id section
   hoặc lớp có sẵn, có tiền tố .t72 để không rò sang template khác. */

.t72 .container-fluid { padding-inline: 24px; }
.t72 section.py-5 { padding-block: 64px 56px !important; }

/* ---------- Nền xen kẽ: giấy / giấy sậm ---------- */
.t72 .story-section,
.t72 .people-section,
.t72 .gifts-section { background: var(--t72-tint) url('../img/paper-fiber.svg') repeat; }
.t72 .weddingdate-section,
.t72 .gallery-section,
.t72 .video-section,
.t72 .donate-section { background: transparent; }

/* ---------- Lịch + đếm ngược ---------- */
.t72 .weddingdate-section { text-align: center; }
.t72 .weddingdate-section .mini_calendar {
  max-width: 340px;
  padding: 16px 12px 8px;
  border-block: 1px solid var(--t72-red);
}
.t72 .mini_calendar table { width: 100%; caption-side: top; border-collapse: collapse; }
.t72 .mini_calendar .calendar-month {
  padding: 0 0 12px;
  text-align: center;
  font-family: var(--t72-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--t72-ink);
}
.t72 .mini_calendar th {
  padding: 8px 0;
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
  color: var(--t72-red);
  border-bottom: 1px solid var(--t72-line);
}
.t72 .mini_calendar td { width: 14.28%; height: 40px; text-align: center; font-size: .92rem; color: var(--t72-ink); }
/* Ngày cưới: ô vuông son như con dấu, không phải hình tròn. */
.t72 .mini_calendar td #today {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 2px;
  font-weight: 600;
  color: var(--t72-paper);
  background: var(--t72-red);
  transform: rotate(-3deg);
}
.t72 .weddingdate-section .countdown { margin-top: 28px; }
.t72 .weddingdate-section #clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 340px;
  margin: 0 auto;
}
.t72 .weddingdate-section #clock .box { padding: 6px 2px; }
.t72 .weddingdate-section #clock .box + .box { border-inline-start: 1px solid var(--t72-line); }
.t72 .weddingdate-section #clock .box > div {
  font-family: var(--t72-serif);
  font-size: clamp(2rem, 9vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--t72-red);
}
.t72 .weddingdate-section #clock .box > span {
  display: block;
  margin-top: 2px;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--t72-muted);
}

/* ---------- Chuyện tình: thanh dọc mảnh, mỗi mốc một hoa đào nhỏ (vẽ bằng CSS) ---------- */
.t72 .story-section .timeline .outer {
  position: relative;
  padding-inline-start: 26px;
  border-inline-start: 1px solid var(--t72-red);
}
.t72 .story-section .timeline-card { position: relative; padding: 0 0 32px; }
.t72 .story-section .timeline-card:last-child { padding-bottom: 0; }
.t72 .story-section .timeline-card::before {
  content: "";
  position: absolute;
  top: 5px;
  inset-inline-start: -33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 3px solid var(--t72-tint);
  background: var(--t72-red);
  box-shadow: 0 0 0 1px var(--t72-red);
}
.t72 .story-section .timeline .info { display: flex; flex-direction: column; text-align: start; }
.t72 .story-section .timeline .date {
  align-self: flex-start;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--t72-red);
}
.t72 .story-section .timeline .title { margin: .3rem 0 .4rem; font-size: 1.5rem; color: var(--t72-ink); }
.t72 .story-section .timeline p { margin: 0 0 .9rem; font-size: .93rem; line-height: 1.8; color: var(--t72-ink); }
.t72 .story-section .img-holder img {
  width: 100%;
  padding: 6px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(70, 48, 28, .12);
}

/* ---------- Album: ảnh dán, viền trắng ---------- */
.t72 .gallery-section .gallery-item { margin-bottom: 10px !important; cursor: zoom-in; }
.t72 .gallery-section .gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  padding: 4px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(70, 48, 28, .12);
}
.t72 .gallery-section #btn-see-more-gallery {
  min-height: 44px;
  padding: .6rem 1.8rem;
  border: 1px solid var(--t72-red);
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--t72-red);
  background: transparent;
}
.t72 .gallery-section #btn-see-more-gallery:hover { color: var(--t72-paper); background: var(--t72-red); }

/* ---------- Video ---------- */
.t72 .video-section .ratio { padding: 6px; background: #fff; box-shadow: 0 8px 22px rgba(70, 48, 28, .12); }

/* ---------- Phù dâu / phù rể ---------- */
.t72 .people-section .people-avatar {
  width: 140px !important;
  height: 140px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--t72-line);
}
.t72 .people-section .people-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.t72 .people-section .title { font-family: var(--t72-serif); font-size: 1.4rem; font-weight: 600; color: var(--t72-ink); }
.t72 .people-section .people-content { font-size: .88rem; color: var(--t72-muted); }

/* ---------- Sổ lưu bút ---------- */
.t72 #wish-form {
  border: 1px solid var(--t72-line);
  background: var(--t72-paper);
}
.t72 #wish-form .form-control {
  border: 0 !important;
  border-bottom: 1px solid rgba(107, 86, 68, .4) !important;
  border-radius: 0;
  font-family: var(--t72-sans);
  color: var(--t72-ink);
  background: transparent;
}
.t72 #wish-form .form-control:focus { border-bottom-color: var(--t72-red) !important; box-shadow: none; }
.t72 #btn-submit-comment {
  /* Component wish gắn `w-50` (50% cố định): chữ in hoa giãn rộng bị xuống dòng/tràn ở máy hẹp.
     Cho nút co theo chữ — tối thiểu 50%, tối đa bằng khung; chỉ xuống dòng khi vượt cả khung. */
  width: auto !important;
  min-width: 50%;
  max-width: 100%;
  white-space: normal;
  min-height: 44px;
  padding-inline: 1.5rem !important;
  border-radius: 2px !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--t72-paper);
  background: var(--t72-red);
}
/* Máy hẹp: nhãn dài (de/ru/hu/uk…) vẫn nằm một dòng — giảm giãn chữ + cỡ chữ. */
@media (max-width: 420px) { .t72 #btn-submit-comment { font-size: .875rem; letter-spacing: .06em; padding-inline: 1rem !important; } }
.t72 #btn-submit-comment:hover { background: var(--t72-red-deep); }
.t72 .error-handling-messages #success,
.t72 .error-handling-messages #error { display: none; margin-top: 12px; padding: 8px 12px; color: #fff; text-align: center; }
.t72 .error-handling-messages #success { background: #2f6b3b; }
.t72 .error-handling-messages #error { background: var(--t72-red); }
/* Component wish dùng chung gắn p-3 lên khung danh sách (bài học template70, commit 68cb5eb):
   bỏ để thẻ lời chúc thẳng mép với form. */
.t72 #show-comments { max-height: 420px; overflow-y: auto; padding: 0 !important; }
.t72 #show-comments .box-comment {
  border-inline-start: 2px solid var(--t72-red);
  background: rgba(250, 245, 234, .9);
}
.t72 #show-comments .box-comment h4 { font-family: var(--t72-serif); font-size: 1.25rem; color: var(--t72-red); }
.t72 #show-comments .box-comment p { font-size: .93rem; line-height: 1.7; }

/* ---------- Mừng cưới: thẻ giấy, ấn son góc trên ---------- */
.t72 .donate-section .donate-wrap { width: 100%; max-width: 320px; margin-inline: auto; }
.t72 .donate-card {
  position: relative;
  padding: 26px 18px 20px !important;
  border: 1px solid var(--t72-line);
  border-top: 3px solid var(--t72-red);
  border-radius: 0 !important;
  color: var(--t72-ink);
  background: var(--t72-paper) url('../img/paper-fiber.svg') repeat;
  box-shadow: 0 8px 22px rgba(70, 48, 28, .1);
}
.t72 .donate-card .sub-title { color: var(--t72-red); letter-spacing: .18em; font-size: .8rem; font-weight: 600; text-transform: uppercase; }
.t72 .donate-card .qr-code-image {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--t72-line);
}
.t72 .donate-card p { font-size: .9rem; overflow-wrap: anywhere; }
.t72 .donate-card strong { color: var(--t72-ink); }

.t72 .donate-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  padding: 70px 0;
  overflow: auto;
  background: rgba(46, 36, 27, .6) !important;
}
.t72 .donate-modal-content {
  position: relative;
  width: 92%;
  max-width: 560px;
  margin: auto;
  border-top: 3px solid var(--t72-red);
  background: var(--t72-paper) url('../img/paper-fiber.svg') repeat;
  animation: t72-modal-in .35s ease;
}
.t72 .donate-modal .section-title { color: var(--t72-red) !important; }
.t72 .donate-modal .col-6 { width: 100%; max-width: 320px; margin-inline: auto; }
.t72 .donate-modal-close {
  position: absolute;
  top: 6px;
  inset-inline-end: 14px;
  z-index: 2;
  font-size: 30px;
  line-height: 1;
  color: var(--t72-red) !important;
  cursor: pointer;
}
@keyframes t72-modal-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ---------- Quà tặng (components/gifts) ---------- */
#gifts .gift-card-price { color: var(--t72-red); }
#gifts .gift-buy-link { border-color: var(--t72-red); color: var(--t72-red); }
#gifts .gift-buy-link:hover { background: #f6e6df; color: var(--t72-red-deep); }
#gifts .gift-claim-btn,
#gifts .gift-submit { background: var(--t72-red); }
#gifts .gift-header { background: linear-gradient(135deg, var(--t72-red), var(--t72-red-deep)); }
#gifts .gift-info-ic,
#gifts .gift-selfbuy-ic { background: #f2e3d3; color: var(--t72-red); }
#gifts .gift-copy-ic,
#gifts .gift-copyall { color: var(--t72-red); }
#gifts .gift-cta-shopee { background: var(--t72-red); color: #fff; box-shadow: 0 10px 24px rgba(126, 23, 18, .25); }
#gifts .gift-modal-title { color: #fff; }
#gifts .gift-selfbuy { background: #f7efe2; border-color: #e6d4b8; }

/* ---------- Chân trang ---------- */
.t72 .t72-footer { position: relative; padding: 80px 24px 56px; text-align: center; overflow: hidden; }
.t72 .t72-footer .t72-seal { margin-bottom: 22px; }
.t72-branch--footer { top: 8px; left: 50%; margin-left: -85px; opacity: .85; }
.t72 .t72-footer .t72-seal { margin-top: 70px; }
.t72-footer__blessing {
  margin: 0 0 .3rem;
  font-family: var(--t72-serif);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--t72-red);
}
.t72-footer__thanks { margin: 0 0 .4rem; font-family: var(--t72-sans) !important; font-size: .78rem; font-weight: 600 !important; letter-spacing: .26em; text-transform: uppercase; color: var(--t72-muted); }
.t72 #couple-name-thankyou { margin: 0; font-family: var(--t72-serif); font-size: 1.3rem; font-weight: 600; color: var(--t72-ink); }
