/* template71 "Long Phụng" — sections.css: áo sơn mài cho các 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ố .t71 để không rò sang template khác.

   Nhịp nền: phần lớn các mục là sơn mài tối; nội dung nhiều chữ (sự kiện, chuyện tình, lời chúc)
   nằm trong tấm ngà có viền chỉ vàng. Chuyện tình, video, quà, mừng cưới dùng nền lụa ngà. */

.t71 .container-fluid { padding-inline: 18px; }
/* components/bridesmaids_and_groomsmen và gallery in sẵn lớp section-sub-title lên cả <section> / ô ảnh:
   gỡ max-width + lề tự động của lớp đó, nếu không mục phù dâu hẹp lại và hở một dải nền ở đáy. */
.t71 .people-section.section-sub-title,
.t71 .gallery-item.section-sub-title { max-width: none; margin-inline: 0; opacity: 1; }
.t71 .people-section.section-sub-title { margin-bottom: 0; }
.t71 section.py-5 { padding-block: 50px 56px !important; }

/* ---------- Nền theo section (component in sẵn lớp section-bg-affect, không có t71-*) ---------- */
.t71 .event-section,
.t71 .gallery-section,
.t71 .people-section {
  position: relative;
  color: var(--t71-ivory);
  background: var(--t71-lacquer-bg);
}
.t71 .story-section,
.t71 .video-section,
.t71 .gifts-section {
  position: relative;
  color: var(--t71-ink);
  background: url('../img/pattern-silk.svg') repeat, linear-gradient(180deg, var(--t71-ivory), var(--t71-silk));
}
/* Đường chỉ vàng đôi chạy ngang đầu mỗi mục — mối ghép giữa các tấm sơn mài. */
.t71 .wrapper > section + section,
.t71 .wrapper > div > section:first-child {
  border-top: 1px solid rgba(212, 170, 85, .55);
  box-shadow: inset 0 4px 0 var(--t71-lacquer-deep), inset 0 5px 0 rgba(212, 170, 85, .3);
}
.t71 .event-section .section-title,
.t71 .gallery-section .section-title,
.t71 .people-section .section-title {
  color: var(--t71-gold);
  background: var(--t71-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.t71 .story-section .section-title,
.t71 .video-section .section-title,
.t71 .gifts-section .section-title { color: var(--t71-vermilion); }

/* ---------- Sự kiện: thẻ ngà góc vát, dải ngày đỏ son ---------- */
.t71 .event-section .event-item {
  position: relative;
  flex-direction: column !important;
  margin: 0 auto 24px;
  max-width: 420px;
  padding: 6px;
  border-radius: 0 !important;
  color: var(--t71-ink);
  background: linear-gradient(180deg, #E7C676, #A8802F);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.t71 .event-section .event-item .image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%, 0 10px);
}
.t71 .event-section .event-item .info-wrap {
  padding: 22px 18px 24px !important;
  text-align: center;
  background: url('../img/pattern-silk.svg') repeat, var(--t71-ivory);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px));
}
.t71 .event-section .event-item h5 {
  margin: 0 0 .5rem;
  font-family: var(--t71-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--t71-vermilion);
}
.t71 .event-section .event-item strong {
  display: inline-block;
  margin-bottom: .6rem;
  padding: 4px 18px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--t71-gold-light);
  background: var(--t71-lacquer);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
}
.t71 .event-section .event-item .card-text { margin: 0 0 1rem; font-size: .95rem; line-height: 1.65; }
.t71 .event-section .event-item .btn {
  margin: 4px;
  padding: .45rem 1rem;
  border: 1px solid var(--t71-gold-deep);
  border-radius: 2px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--t71-lacquer);
  background: transparent;
}
.t71 .event-section .event-item .btn:hover { color: var(--t71-gold-light); background: var(--t71-lacquer); border-color: var(--t71-lacquer); }
/* Nút "Xem bản đồ" là nút chính của khách — tô đặc. */
.t71 .event-section .event-item .btn[target="_blank"] { color: var(--t71-gold-light); background: var(--t71-lacquer); border-color: var(--t71-lacquer); }

