@import url("common.css");
@import url("animation.css");

html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.with-scrollbar {
    scrollbar-width: auto !important;
    -ms-overflow-style: auto !important;
}

.font-esthetic {
    font-family: 'Alex Brush', cursive !important;
}

.font-arabic {
    font-family: 'Roboto', sans-serif !important;
}

.img-center-crop {
    width: 18rem;
    height: 18rem;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: top;
}

html[data-bs-theme="dark"] .btn-transparent {
    background-color: rgba(var(--bs-dark-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

html[data-bs-theme="light"] .btn-transparent {
    background-color: rgba(var(--bs-light-rgb), 0.5) !important;
    backdrop-filter: blur(0.5rem);
}

.loading-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1056;
}

html[data-bs-theme="light"] .color-theme-svg {
    color: rgb(237, 237, 237);
    background-color: var(--bs-light);
}

html[data-bs-theme="dark"] .color-theme-svg {
    color: rgb(0, 0, 0);
    background-color: var(--bs-dark);
}

html[data-bs-theme="light"] .bg-light-dark {
    background-color: rgb(var(--bs-light-rgb));
}

html[data-bs-theme="dark"] .bg-light-dark {
    background-color: rgb(var(--bs-dark-rgb));
}

html[data-bs-theme="light"] .bg-white-black {
    background-color: rgb(var(--bs-white-rgb));
}

html[data-bs-theme="dark"] .bg-white-black {
    background-color: rgb(var(--bs-black-rgb));
}

.bg-cover-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* mask-image: linear-gradient(0.5turn, transparent, black 40%, black 60%, transparent); */
}

.width-loading {
    width: 25%;
}

.cursor-pointer {
    cursor: pointer;
}
.border-color-header{
    border: 1px solid rgb(var(--bs-black-rgb));
}


svg {
    display: block;
    line-height: 0;
    shape-rendering: geometricPrecision;
    backface-visibility: hidden;
}

.svg-wrapper {
    overflow: hidden !important;
    transform: translateZ(0) !important;
}

.no-gap-bottom {
    margin-bottom: -0.75rem !important;
}
.fa-heart-fill{
    color: red;
    text-shadow: 0 0 2px rgba(255, 0, 0, 0.8);
}
.fa-heart-size{
    font-size: 1.8rem;
}

.title-bride{
  font-size: 1.9rem !important;
}

/* ==== Album Hình Cưới ==== */
.gallery-grid { /* khoảng cách cột đã có g-3, chỉ fix layout */
  align-items: stretch;
}

.gallery-card {
  position: relative;
  aspect-ratio: 3 / 4;        /* đồng nhất tỉ lệ đứng, đẹp cho ảnh cưới */
  overflow: hidden;
  margin: 0;
  background: rgba(0,0,0,.02);
}

html[data-bs-theme="dark"] .gallery-card {
  background: rgba(255,255,255,.03);
}

.title-name{
  font-family: 'Alex Brush', cursive;
  font-size: 52px; /* Tăng size lên */
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(231, 96, 96, 0.2); /* Thêm shadow nhẹ */
}
.style-btn-good #btn-gcal-groom,
.style-map-groom 
{
    background: white;
    color: rgb(212, 175, 55);
    border: 1px solid rgb(212, 175, 55);
    font-weight: 600;
    transition: all 0.3s ease;
}
.style-btn-good #btn-gcal-groom:hover,
.style-map-groom:hover {
    background: rgb(212, 175, 55);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4) !important;
}
 .style-btn-good #btn-gcal-bride,
 .style-map-bride
 {
    background: white;
    color: rgb(231, 96, 96);
    border: 2px solid rgb(231, 96, 96);
    font-weight: 600;
    transition: all 0.3s ease;
}
.text-custom-address-groom {
    color: rgb(212, 175, 55);
}
.text-custom-address-bride {
    color: rgb(231, 96, 96);
}

.style-btn-good #btn-gcal-bride:hover
,.style-map-bride:hover 
{
    background: rgb(231, 96, 96);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 96, 96, 0.4) !important;
}

