/* template74 "Trầu Cau / Mâm Quả" — sections.css: áo kem lụa / chữ xanh lá trầu / điểm đỏ 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ố .t74 để không rò sang template khác. */

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

/* ---------- Nền xen kẽ: kem / xanh nhạt ---------- */
.t74 .story-section,
.t74 .people-section,
.t74 .gifts-section { background: var(--t74-tint); }
.t74 .weddingdate-section,
.t74 .gallery-section,
.t74 .video-section,
.t74 .donate-section { background: transparent; }

/* ---------- Lịch + đếm ngược ---------- */
.t74 .weddingdate-section { text-align: center; }
.t74 .weddingdate-section .mini_calendar {
  max-width: 340px;
  padding: 16px 12px 8px;
  border: 1px solid var(--t74-line);
  border-top: 3px solid var(--t74-green);
  border-radius: 10px;
  background: #fff;
}
.t74 .mini_calendar table { width: 100%; caption-side: top; border-collapse: collapse; }
.t74 .mini_calendar .calendar-month {
  padding: 0 0 12px;
  text-align: center;
  font-family: var(--t74-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--t74-green);
}
.t74 .mini_calendar th {
  padding: 8px 0;
  font-size: .7rem;
  font-weight: 600;
  text-align: center;
  color: var(--t74-red);
  border-bottom: 1px solid var(--t74-line);
}
.t74 .mini_calendar td { width: 14.28%; height: 40px; text-align: center; font-size: .92rem; color: var(--t74-ink); }
/* Ngày cưới: ô son vuông xoay nhẹ như con dấu — cùng kiểu ô ngày ở hero. */
.t74 .mini_calendar td #today {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  font-weight: 600;
  color: #fff;
  background: var(--t74-red);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--t74-gold);
  transform: rotate(-4deg);
}
/* Đếm ngược: bốn ô hình đèn lồng — thân đỏ bầu, chóp và đáy viền đồng. */
.t74 .weddingdate-section .countdown { margin-top: 30px; }
.t74 .weddingdate-section #clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}
.t74 .weddingdate-section #clock .box {
  position: relative;
  padding: 16px 2px 12px;
  border-block: 4px solid var(--t74-gold);
  border-radius: 40% / 26%;
  background: radial-gradient(circle at 50% 45%, #D23B2E, var(--t74-red) 60%, var(--t74-red-deep));
  box-shadow: 0 6px 14px rgba(142, 29, 22, .25);
}
.t74 .weddingdate-section #clock .box > div {
  font-family: var(--t74-serif);
  font-size: clamp(1.7rem, 7.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.05;
  white-space: nowrap;
  color: #fff;
}
.t74 .weddingdate-section #clock .box > span {
  display: block;
  margin-top: 2px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--t74-gold-soft);
}

/* ---------- Chuyện tình: thanh dọc xanh, mỗi mốc một quả cau nhỏ (vẽ bằng CSS) ---------- */
.t74 .story-section .timeline .outer {
  position: relative;
  padding-inline-start: 26px;
  border-inline-start: 1px solid var(--t74-green);
}
.t74 .story-section .timeline-card { position: relative; padding: 0 0 32px; }
.t74 .story-section .timeline-card:last-child { padding-bottom: 0; }
.t74 .story-section .timeline-card::before {
  content: "";
  position: absolute;
  top: 4px;
  inset-inline-start: -33px;
  width: 13px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #F2C66A, #E0913A 60%, #B8622A);
  box-shadow: 0 0 0 3px var(--t74-tint);
}
.t74 .story-section .timeline .info { display: flex; flex-direction: column; text-align: start; }
.t74 .story-section .timeline .date {
  align-self: flex-start;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--t74-red);
}
.t74 .story-section .timeline .title { margin: .3rem 0 .4rem; font-size: 1.5rem; color: var(--t74-green); }
.t74 .story-section .timeline p { margin: 0 0 .9rem; font-size: .93rem; line-height: 1.8; color: var(--t74-ink); }
.t74 .story-section .img-holder img {
  width: 100%;
  border: 4px solid #fff;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--t74-gold), 0 8px 22px rgba(31, 67, 48, .14);
}