/* ---------- Lịch + đếm ngược ---------- */
.t71 .weddingdate-section { text-align: center; }
.t71 .weddingdate-section .t71-ruyi { margin: .2rem auto 1.4rem; }
.t71 .weddingdate-section .mini_calendar {
  position: relative;
  max-width: 360px;
  padding: 18px 14px 12px;
  border: 1px solid var(--t71-gold);
  outline: 1px solid rgba(212, 170, 85, .4);
  outline-offset: 4px;
  background: rgba(30, 3, 7, .45);
}
.t71 .mini_calendar table { width: 100%; caption-side: top; border-collapse: collapse; }
.t71 .mini_calendar .calendar-month {
  padding: 0 0 12px;
  text-align: center;
  font-family: var(--t71-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--t71-gold-light);
}
.t71 .mini_calendar th {
  padding: 8px 0;
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  color: var(--t71-gold);
  border-block: 1px solid rgba(212, 170, 85, .45);
}
.t71 .mini_calendar td { width: 14.28%; height: 40px; text-align: center; font-size: .92rem; color: var(--t71-ivory); }
/* Ngày cưới: ô hình thoi vàng (ấn vuông xoay 45°) thay cho chấm tròn. */
.t71 .mini_calendar td #today {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-weight: 700;
  color: var(--t71-lacquer-deep);
  isolation: isolate;
}
.t71 .mini_calendar td #today::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  transform: rotate(45deg);
  background: linear-gradient(180deg, #F7E3A6, #D4AA55);
  box-shadow: 0 0 0 2px var(--t71-lacquer-deep), 0 0 0 3px var(--t71-gold);
}
.t71 .weddingdate-section .countdown { margin-top: 28px; }
.t71 .weddingdate-section #clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}
.t71 .weddingdate-section #clock .box {
  padding: 12px 4px 10px;
  color: var(--t71-lacquer-deep);
  background: linear-gradient(180deg, #F7E3A6, #D4AA55 65%, #B48A3B);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}
.t71 .weddingdate-section #clock .box > div {
  font-family: var(--t71-serif);
  font-size: clamp(1.8rem, 8vw, 2.3rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.t71 .weddingdate-section #clock .box > span {
  display: block;
  margin-top: 4px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Chuyện tình: trục dọc đỏ son, mỗi mốc là một hạt châu ---------- */
.t71 .story-section .timeline .outer {
  position: relative;
  padding-inline-start: 28px;
  border-inline-start: 2px solid var(--t71-vermilion);
}
.t71 .story-section .timeline-card { position: relative; padding: 0 0 30px; }
.t71 .story-section .timeline-card:last-child { padding-bottom: 0; }
.t71 .story-section .timeline-card::before {
  content: "";
  position: absolute;
  top: 4px;
  inset-inline-start: -39px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--t71-vermilion);
  background: radial-gradient(circle at 40% 35%, #FFF6DC, #E7C676 55%, #A8802F);
}
.t71 .story-section .timeline .info { display: flex; flex-direction: column; text-align: start; }
.t71 .story-section .timeline .date {
  align-self: flex-start;
  padding: 2px 14px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--t71-gold-light);
  background: var(--t71-lacquer);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 50%, calc(100% - 6px) 100%, 6px 100%, 0 50%);
}
.t71 .story-section .timeline .title { margin: .6rem 0 .4rem; font-size: 1.55rem; color: var(--t71-vermilion); }
.t71 .story-section .timeline p { margin: 0 0 .9rem; font-size: .95rem; line-height: 1.8; }
.t71 .story-section .img-holder img {
  width: 100%;
  padding: 5px;
  background: linear-gradient(180deg, #E7C676, #A8802F);
}

/* ---------- Album: khung vàng mảnh, ảnh vát góc ---------- */
.t71 .gallery-section .gallery-item { margin-bottom: 8px !important; cursor: zoom-in; }
.t71 .gallery-section .gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  padding: 3px;
  background: linear-gradient(180deg, #E7C676, #A8802F);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}
.t71 .gallery-section #btn-see-more-gallery {
  padding: .6rem 2rem;
  border: 0;
  border-radius: 0;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--t71-lacquer-deep);
  background: linear-gradient(180deg, #F7E3A6, #D4AA55 60%, #B48A3B);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
}

/* ---------- Video ---------- */
/* Viền vàng bằng box-shadow để không đụng tỉ lệ 16:9 của .ratio; nền tối khi iframe chưa tải. */
.t71 .video-section .ratio {
  width: calc(100% - 12px);
  margin: 6px auto;
  background: var(--t71-lacquer-deep);
  box-shadow: 0 0 0 2px var(--t71-lacquer-deep), 0 0 0 6px var(--t71-gold);
}

/* ---------- Phù dâu / phù rể ---------- */
.t71 .people-section .people-avatar {
  width: 150px !important;
  height: 150px;
  overflow: hidden;
  border: 2px solid var(--t71-gold);
  padding: 5px;
  box-shadow: 0 0 0 4px var(--t71-lacquer-deep), 0 0 0 5px rgba(212, 170, 85, .5);
}
.t71 .people-section .people-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.t71 .people-section .title { font-family: var(--t71-serif); font-size: 1.5rem; font-weight: 600; color: var(--t71-gold-light); }
.t71 .people-section .people-content { font-size: .9rem; opacity: .9; }

/* ---------- Sổ lưu bút: form + danh sách chung một tấm ngà trong khung vàng ----------
   components/wish gắn sẵn `p-3 mb-3` lên #wish-form và #show-comments (Bootstrap, !important).
   Khung .t71-guestbook đã có padding riêng, nên: form giữ lề trong 0, danh sách bỏ p-3 (nếu không
   thẻ lời chúc thụt vào 16px so với ô nhập phía trên — lỗi đã gặp ở template70, commit 68cb5eb). */
.t71 .t71-guestbook {
  position: relative;
  padding: 22px 16px 8px;
  color: var(--t71-ink);
  background: url('../img/pattern-silk.svg') repeat, linear-gradient(180deg, var(--t71-ivory), var(--t71-silk));
  border: 5px solid transparent;
  border-image: linear-gradient(180deg, #E7C676, #A8802F) 1;
  box-shadow: inset 0 0 0 1px rgba(156, 116, 40, .45);
}
.t71 #wish-form { padding: 0 !important; margin-bottom: 20px !important; }
.t71 #wish-form .form-control {
  border: 1px solid rgba(156, 116, 40, .5) !important;
  border-radius: 2px;
  font-family: var(--t71-sans);
  color: var(--t71-ink);
  background: #fffdf7;
}
.t71 #wish-form .form-control:focus { border-color: var(--t71-vermilion) !important; box-shadow: 0 0 0 3px rgba(158, 24, 32, .14); }
.t71 #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: 0;
  border-radius: 0 !important;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t71-gold-light);
  background: linear-gradient(180deg, var(--t71-vermilion), var(--t71-lacquer));
}
/* 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) { .t71 #btn-submit-comment { font-size: .875rem; letter-spacing: .06em; padding-inline: 1rem !important; } }
.t71 .error-handling-messages #success,
.t71 .error-handling-messages #error { display: none; margin-top: 12px; padding: 8px 12px; color: #fff; text-align: center; }
.t71 .error-handling-messages #success { background: #2f6b3b; }
.t71 .error-handling-messages #error { background: var(--t71-vermilion); }
.t71 #show-comments {
  max-height: 420px;
  overflow-y: auto;
  padding: 16px 0 0 !important;
  margin-bottom: 8px !important;
  border-top: 1px solid rgba(156, 116, 40, .4);
}
/* Chưa có lời chúc nào thì ẩn hẳn khung danh sách (khỏi một đường kẻ trơ trọi dưới form);
   script lời chúc chèn .box-comment vào là khung hiện lại. */