.see-button {
    background: rgb(212, 175, 55);
    color: white;
    border: none;
    padding: 10px 0px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    margin: 0 10px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    transition: all 0.3s;
}
 .see-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}

.see-button-secondary {
    background: white;
    color: rgb(231, 96, 96);
    border: 2px solid rgb(231, 96, 96);
}

.see-button-secondary:hover {
    background: rgb(231, 96, 96);
    color: white;
}

.gallery-img {
  object-fit: cover;
  transition: transform .6s ease, filter .6s ease;
  will-change: transform, filter;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.02);
}

/* điểm xuyết hình trái tim nhỏ */
.gallery-card::after,
.gallery-card::before {
  content: "❤";
  position: absolute;
  font-size: 0.9rem;
  color: #F14E95;
  opacity: .65;
  filter: drop-shadow(0 0 3px rgba(241,78,149,.35));
  animation: float-heart 6s ease-in-out infinite;
}
.gallery-card::before { top: 6%; left: 8%; animation-delay: .2s; }
.gallery-card::after  { bottom: 6%; right: 10%; animation-delay: 1s; }

#btn-more-photos .spinner-border { vertical-align: -2px; }

.map-google{
  display: inline-block;
  padding: 6px 0px;
  margin-top: 8px;
}


/* Tận dụng file animation.css để giữ phong cách chuyển động mượt */
@keyframes float-heart {
  0%,100% { transform: translateY(0) rotate(0deg); opacity: .65; }
  50%     { transform: translateY(-6px) rotate(-8deg); opacity: .9; }
}
/* ==== /Album Hình Cưới ==== */

/* Mini calendar */
.wm-cal {
  max-width: 460px;
  background-color: rgb(var(--bs-white-rgb));    
  padding: 18px 18px 14px;
  border: 3px solid rgb(187 15 15 / 40%)
}
.wm-cal .wm-cal__head {
  color:rgb(84, 83, 83);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .95;
}
.wm-cal .wm-cal__weekdays,
.wm-cal .wm-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-top: 14px;
  color:rgb(26, 26, 28);
}
.wm-cal .wm-cal__weekday {
  font-size: .85rem;
  opacity: .85;
}
.wm-cal .wm-cal__day {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  font-weight: 500;
  background: rgba(255,255,255,.06);
}
.wm-cal .wm-cal__day.is-out { opacity: .25; }
.wm-cal .wm-cal__day.is-wedding {
  background: rgb(250 161 159);
  color: #3f5167;
  box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 0 0 0px rgba(255,255,255,.9);
}
.wm-cal .wm-cal__day.is-party{
  background: rgb(213, 255, 221);
  color: #3f5167;
  box-shadow: 0 6px 18px rgba(0,0,0,.25), inset 0 0 0 0px rgba(255,255,255,.9);
}

@media (max-width: 420px){
  .wm-cal { padding: 14px; }
  .wm-cal .wm-cal__weekdays, .wm-cal .wm-cal__days { gap: 8px; }
}
/* ==== Lời Ngỏ ==== */

/* Nội dung căn trái trong khung hẹp */
.wm-letter__body{
  max-width: 25rem;                   /* ~672px */
  margin-inline: auto;
  text-align: left;                   /* căn trái như ảnh */
}

.wm-letter__body p{
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: rgba(33, 37, 41, .9);        /* chữ xám đậm, dịu mắt */
}

/* Nếu muốn gạch trang trí mảnh bên dưới tiêu đề (tùy chọn) */
.wm-letter::after{
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 10px auto 0;
  background: currentColor;
  opacity: .18;
  border-radius: 2px;
}

/* ===== QR Cards (Nhà trai / Nhà gái) ===== */
.qr-card{
  border: 2px dotted rgb(255, 218, 224);
  border-radius: 1rem;
  padding: 1.25rem 2.5rem 1rem;
  background: var(--bs-body-bg);
}

.qr-title{
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  margin: .25rem 0 1rem;
  opacity: .9;
  color: rgb(231, 97, 97);;
}

