/* template70 "Song Hỷ" — sections.css: áo đỏ-vàng 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ố .t70 để không rò sang template khác. */

.t70 .container-fluid { padding-inline: 20px; }

/* ---------- Nền theo section (component in sẵn lớp section-bg-affect, không có t70-*) ---------- */
.t70 .event-section,
.t70 .story-section,
.t70 .video-section,
.t70 .gifts-section {
  position: relative;
  color: var(--t70-ink);
  background: url('../img/pattern-paper.svg') repeat, linear-gradient(180deg, var(--t70-cream), var(--t70-paper));
}
.t70 .gallery-section,
.t70 .people-section {
  position: relative;
  color: var(--t70-cream);
  background: url('../img/pattern-cloud.svg') repeat, radial-gradient(120% 80% at 50% 0%, #B71E22 0%, var(--t70-red) 45%, var(--t70-red-deep) 100%);
}
.t70 .gallery-section::before,
.t70 .people-section::before {
  content: "";
  position: absolute;
  inset: 8px 0 auto;
  height: 12px;
  background: url('../img/fret-band.svg') repeat-x center;
  opacity: .8;
}
.t70 .event-section .section-title,
.t70 .story-section .section-title,
.t70 .video-section .section-title,
.t70 .gifts-section .section-title { color: var(--t70-red-ink); }
.t70 .gallery-section .section-title,
.t70 .people-section .section-title {
  color: var(--t70-gold);
  background: var(--t70-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.t70 section.py-5 { padding-block: 64px 56px !important; }

/* ---------- Sự kiện: thẻ thiệp đứng, ảnh trên, chữ giữa ---------- */
.t70 .event-section .event-item {
  position: relative;
  flex-direction: column !important;
  margin: 0 auto 22px;
  max-width: 420px;
  border: 1px solid rgba(169, 131, 47, .6) !important;
  border-radius: 6px !important;
  background: #fffaf1;
  box-shadow: 0 10px 26px rgba(122, 14, 19, .1);
}
.t70 .event-section .event-item .image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--t70-red);
}
.t70 .event-section .event-item .info-wrap {
  padding: 22px 20px 24px !important;
  text-align: center;
}
.t70 .event-section .event-item h5 {
  margin: 0 0 .5rem;
  font-family: var(--t70-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--t70-red-ink);
}
.t70 .event-section .event-item strong {
  display: inline-block;
  margin-bottom: .6rem;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--t70-cream);
  background: var(--t70-red);
}
.t70 .event-section .event-item .card-text { margin: 0 0 1rem; font-size: .95rem; line-height: 1.65; }
.t70 .event-section .event-item .btn {
  margin: 4px;
  padding: .45rem 1rem;
  border: 1px solid var(--t70-gold-deep);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--t70-red-ink);
  background: transparent;
}
.t70 .event-section .event-item .btn:hover { color: var(--t70-cream); background: var(--t70-red); border-color: var(--t70-red); }
/* Nút "Xem bản đồ" là nút chính của khách — tô đặc. */
.t70 .event-section .event-item .btn[target="_blank"] { color: var(--t70-cream); background: var(--t70-red); border-color: var(--t70-red); }