/* ---------- Album: ảnh viền trắng + chỉ đồng, như ảnh dán trong sổ cưới ---------- */
.t74 .gallery-section .gallery-item { margin-bottom: 10px !important; cursor: zoom-in; }
.t74 .gallery-section .gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 4px solid #fff;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(201, 154, 62, .6), 0 6px 16px rgba(31, 67, 48, .14);
}
.t74 .gallery-section #btn-see-more-gallery {
  min-height: 44px;
  padding: .6rem 1.8rem;
  border: 1px solid var(--t74-red);
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--t74-red);
  background: transparent;
}
.t74 .gallery-section #btn-see-more-gallery:hover { color: #fff; background: var(--t74-red); }

/* ---------- Video ---------- */
.t74 .video-section .ratio { overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px var(--t74-gold), 0 8px 22px rgba(31, 67, 48, .14); }

/* ---------- Phù dâu / phù rể: ảnh tròn viền đồng như cô dâu chú rể ---------- */
.t74 .people-section .people-avatar {
  width: 140px !important;
  height: 140px;
  overflow: hidden;
  border: 3px solid var(--t74-cream);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--t74-gold);
}
.t74 .people-section .people-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.t74 .people-section .title { font-family: var(--t74-serif); font-size: 1.6rem; font-style: italic; font-weight: 500; color: var(--t74-green); }
.t74 .people-section .people-content { font-size: .88rem; color: var(--t74-muted); }

/* ---------- Sổ lưu bút ---------- */
.t74 #wish-form {
  border: 1px solid var(--t74-line);
  border-top: 3px solid var(--t74-green);
  border-radius: 10px;
  background: #fff;
}
.t74 #wish-form .form-control {
  border: 0 !important;
  border-bottom: 1px solid rgba(46, 94, 62, .4) !important;
  border-radius: 0;
  font-family: var(--t74-sans);
  color: var(--t74-ink);
  background: transparent;
}
.t74 #wish-form .form-control:focus { border-bottom-color: var(--t74-red) !important; box-shadow: none; }
.t74 #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;
  border-radius: 6px !important;
  padding-inline: 1.3rem !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--t74-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) { .t74 #btn-submit-comment { font-size: .875rem; letter-spacing: .06em; padding-inline: 1rem !important; } }
.t74 #btn-submit-comment:hover { background: var(--t74-red-deep); }
.t74 .error-handling-messages #success,
.t74 .error-handling-messages #error { display: none; margin-top: 12px; padding: 8px 12px; color: #fff; text-align: center; }
.t74 .error-handling-messages #success { background: var(--t74-green); }
.t74 .error-handling-messages #error { background: var(--t74-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. */
.t74 #show-comments { max-height: 420px; overflow-y: auto; padding: 0 !important; }
.t74 #show-comments .box-comment {
  border-inline-start: 3px solid var(--t74-green);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, .92);
}
.t74 #show-comments .box-comment h4 { font-family: var(--t74-serif); font-size: 1.25rem; color: var(--t74-red); }
.t74 #show-comments .box-comment p { font-size: .93rem; line-height: 1.7; }

/* ---------- Mừng cưới: thẻ có nắp đỏ như tráp ---------- */
.t74 .donate-section .donate-wrap { width: 100%; max-width: 320px; margin-inline: auto; }
.t74 .donate-card {
  position: relative;
  padding: 30px 18px 22px !important;
  border: 1px solid var(--t74-line);
  border-top: 10px solid var(--t74-red);
  border-radius: 12px !important;
  color: var(--t74-ink);
  background: #fff;
  box-shadow: inset 0 2px 0 var(--t74-gold), 0 8px 22px rgba(31, 67, 48, .1);
}
.t74 .donate-card .sub-title { color: var(--t74-green); letter-spacing: .18em; font-size: .8rem; font-weight: 600; text-transform: uppercase; }
.t74 .donate-card .qr-code-image {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--t74-gold);
}
.t74 .donate-card p { font-size: .9rem; overflow-wrap: anywhere; }
.t74 .donate-card strong { color: var(--t74-ink); }