.qr-box{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: .75rem;
}
.qr-img{
  width: 500px;     /* gần giống mẫu */
  object-fit: contain;
  padding: .5rem;
  border-radius: 20px !important;
}

.qr-info p{
  font-size: .95rem;
  margin: .25rem 0;
}

/* ===== Contact Cards ===== */
.contact-card{
  border: 1px solid var(--bs-border-color);
  border-radius: 1rem;
  padding: 1rem;
  background: var(--bs-body-bg);
}
.contact-card .txt-copy{ white-space: nowrap; }


/* Slide ảnh */

.carousel-inner.fit-mode {
  max-height: 500px;
  background: #f5f5f5;      /* màu nền khi ảnh không lấp đầy */
}
.carousel-inner.fit-mode .carousel-item { 
   height: 100%; 
   top: -120px;
}
.carousel-inner.fit-mode .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* hiển thị toàn bộ ảnh, có letterbox */
  object-position: center;
  display: block;
}



/* Tối ưu hiển thị trên mobile */
@media (max-width: 420px){
  .qr-img{ width: 180px; height: 180px; }
}

#confirm-information .btn b { font-weight: 700; }
#rsvp-card .form-label { font-weight: 500; }

#rsvp-card,
#rsvp-Notification{
   max-width: 620px;
   background-color: rgb(255 236 236);
   border: 2px solid rgb(255 200 200) !important;
}

/* ===== /QR Cards (Nhà trai / Nhà gái) ===== */

/* Falling hearts on Welcome – FIX */
  .fall-heart{
  position: fixed;
  top: -8vh;                 /* rơi từ trên xuống bằng top */
  left: 0;
  z-index: 9999;
  pointer-events: none;
  user-select: none;
  font-size: var(--fs, 22px);
  opacity: var(--o, 0.9);
  filter: drop-shadow(0 2px 2px rgba(241,78,149,.25));
  /* rơi = top ; lắc + xoay = transform  */
  animation:
      heart-fall var(--dur, 9s) linear forwards,
      heart-sway  calc(var(--dur, 9s)*.6) ease-in-out infinite alternate;
  }

  @keyframes heart-fall {
  from { top: -8vh; }
  to   { top: 108vh; }
  }

  @keyframes heart-sway {
  from { transform: translateX(-18px) rotate(0deg); }
  to   { transform: translateX(18px)  rotate(360deg); }
  }


 /* ==== THIỆP CƯỚI MÀU ĐỎ === */
#welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fff4f4;
  padding: 16px 14px;
  text-align:center;
}
/* Khung nội dung để giới hạn chiều rộng */
#welcome .welcome-wrap{
  width: min(95vw, 980px);
  margin: 0 auto;
}


/* Khung thiệp chính */
.envelope-card {
  position: relative;
  width: min(600px, 90vw);
  aspect-ratio: 16 / 10;
  background: url("../assets/images/envenlope2.png") center/cover no-repeat;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lớp phủ mờ để nổi bật nội dung */
.envelope-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1px);
}

/* Nội dung trong thiệp */
.envelope-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

/* Tiêu đề "The Wedding Of" */
.envelope-inner h2.title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* Ảnh tròn ở giữa thiệp */
.envelope-inner img.photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Tên cô dâu chú rể */
.envelope-inner h2.names {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
  margin-top: 1rem;
}

/* Nút mở thiệp */
.envelope-inner button.open-btn {
  margin-top: 1.25rem;
  background: #fff;
  color: #a10000;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}
.envelope-inner button.open-btn:hover {
  background: #a10000;
  color: #fff;
}

/*  Hero Section */
.envelope-hero{ display:block; width:min(92vw,860px); margin-inline:auto; cursor:pointer; }
.envelope-hero-img{
  width:100%; display:block; border-radius:24px; box-shadow:0 24px 60px rgba(0,0,0,.22);
  animation:pulse 3.5s ease-in-out 1s infinite; will-change:transform;
}
.envelope-hero:hover .envelope-hero-img{ transform:scale(1.02); }

@keyframes pulse{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.035)} }