/* ---------- Lịch + đếm ngược ---------- */
.t70 .weddingdate-section { text-align: center; }
.t70 .weddingdate-section .t70-cloud { margin: .2rem auto 1.6rem; }
.t70 .weddingdate-section .mini_calendar {
  max-width: 360px;
  padding: 18px 14px 10px;
  border: 1px solid rgba(217, 178, 98, .6);
  background: rgba(92, 10, 14, .35);
}
.t70 .mini_calendar table { width: 100%; caption-side: top; border-collapse: collapse; }
.t70 .mini_calendar .calendar-month {
  padding: 0 0 12px;
  text-align: center;
  font-family: var(--t70-serif);
  font-size: 1.2rem;
  color: var(--t70-gold-light);
}
.t70 .mini_calendar th {
  padding: 8px 0;
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  color: var(--t70-gold);
  border-block: 1px solid rgba(217, 178, 98, .45);
}
.t70 .mini_calendar td { width: 14.28%; height: 40px; text-align: center; font-size: .92rem; color: var(--t70-cream); }
.t70 .mini_calendar td #today {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-weight: 600;
  color: var(--t70-red-deep);
  background: linear-gradient(180deg, #F6DF9C, #D9B262);
  box-shadow: 0 0 0 3px rgba(243, 217, 139, .25);
}
.t70 .weddingdate-section .countdown { margin-top: 26px; }
.t70 .weddingdate-section #clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}
.t70 .weddingdate-section #clock .box {
  padding: 12px 4px 10px;
  border: 1px solid rgba(217, 178, 98, .7);
  background: rgba(92, 10, 14, .4);
}
.t70 .weddingdate-section #clock .box > div {
  font-family: var(--t70-serif);
  font-size: clamp(1.6rem, 7.5vw, 2.1rem);
  line-height: 1.1;
  white-space: nowrap;
  color: var(--t70-gold-light);
}
.t70 .weddingdate-section #clock .box > span {
  display: block;
  margin-top: 4px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--t70-cream);
}

/* ---------- Chuyện tình: một thanh dọc vàng, mỗi mốc một hạt kim cương đỏ ---------- */
.t70 .story-section .timeline .outer {
  position: relative;
  padding-inline-start: 26px;
  border-inline-start: 1.5px solid var(--t70-gold);
}
.t70 .story-section .timeline-card { position: relative; padding: 0 0 30px; }
.t70 .story-section .timeline-card:last-child { padding-bottom: 0; }
.t70 .story-section .timeline-card::before {
  content: "";
  position: absolute;
  top: 6px;
  inset-inline-start: -34px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--t70-gold);
  background: var(--t70-red);
  transform: rotate(45deg);
}
.t70 .story-section .timeline .info { display: flex; flex-direction: column; text-align: start; }
.t70 .story-section .timeline .date {
  align-self: flex-start;
  padding: 2px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--t70-cream);
  background: var(--t70-red);
}
.t70 .story-section .timeline .title { margin: .6rem 0 .4rem; font-size: 1.3rem; color: var(--t70-red-ink); }
.t70 .story-section .timeline p { margin: 0 0 .9rem; font-size: .95rem; line-height: 1.8; }
.t70 .story-section .img-holder img {
  width: 100%;
  border: 1px solid rgba(169, 131, 47, .55);
  padding: 5px;
  background: #fffaf1;
}

/* ---------- Album ---------- */
.t70 .gallery-section .gallery-item { margin-bottom: 8px !important; cursor: zoom-in; }
.t70 .gallery-section .gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid rgba(217, 178, 98, .7);
  padding: 3px;
  background: rgba(92, 10, 14, .4);
}
.t70 .gallery-section #btn-see-more-gallery {
  padding: .6rem 1.8rem;
  border: 1px solid var(--t70-gold);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--t70-red-deep);
  background: linear-gradient(180deg, #F6DF9C, #D9B262);
}

/* ---------- Video ---------- */
.t70 .video-section .ratio {
  border: 1px solid rgba(169, 131, 47, .6);
  padding: 6px;
  background: #fffaf1;
}

/* ---------- Phù dâu / phù rể ---------- */
.t70 .people-section .people-avatar {
  width: 150px !important;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--t70-gold);
  padding: 5px;
}
.t70 .people-section .people-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.t70 .people-section .title { font-family: var(--t70-serif); font-size: 1.3rem; color: var(--t70-gold-light); }
.t70 .people-section .people-content { font-size: .9rem; opacity: .88; }