.t74 .donate-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  padding: 70px 0;
  overflow: auto;
  background: rgba(23, 51, 36, .7) !important;
}
.t74 .donate-modal-content {
  position: relative;
  width: 92%;
  max-width: 560px;
  margin: auto;
  border-top: 4px solid var(--t74-red);
  border-radius: 12px;
  background: var(--t74-cream);
  animation: t74-modal-in .35s ease;
}
.t74 .donate-modal .section-title { color: var(--t74-green) !important; }
.t74 .donate-modal .col-6 { width: 100%; max-width: 320px; margin-inline: auto; }
.t74 .donate-modal-close {
  position: absolute;
  top: 6px;
  inset-inline-end: 14px;
  z-index: 2;
  font-size: 30px;
  line-height: 1;
  color: var(--t74-red) !important;
  cursor: pointer;
}
@keyframes t74-modal-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ---------- Quà tặng (components/gifts) ---------- */
#gifts .gift-card-price { color: var(--t74-red); }
#gifts .gift-buy-link { border-color: var(--t74-green); color: var(--t74-green); }
#gifts .gift-buy-link:hover { background: #e4ecdc; color: var(--t74-forest); }
#gifts .gift-claim-btn,
#gifts .gift-submit { background: var(--t74-red); }
#gifts .gift-header { background: linear-gradient(135deg, var(--t74-green), var(--t74-forest)); }
#gifts .gift-info-ic,
#gifts .gift-selfbuy-ic { background: #e4ecdc; color: var(--t74-green); }
#gifts .gift-copy-ic,
#gifts .gift-copyall { color: var(--t74-green); }
#gifts .gift-cta-shopee { background: var(--t74-red); color: #fff; box-shadow: 0 10px 24px rgba(142, 29, 22, .25); }
#gifts .gift-modal-title { color: #fff; }
#gifts .gift-selfbuy { background: #f2f5ea; border-color: #d3dec8; }

/* ---------- Chân trang: nền lá trầu, dây đèn, mâm trầu cau ---------- */
.t74 .t74-footer {
  position: relative;
  padding: 130px 24px 70px;
  text-align: center;
  overflow: hidden;
  color: var(--t74-cream);
  background:
    radial-gradient(70% 40% at 50% 45%, rgba(235, 210, 146, .14), transparent 70%),
    linear-gradient(180deg, #24503A, var(--t74-forest) 55%, #183626);
}
/* Mép trên: răng cưa kem nối với phần trên, đối xứng với mép dưới hero. */
.t74 .t74-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 12px;
  background: radial-gradient(circle at 10px 0, var(--t74-cream) 8px, transparent 8.5px) 0 0 / 20px 12px repeat-x;
}
.t74 .t74-garland--footer { top: 12px; }
.t74-footer__tray { display: block; width: 190px; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
.t74-footer__blessing {
  margin: 0 0 .5rem;
  font-family: var(--t74-serif);
  font-size: clamp(1.8rem, 8vw, 2.3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  color: var(--t74-gold-soft);
}
.t74-footer__thanks { margin: 0 0 .3rem; font-family: var(--t74-sans) !important; font-size: .74rem; font-weight: 600 !important; letter-spacing: .26em; text-transform: uppercase; color: rgba(251, 246, 234, .8); }
.t74 .t74-footer__names { margin: 0; font-family: var(--t74-serif); font-size: 1.7rem; font-style: italic; line-height: 1.3; color: var(--t74-cream); }