.t71 #show-comments:not(:has(.box-comment)) { display: none; }
.t71 #show-comments .box-comment {
  border-inline-start: 3px solid var(--t71-gold-deep);
  background: rgba(255, 253, 247, .85);
  box-shadow: 0 3px 12px rgba(58, 6, 12, .07);
}
.t71 #show-comments .box-comment h4 { font-family: var(--t71-serif); font-size: 1.25rem; font-weight: 700; color: var(--t71-vermilion); }
.t71 #show-comments .box-comment p { font-size: .95rem; line-height: 1.7; }

/* ---------- Mừng cưới: hộp sơn mài nhỏ có nắp vàng ---------- */
.t71 .donate-section .donate-wrap { width: 100%; max-width: 330px; margin-inline: auto; }
.t71 .donate-card {
  position: relative;
  overflow: hidden;
  padding: 40px 18px 20px !important;
  border: 2px solid var(--t71-gold);
  border-radius: 0 !important;
  color: var(--t71-ivory);
  background: var(--t71-lacquer-bg);
  box-shadow: 0 0 0 4px var(--t71-ivory), 0 0 0 5px rgba(156, 116, 40, .5);
}
.t71 .donate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 22px;
  background: linear-gradient(180deg, #F7E3A6, #B48A3B);
  border-bottom: 1px solid var(--t71-lacquer-deep);
}
.t71 .donate-card .sub-title { color: var(--t71-gold-light); letter-spacing: .14em; font-size: .85rem; }
.t71 .donate-card .qr-code-image {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 8px;
  background: #fff;
}
.t71 .donate-card p { font-size: .9rem; overflow-wrap: anywhere; }
.t71 .donate-card strong { color: var(--t71-gold-light); }