/* ---------- Sổ lưu bút ---------- */
.t70 #wish-form {
  border: 1px solid rgba(169, 131, 47, .55);
  background: #fffaf1;
}
.t70 #wish-form .form-control {
  border: 1px solid rgba(169, 131, 47, .45) !important;
  border-radius: 4px;
  font-family: var(--t70-sans);
  color: var(--t70-ink);
  background: #fff;
}
.t70 #wish-form .form-control:focus { border-color: var(--t70-red) !important; box-shadow: 0 0 0 3px rgba(163, 23, 28, .12); }
.t70 #btn-submit-comment {
  min-height: 44px;
  border-radius: 999px !important;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t70-gold-light);
  background: linear-gradient(180deg, #B71E22, var(--t70-red-deep));
}
.t70 .error-handling-messages #success,
.t70 .error-handling-messages #error { display: none; margin-top: 12px; padding: 8px 12px; color: #fff; text-align: center; }
.t70 .error-handling-messages #success { background: #2f7a3b; }
.t70 .error-handling-messages #error { background: var(--t70-red); }
/* Component wish dùng chung gắn p-3 lên khung danh sách; template70 bỏ để thẻ lời chúc sát mép như form */
.t70 #show-comments { max-height: 420px; overflow-y: auto; padding: 0 !important; }
.t70 #show-comments .box-comment {
  border-inline-start: 3px solid var(--t70-red);
  background: rgba(255, 250, 241, .9);
  box-shadow: 0 4px 14px rgba(122, 14, 19, .06);
}
.t70 #show-comments .box-comment h4 { font-family: var(--t70-serif); font-size: 1.1rem; color: var(--t70-red-ink); }
.t70 #show-comments .box-comment p { font-size: .95rem; line-height: 1.7; }

/* ---------- Mừng cưới: mỗi thẻ là một phong bao đỏ có nắp vàng ---------- */
.t70 .donate-section .donate-wrap { width: 100%; max-width: 330px; margin-inline: auto; }
.t70 .donate-card {
  position: relative;
  overflow: hidden;
  padding: 46px 18px 20px !important;
  border: 1px solid var(--t70-gold);
  border-radius: 8px !important;
  color: var(--t70-cream);
  background: radial-gradient(120% 70% at 50% 0%, #B71E22, var(--t70-red-deep));
}
.t70 .donate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 36px;
  background: linear-gradient(180deg, #F6DF9C, #C39A45);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 50% 100%, 0 40%);
}
.t70 .donate-card .sub-title { color: var(--t70-gold-light); letter-spacing: .14em; font-size: .85rem; }
.t70 .donate-card .qr-code-image {
  display: block;
  width: 100%;
  max-width: 200px;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
}
.t70 .donate-card p { font-size: .9rem; overflow-wrap: anywhere; }
.t70 .donate-card strong { color: var(--t70-gold-light); }

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

/* ---------- Quà tặng (components/gifts) ---------- */
#gifts .gift-card-price { color: var(--t70-red-ink); }
#gifts .gift-buy-link { border-color: var(--t70-red); color: var(--t70-red-ink); }
#gifts .gift-buy-link:hover { background: #fbe9e4; color: var(--t70-red-ink); }
#gifts .gift-claim-btn,
#gifts .gift-submit { background: linear-gradient(45deg, #B71E22, var(--t70-red-deep)); }
#gifts .gift-header { background: linear-gradient(135deg, #B71E22, var(--t70-red-deep)); }
#gifts .gift-info-ic,
#gifts .gift-selfbuy-ic { background: #f6e3cf; color: var(--t70-red-ink); }
#gifts .gift-copy-ic,
#gifts .gift-copyall { color: var(--t70-red-ink); }
#gifts .gift-cta-shopee { background: linear-gradient(90deg, #B71E22, var(--t70-red-deep)); color: #fff; box-shadow: 0 10px 24px rgba(122, 14, 19, .3); }
#gifts .gift-modal-title { color: #fff; }
#gifts .gift-selfbuy { background: #fbf1e2; border-color: #ead3ad; }

/* ---------- Chân trang ---------- */
.t70 .t70-footer { padding: 72px 22px 40px; text-align: center; }
.t70 .t70-footer .t70-seal { margin-bottom: 22px; }
.t70-footer__blessing {
  margin: 0 0 .3rem;
  font-family: var(--t70-serif);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--t70-gold);
  background: var(--t70-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.t70-footer__thanks { margin: 0 0 .4rem; font-size: 1.1rem; font-weight: 400; color: var(--t70-cream); }
.t70 #couple-name-thankyou { margin: 0; font-family: var(--t70-serif); font-size: 1.05rem; color: var(--t70-gold-light); }