.envelope-caption{
  margin-top:.75rem; text-align:center; font-weight:600; letter-spacing:.18em;
  font-size:.9rem; opacity:.8; user-select:none;
}

.visually-hidden{
  position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);
  clip-path:inset(50%); white-space:nowrap; border:0; padding:0; margin:-1px;
}
/* Tiêu đề “Thiệp mời cưới” */
.invite-title{
  /* dùng clamp để responsive mượt, tối đa ~2.75rem */
  font-size: clamp(1.6rem, 2.2vw + 1.2rem, 2.75rem);
  margin: 0 0 10px 0;
  line-height: 1.15;
  letter-spacing: .02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.08);
  animation: fadeSlide .7s ease-out both;
}

/* gạch mảnh trang trí dưới tiêu đề (nhẹ, có thể bỏ nếu không thích) */
.invite-title::after{
  content: "";
  display: block;
  width: 220px;
  height: 2px;
  margin: 8px auto 4px;
  background: currentColor;
  opacity: .25;
  border-radius: 2px;
}



/* Hiệu ứng xuất hiện nhẹ cho tiêu đề */
@keyframes fadeSlide{
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Khối phong bì (đã có ở trước, giữ nguyên nếu bạn đã thêm) */
.envelope-hero{ display:block; width:min(92vw,860px); margin-inline:auto; cursor:pointer; }

.envelope-hero:hover .envelope-hero-img{ transform:scale(1.02); }

@keyframes pulse{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.035)} }

.envelope-caption{
  margin-top:.75rem; text-align:center; font-weight:600; letter-spacing:.18em;
  font-size:.9rem; opacity:.8; user-select:none;
}

.visually-hidden{
  position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0);
  clip-path:inset(50%); white-space:nowrap; border:0; padding:0; margin:-1px;
}
.customer-mb-btn{
   display: none !important;
}
.slide-desktop {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 75rem; 
}
.slide-desktop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* căn giữa mặc định */
}
.slide-desktop img { object-position: 50% 30%; }

 #confirm-information #btn-rsvp-groom {
      background: rgb(212, 175, 55);
      color: white;
      border: 2px solid rgb(212, 175, 55);
      font-weight: 600;
      transition: all 0.3s ease;
  }
  
 #confirm-information #btn-rsvp-groom:hover {
      background: rgb(184, 134, 11);
      border-color: rgb(184, 134, 11);
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4) !important;
  }
  
  #confirm-information #btn-rsvp-bride {
      background: rgb(231, 96, 96);
      color: white;
      border: 2px solid rgb(231, 96, 96);
      font-weight: 600;
      transition: all 0.3s ease;
  }
  
  #confirm-information #btn-rsvp-bride:hover {
      background: rgb(200, 70, 70);
      border-color: rgb(200, 70, 70);
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(231, 96, 96, 0.4) !important;
  }

.btn-switch-rsvp{
  background-color: rgb(121, 113, 113);
  color: rgb(241, 243, 244);
  border: 1px solid rgb(121, 113, 113);
  padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
}

.btn-switch-rsvp:hover {
    color: rgb(241, 243, 244);
    background-color:rgb(209 162 162);
    border-color: rgb(209 162 162); 
}
.confirm-information-img{
  width: 200px;
  height: auto;
  object-fit: cover;
}

 .btn-comfirmation {
    width: 300px;
    background: linear-gradient(135deg, rgb(212, 175, 55) 0%, rgb(231, 96, 96) 100%);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-comfirmation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 130, 75, 0.5) !important;
    filter: brightness(1.1);
}
.text-comfirm-box{
   font-size: 2.25rem;
}