.t71 .donate-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  padding: 70px 0;
  overflow: auto;
  background: rgba(26, 2, 5, .76) !important;
}
.t71 .donate-modal-content {
  position: relative;
  width: 92%;
  max-width: 560px;
  margin: auto;
  border: 4px solid transparent;
  border-image: linear-gradient(180deg, #E7C676, #A8802F) 1;
  background: url('../img/pattern-silk.svg') repeat, var(--t71-ivory);
  animation: t71-modal-in .35s ease;
}
.t71 .donate-modal .section-title { color: var(--t71-vermilion) !important; -webkit-text-fill-color: currentColor; background: none; }
.t71 .donate-modal .col-6 { width: 100%; max-width: 330px; margin-inline: auto; }
.t71 .donate-modal-close {
  position: absolute;
  top: 6px;
  inset-inline-end: 14px;
  z-index: 2;
  font-size: 30px;
  line-height: 1;
  color: var(--t71-vermilion) !important;
  cursor: pointer;
}
@keyframes t71-modal-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ---------- Quà tặng (components/gifts) ---------- */
#gifts .gift-card-price { color: var(--t71-vermilion); }
#gifts .gift-buy-link { border-color: var(--t71-lacquer); color: var(--t71-lacquer); }
#gifts .gift-buy-link:hover { background: #f6e6cc; color: var(--t71-lacquer); }
#gifts .gift-claim-btn,
#gifts .gift-submit { background: linear-gradient(45deg, var(--t71-vermilion), var(--t71-lacquer)); }
#gifts .gift-header { background: linear-gradient(135deg, var(--t71-vermilion), var(--t71-lacquer-deep)); }
#gifts .gift-info-ic,
#gifts .gift-selfbuy-ic { background: #f3e2c2; color: var(--t71-lacquer); }
#gifts .gift-copy-ic,
#gifts .gift-copyall { color: var(--t71-lacquer); }
#gifts .gift-cta-shopee { background: linear-gradient(90deg, var(--t71-vermilion), var(--t71-lacquer)); color: #fff; box-shadow: 0 10px 24px rgba(58, 6, 12, .3); }
#gifts .gift-modal-title { color: #fff; }
#gifts .gift-selfbuy { background: #f8eedb; border-color: #e3cb9c; }

/* ---------- Chân trang ---------- */
.t71 .t71-footer { padding: 56px 18px 44px; text-align: center; }
.t71-emblem--footer { margin-bottom: 18px; }
.t71-footer__blessing {
  margin: 0 0 .3rem;
  font-family: var(--t71-serif);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--t71-gold);
  background: var(--t71-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.t71-footer__thanks { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 500; color: var(--t71-ivory); }
.t71 #couple-name-thankyou { margin: 0; font-family: var(--t71-serif); font-size: 1.2rem; font-weight: 600; color: var(--t71-gold-light); }