.wm-events{
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.wm-event-title{
  letter-spacing: .06em;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 .35rem 0;
  color: var(--customer-pink, #e2557e);
}

.wm-event-sub{
  font-weight: 600;
  letter-spacing: .08em;
  opacity: .85;
  margin-bottom: .25rem;
}


/* Card “Tiệc thân mật” */
.wm-event-card{
  background: rgba(248,249,250,.9);
  border-radius: 1.25rem;
  padding: 1.25rem 1.1rem 1.35rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

/* Dòng ngày 01 . 11 . 2025 */
.wm-date-dotted{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: clamp(1.4rem, 4.6vw, 2.2rem);
  letter-spacing: .35rem;
  margin: .4rem 0 .75rem;
}
.wm-date-dotted span{ letter-spacing: .1rem; }
.wm-date-dotted i{ font-style: normal; opacity: .85; }

/* Nơi tổ chức + lịch âm */
.wm-place{
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .25rem;
}
.wm-lunar{
  font-style: italic;
  opacity: .7;
}

/* Khối “Lễ thành hôn” */
.wm-event-ceremony .wm-event-title{ margin-bottom: .4rem; }
.wm-event-ceremony .wm-event-sub{ margin-bottom: .25rem; }

/* Triplet: Tháng | Ngày | Năm */
.wm-date-triplet{
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: clamp(.6rem, 3vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto;
}
.wm-date-triplet .wm-col{
  text-align: center;
}
.wm-date-triplet .wm-col small{
  display: block;
  font-weight: 600;
  letter-spacing: .06em;
  opacity: .8;
}
.wm-date-triplet .wm-col strong{
  display: block;
  font-size: clamp(1.6rem, 6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.1;
}
.wm-date-triplet .wm-col.big strong{
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  font-size: clamp(2.4rem, 10vw, 3.4rem);
}

.wm-date-triplet .wm-sep{
  width: 2px;
  height: clamp(32px, 7vw, 40px);
  background: currentColor;
  opacity: .35;
  border-radius: 1px;
}

/* Theme tối */
[data-bs-theme="dark"] .wm-event-card{
  background: rgba(255,255,255,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}


/* tinh chỉnh nhỏ trên mobile */
@media (max-width: 420px){
  .invite-title::after{ width: 88px; }
  .envelope-hero-img{ height: 50%;}
  .envelope-caption{ font-size:.85rem; letter-spacing:.16em; }
   .customer-mb-btn{
      display: flex !important;
    }
    .customer-desktop-btn{
      display: none !important;
    }
    .title-bride{
      font-size: 1.5rem !important;
    }
    .see-button{
      padding: 4px 0px;
      font-size: 14px;
    }
    .carousel-inner.fit-mode .carousel-item { 
       top: -50px;
    }
    .style-map-bride,
    .style-map-groom{
      font-size: 13px;
    }
    #btn-rsvp-groom,
    #btn-rsvp-bride{
      font-size: 10px;
    }
     #rsvp-close{
      font-size: 10px;
    }
    .text-comfirm-box{
      font-size: 1.35rem;
    }
    .title-name{
      font-size: 38px; /* Tăng size lên */
    }
}
@media screen and (max-width: 992px) {
    .width-loading {
        width: 50%;
    }
    .envelope-hero-img{ height: 50%;}
    
    .customer-mb-btn{
      display: flex !important;
    }
    .customer-desktop-btn{
      display: none !important;
    }
    .title-bride{
      font-size: 1.5rem !important;
    }
    .see-button{
      padding: 4px 0px;
      font-size: 14px;
    }
    .carousel-inner.fit-mode .carousel-item { 
       top: -50px;
    }
}

@media screen and (max-width: 576px) {
    .width-loading {
        width: 75%;
    }
    .envelope-hero-img{ height: 50%;}
     .customer-mb-btn{
      display: flex !important;
    }
    .customer-desktop-btn{
      display: none !important;
    }
    .title-bride{
        font-size: 1.5rem !important;
    }
    .see-button{
      padding: 4px 0px;
      font-size: 14px;
    }
     .carousel-inner.fit-mode .carousel-item { 
       top: -50px;
    }
    #btn-rsvp-groom,
    #btn-rsvp-bride{
      font-size: 10px;
    }
    .text-custom-address-bride{
      font-size: 19px;
    }
    .style-map-bride,
    .style-map-groom{
      font-size: 14px;
    }
    #rsvp-close{
      font-size: 10px;
    }
    .text-comfirm-box{
      font-size: 1.55rem;
    }
     .title-name{
      font-size: 38px; /* Tăng size lên */
    }
}


