:root {
    --primary-color: #d63384;
    --text-color: #333;
    --overlay-bg: rgba(255, 255, 255, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #fce4ec;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    justify-content: center;
    padding: 0px;
    min-height: 100vh;
}

.wedding-card {
    max-width: 480px;
    width: 100%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border: 6px double #fff;
    background-color: #fff;
    display: flex;
    flex-direction: column; /* Đảm bảo 3 phần xếp dọc */
}
/* Container thông tin gia đình */
.family-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.vertical-line {
  width: 1px;
  height: 80px;
  background-color: #333;
}

/* Thiết kế cụm ngày tháng đặc trưng của mẫu */
.date-big-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 10px 0;
}

.side-label {
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 5px 10px;
  font-weight: bold;
  font-size: 0.9rem;
}

.main-number {
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
}

.wedding-silhouette {
  display: flex;          /* Kích hoạt Flexbox */
  justify-content: center; /* Căn giữa theo chiều ngang */
  align-items: center;     /* Căn giữa theo chiều dọc (quan trọng để icon không lệch) */
  gap: 20px;               /* Khoảng cách giữa các icon */
  margin: 20px 0;
}

.wedding-silhouette img {
  width: 80px;            /* Điều chỉnh kích thước icon vừa vặn */
  height: auto;
  object-fit: contain;
}

.event-name {
  color: #d19a9a; /* Màu hồng nhạt như trong ảnh */
  font-weight: bold;
  letter-spacing: 2px;
  margin-top: 10px;
}

.family-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Khoảng cách từ chữ đến vạch kẻ dọc */
    width: 100%;
}

.family-box {
    flex: 1;
    max-width: 250px; /* Giới hạn độ rộng để text không bị quá dài */
}

/* NHÀ GÁI: Căn lề phải để chữ sát vào vạch kẻ */
.left-side {
    text-align: right;
}

/* NHÀ TRAI: Căn lề trái để chữ sát vào vạch kẻ */
.right-side {
    text-align: left;
}

.family-box h3 {
    font-size: 1.1rem;
    color: #8b1515;
    margin-bottom: 8px;
    font-weight: bold;
}

.family-box p {
    margin: 4px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: nowrap; /* Ngăn chữ bị xuống dòng làm mất cân đối */
}

.vertical-line {
    width: 1.5px;
    height: 70px;
    background-color: #333; /* Màu đen hoặc xám đậm cho rõ nét */
}
/* --- PHẦN 1: HERO SECTION (CÓ HÌNH NỀN) --- */
.part-1-hero {
    padding: 10px 10px 10px; /* Giảm padding bottom để tiếp nối tự nhiên với phần 2 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Giới hạn hiệu ứng bóng chữ chỉ trong phần 1 để không làm lem nhem phần 2 & 3 */
.part-1-hero * {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff;
    color: var(--text-color);
}


.wedding-header {
  font-family: 'Great Vibes', cursive;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  position: relative; /* Để các lớp chữ có thể xếp chồng nếu muốn */
}

.main-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 3.5rem;      /* Độ lớn vừa phải cho mobile */
  font-weight: 300;       /* Nét chữ thanh mảnh */
  letter-spacing: 12px;   /* Khoảng cách chữ rộng đặc trưng của thiệp cao cấp */
  color: #333;
  margin: 10px;
  line-height: 1;
  text-transform: uppercase; /* Luôn viết hoa */
}

.sub-title {
  font-family: 'Great Vibes', cursive;
  font-size: 2.8rem;
  color: #d4a373;         /* Màu vàng đồng hoặc hồng đất nhẹ */
  margin-top: -10px;      /* Kéo chữ lên gần hoặc chồng nhẹ lên chữ WEDDING */
  font-weight: 400;
  letter-spacing: 2px;
}

/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 480px) {
  .main-title {
    font-size: 2.5rem;
    letter-spacing: 8px;
  }
  .sub-title {
    font-size: 2rem;
  }
}

/* --- PHẦN 2 & 3: BỐ CỤC CHUNG (NỀN TRƠN) --- */
.part-2-calendar, 
.part-3-location {
    background-color: #fff; /* Xóa hình nền, đặt nền trắng */
    padding: 10px 20px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* --- PART 4: ROMANTIC QUOTE SECTION (CẬP NHẬT) --- */
.part-4-quote {
    background-color: #fcfcfc;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-top: 1px solid #f0eaec;
    border-bottom: 1px solid #f0eaec;
}

.quote-container {
    max-width: 90%;
}

/* Kiểu hiển thị ngang cho Header */
.invitation-header-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Khoảng cách giữa trái tim và chữ */
    margin-bottom: 25px;
}

.invitation-header-inline h3 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    letter-spacing: 2px;
    font-size: 1rem;
    color: #555; /* Màu chữ xám sẫm */
    margin: 0;
}

/* Định dạng trái tim màu đỏ */
.heart-inline {
    font-size: 1.1rem;
    color: red; /* Màu đỏ tươi theo yêu cầu */
}

/* --- PHẦN TEXT BÊN DƯỚI --- */
.quote-text, .quote-invite {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}

.quote-text {
    margin-bottom: 20px;
}

.quote-date {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 25px 0;
    letter-spacing: 2px;
    font-weight: 700;
}

/* --- PART 5: THANK YOU IMAGE SECTION --- */
.part-5-thank-you {
    width: 100%;
    background-color: #fff;
    padding-top: 30px; /* Tạo khoảng trống phía trên chữ WEDDING */
    display: flex;
    flex-direction: column;
}

/* Header: WEDDING INVITATION 2026 */
.thank-you-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 15px;
    font-family: 'Quicksand', sans-serif;
    color: #333;
}

.thank-you-header .side-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #777;
}

.thank-you-header .center-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Container chứa ảnh và chữ */
.thank-you-image-container {
    position: relative;
    width: 100%;
    display: flex; /* Xóa khoảng trắng thừa dưới đáy ảnh */
}

.thank-you-photo {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover; /* Đảm bảo ảnh không bị méo */
    display: block;
}

/* Chữ Cảm ơn đè lên hình */
.thank-you-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px; /* Padding top lớn để tạo độ dốc gradient */
    text-align: center;
    color: #fff; /* Chữ màu trắng */
    font-family: 'Quicksand', sans-serif;
    font-size: 0.8rem;
    line-height: 1.8;
    /* Phủ một lớp bóng đen mờ từ dưới lên để làm nổi bật chữ trắng */
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Thêm viền bóng cho chữ */
}

/* --- PART 2: CALENDAR OVERLAY SECTION --- */
.part-2-calendar-overlay {
    width: 100%;
    height: 550px; /* Cố định chiều cao tổng thể để hiển thị ảnh */
    background-image: url('image/image-calender.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin: 20px 0;
    overflow: hidden;
    /* Dùng Flexbox để ép khối lịch rớt xuống dưới cùng */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* Khối Lịch chiếm 50% không gian phía dưới */
.calendar-bottom-half {
    width: 100%;
    height: 55%; /* Phủ khoảng 55% để có hiệu ứng chuyển màu mượt hơn */
    padding: 30px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Lớp phủ chuyển từ trong suốt (trên) xuống trắng tinh (dưới) */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 35%, rgba(255, 255, 255, 1) 100%);
}

.calendar-month {
    font-weight: bold; 
    font-size: 1.1rem; 
    color: #ad1457; 
    margin-bottom: 15px;
    text-shadow: 0 0 5px #fff; /* Chống lóa nhẹ cho viền chữ */
}

.calendar-grid {
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 8px; 
    font-size: 0.9rem; 
    color: var(--text-color);
    width: 100%;
    text-align: center;
}

/* Thiết lập riêng cho trái tim ngày cưới để nó luôn nổi bật trên nền overlay */
.wedding-day {
    color: white !important; 
    font-weight: bold; 
    position: relative; 
    z-index: 1;
}

.wedding-day::before {
    content: "❤"; 
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    font-size: 2.4rem; 
    color: #ff4d4d; 
    z-index: -1; 
    text-shadow: none;
}

/* ===== PART 6 WELCOME ===== */

.part-6-welcome{
  height:100vh;
  background-image: url('image/imgae-slider1.jpg');
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
}

/* overlay làm tối ảnh để nổi chữ */

.part-6-welcome::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.35);
}

.welcome-overlay{
  position:relative;
  z-index:2;
  text-align:center;
  color:pink;
  padding:20px;
  margin-top: 400px;
}

/* tiêu đề */

.welcome-title{
  font-family:'Quicksand', sans-serif;
  font-size:34px;
  letter-spacing:4px;

  text-shadow:
  0 4px 15px rgba(0,0,0,0.8),
  0 2px 5px rgba(0,0,0,0.6);

  margin-bottom: 10px;
}

/* tên cô dâu chú rể */

.couple-animation{
  font-family:'Great Vibes', cursive;
  font-size:60px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;

  text-shadow:
  0 5px 20px rgba(0,0,0,0.9),
  0 2px 8px rgba(0,0,0,0.6);
}

/* hiệu ứng chạy từ trái */

.bride-name{
  opacity:0;
  font-size: 2.5rem;
  transform:translateX(-250px);
  animation:slideBride 2s forwards;
}

/* hiệu ứng chạy từ phải */

.groom-name{
  opacity:0;
  font-size: 2.5rem;
  transform:translateX(250px);
  animation:slideGroom 2s forwards;
}

/* trái tim */

.heart-icon{
  font-size:50px;
  color:#ff4d6d;
  opacity:0;

  text-shadow:
  0 0 10px rgba(255,77,109,0.8),
  0 0 25px rgba(255,77,109,0.6);

  animation:
  heartAppear 1.5s forwards 1.5s,
  heartBeat 1.5s infinite 3s;
}

/* ngày cưới */

.welcome-date{
  margin-top:10px;
  font-size:30px;
  font-weight:bold;
  letter-spacing:3px;

  text-shadow:
  0 4px 10px rgba(0,0,0,0.8);
}

/* =========================================
   PART 7: LOVE STORY SECTION
========================================= */
.part-7-love-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background-color: #fffaf9; /* Màu nền pastel nhẹ nhàng, có thể đổi theo theme */
}

.love-story-header {
  margin-bottom: 25px;
}

.love-title-vi {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #555;
  letter-spacing: 3px;
  margin: 0 0 5px 0;
  text-transform: uppercase;
}

.love-title-en {
  font-family: 'Dancing Script', cursive; /* Hoặc dùng 'Great Vibes' */
  font-size: 2.5rem;
  font-weight: 600;
  color: #c98a7a; /* Màu cam đất/hồng nhạt thanh lịch */
  margin: 0;
}

.love-story-image-container {
  width: 100%;
  max-width: 400px; /* Giới hạn kích thước ảnh trên mobile/desktop */
  border-radius: 12px; /* Bo góc mềm mại */
  padding: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Đổ bóng tạo chiều sâu như khung ảnh thật */
}

.love-story-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px; /* Bo góc nhẹ cho ảnh bên trong */
  object-fit: cover;
}
.love-story-photo {
  width: 100%;
  aspect-ratio: 5 / 5; 
  object-fit: cover; 
  object-position: center 20%; 
  display: block;
  border-radius: 8px;
}

/* =========================================
   PART 8: FALL IN LOVE SECTION
========================================= */
.part-8-fall-in-love {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background-color: #ffffff;
  overflow: hidden; /* Ngăn chặn thanh cuộn ngang khi ảnh bị đẩy ra ngoài màn hình */
}

.fall-title {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #555;
  letter-spacing: 4px;
  margin-bottom: 25px;
}

.fall-in-love-image-container {
  width: 100%;
  max-width: 400px;
}

.fall-in-love-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- ANIMATION LOGIC --- */
/* Trạng thái ban đầu: Vị trí lệch sang trái 100px và tàng hình (opacity: 0) */
.slide-from-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform; /* Báo cho GPU chuẩn bị tài nguyên render */
}

/* Trạng thái khi JS kích hoạt: Trở về vị trí gốc (0) và hiện rõ */
.slide-from-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* =========================================
   PART 9: THE JOURNEY SECTION
========================================= */
.part-9-journey {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  background-color: #f4f4f4; /* Màu nền xám nhạt làm nổi bật nội dung */
}

/* --- Container chứa Icon và Text --- */
.journey-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px; /* Khoảng cách giữa chữ Hỷ và dòng chữ tiếng Anh */
  margin-bottom: 30px;
}

/* --- Styling cho chữ Hỷ Unicode --- */
.traditional-icon {
  font-size: 3.5rem;
  color: #a03c3c; /* Mã màu đỏ bã trầu giống thiết kế gốc */
  line-height: 1;
  font-family: "Times New Roman", serif; /* Đảm bảo hệ điều hành render đúng font cổ điển */
}

/* --- Styling cho chữ FALL INLOVE --- */
.journey-title {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.journey-title span {
  font-family: "Times New Roman", serif; /* Dùng font có chân (Serif) để tạo sự sang trọng */
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #333;
  line-height: 1.2;
}

/* --- Styling cho đoạn Quote --- */
.journey-quote {
  max-width: 600px;
  text-align: center;
  margin-bottom: 35px;
}

.journey-quote p {
  font-family: 'Quicksand', sans-serif; /* Tái sử dụng font Quicksand đã có sẵn */
  font-size: 1.1rem;
  color: #888;
  line-height: 1.8;
  font-weight: 400;
}

/* --- Styling cho hình ảnh bên dưới --- */
.journey-image-container {
  width: 100%;
  max-width: 600px;
}

.journey-photo {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* --- ANIMATION LOGIC --- */
.slide-from-left {
  opacity: 0;
  transform: translateX(-100px); /* Lệch sang trái 100px */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.slide-from-right {
  opacity: 0;
  transform: translateX(100px); /* Lệch sang phải 100px */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

/* Class dùng chung để kích hoạt trạng thái hiển thị cho cả 2 hướng */
.slide-from-left.is-visible,
.slide-from-right.is-visible {
  opacity: 1;
  transform: translateX(0); /* Trở về vị trí trung tâm */
}

/* =========================================
   PART 10: PERFECTION SECTION
========================================= */
.part-10-perfection {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 10px;
  background-color: #f4f4f4; /* Nền xám nhạt như Part 9 */
}

/* --- Container chứa Icon và Text --- */
.perfection-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* Khoảng cách giữa chữ Hỷ và văn bản */
  margin-bottom: 30px;
}

/* TÁI SỬ DỤNG CSS CỦA .traditional-icon TRONG PART 9
   (Chữ 囍 màu đỏ bã trầu #a03c3c)
*/

/* --- Chữ tiếng Anh (Font Serif) --- */
.perfection-title {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.perfection-title span {
  font-family: "Times New Roman", serif; /* Font có chân sang trọng */
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: #333;
  line-height: 1.2;
}

/* --- Đoạn Quote (Font Sans-serif) --- */
.perfection-quote {
  max-width: 600px;
  text-align: center;
  margin-bottom: 35px;
}

.perfection-quote p {
  font-family: 'Quicksand', sans-serif; /* Font Quicksand đã có */
  font-size: 1.1rem;
  color: #888;
  line-height: 1.8;
  font-weight: 400;
}

/* --- Container cho 2 ảnh xếp ngang --- */
.perfection-images-container {
  display: flex;
  justify-content: space-around; /* Phân bổ khoảng cách đều */
  width: 100%;
  max-width: 800px; /* Giới hạn độ rộng container */
  gap: 5px;
}

/* --- Styling cho 2 hình ảnh bên dưới --- */
.perfection-photo {
  height: 250px; /* Cố định chiều cao 200px theo yêu cầu */
  width: auto;
  max-width: 45%; /* Giới hạn độ rộng để tránh tràn trên mobile nhỏ */
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  object-fit: cover; /* Cắt ảnh để vừa khung hình */
}

/* =========================================
   PART 11: MARRY ME SECTION
========================================= */
.part-11-marry-me {
  width: 100%;
  background-color: #f4f4f4; /* Đồng bộ nền với part 9, 10. Đổi thành #fff nếu muốn nền trắng */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 50px 0;
}

/* --- Top Banner --- */
.marry-banner {
  width: 100%;
  max-width: 600px; /* Căn độ rộng cho vừa với form thiệp */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  margin: 30px 0;
  font-family: "Times New Roman", serif;
  font-size: 1rem;
  letter-spacing: 2px;
  color: #333;
}

/* --- Image Wrapper --- */
.marry-image-wrapper {
  position: relative; /* Setup "tọa độ gốc" để chữ bám vào */
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.marry-bg-photo {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Text Overlay (Chữ nằm đè lên ảnh) --- */
.marry-overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Căn giữa tuyệt đối xác định theo trục X, Y */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Font chữ bay bổng và hiệu ứng đổ bóng */
.marry-line-1,
.marry-line-2 {
  font-family: 'Great Vibes', cursive; /* Bạn có thể đổi sang 'Dancing Script' nếu thích */
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4); /* Bóng đen nhẹ giúp chữ không bị chìm */
}

.marry-line-1 {
  font-size: 4rem;
}

.marry-line-2 {
  font-size: 3.5rem;
}

/* =========================================
   PART 12: RSVP SECTION
========================================= */
.part-12-rsvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px;
  background-color: #ffffff;
}

.rsvp-title {
  font-family: "Times New Roman", serif;
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.rsvp-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 15px; /* Khoảng cách giữa các input */
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 15px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  color: #555;
  background-color: transparent;
  border: 2px solid #8b1515; /* Màu đỏ bã trầu */
  outline: none;
  box-sizing: border-box;
}

/* Tùy chỉnh mũi tên của Select dropdown */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%238b1515%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;
}

.submit-btn {
  background-color: #8b1515;
  color: #fff;
  border: none;
  padding: 15px;
  font-family: "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #6a0f0f;
}

.form-feedback {
  margin-top: 20px;
  font-family: 'Quicksand', sans-serif;
  color: #28a745; /* Màu xanh success */
  font-weight: bold;
}

.hidden {
  display: none;
}

/* =========================================
   PART 13: FINAL THANK YOU SECTION
========================================= */
.part-13-final-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
  /* Padding dưới lớn (80px) để tạo khoảng trống khi cuộn đến cuối trang */
  padding: 60px 20px 80px 20px; 
  background-color: #f4f4f4; /* Đồng bộ nền xám nhạt với các Part trên */
}

/* --- Chữ ký Thank You --- */
.final-thank-you-title {
  font-family: 'Great Vibes', cursive; /* Tái sử dụng font đã load ở Head */
  font-size: 5.5rem; /* Kích thước siêu lớn tạo điểm nhấn */
  color: #333; /* Màu xám đậm/đen giống thiết kế */
  font-weight: 400;
  margin: 0 0 20px 0;
  line-height: 1;
}

/* --- Đoạn văn bản Cảm ơn --- */
.final-thank-you-text {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.15rem;
  color: #666;
  line-height: 1.8;
  max-width: 600px;
}

/* --- Media Queries (Responsive cho Mobile) --- */
@media (max-width: 600px) {
  .part-13-final-thanks {
    padding: 40px 15px 60px 15px;
  }

  .final-thank-you-title {
    font-size: 4.5rem; /* Thu nhỏ chữ trên màn hình điện thoại */
  }

  .final-thank-you-text {
    font-size: 1rem;
  }
}
/* --- Media Queries (Xử lý Responsive cho Mobile) --- */
@media (max-width: 600px) {
  .marry-banner {
    font-size: 0.8rem;
    padding: 10px 15px;
    margin: 20px 0;
  }
  
  .marry-line-1 {
    font-size: 2.8rem;
  }
  
  .marry-line-2 {
    font-size: 2.2rem;
  }
}
/* --- ANIMATION TÁI SỬ DỤNG --- */
/* .slide-from-left, .slide-from-right, và .is-visible 
   ĐÃ ĐƯỢC ĐỊNH NGHĨA TRƯỚC ĐÓ */

/* ===== ANIMATION ===== */

@keyframes slideBride{
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes slideGroom{
  to{
    opacity:1;
    transform:translateX(0);
  }
}

@keyframes heartAppear{
  to{
    opacity:1;
    transform:scale(1.2);
  }
}

@keyframes heartBeat{
  0%{transform:scale(1);}
  50%{transform:scale(1.2);}
  100%{transform:scale(1);}
}

/* --- STYLES CHI TIẾT CÁC THÀNH PHẦN --- */
#guest-name {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: var(--primary-color) !important;
    margin-bottom: 10px;
}

.icon-sep { font-size: 1.5rem; margin: 15px 0; color: var(--primary-color) !important; }

.couple-section {
    display: flex; align-items: center; justify-content: center; gap: 15px; margin: 20px 0;
}

.couple-section .name {
    font-family: 'Great Vibes', cursive; font-size: 1.5rem; color: var(--primary-color) !important;
}

.heart { 
    color: red !important; font-size: 2rem; animation: heartBeat 1.2s infinite; text-shadow: none !important;
}

.family-info {
    display: flex; justify-content: space-between; width: 100%; margin: 25px 0;
}

.family-side h3 {
    font-size: 0.85rem; border-bottom: 2px solid var(--primary-color); color: #ad1457 !important; margin-bottom: 10px; padding-bottom: 3px;
}

.parent-name { font-weight: 700; font-size: 1rem; margin: 5px 0; }

.divider {
    border: none; border-top: 1px solid var(--primary-color); width: 60%; margin: 20px auto;
}

.wedding-title {
    font-weight: bold; font-size: 1.4rem; color: #880e4f !important; text-transform: uppercase;
}

/* Cập nhật Calendar & Location Box - Bỏ kính mờ (backdrop-filter) vì nền đã là trắng */
.calendar-section, .location-box {
    width: 100%;
    padding: 20px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Bóng đổ nhẹ hơn cho tinh tế */
}

.calendar-month {
    font-weight: bold; font-size: 1.1rem; color: #ad1457; margin-bottom: 15px;
}

.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; font-size: 0.9rem; color: var(--text-color);
}

.day-name { font-weight: bold; color: #ad1457 !important; }

.wedding-day {
    color: white !important; font-weight: bold; position: relative; z-index: 1;
}

.wedding-day::before {
    content: "❤"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2.4rem; color: #ff4d4d; z-index: -1; text-shadow: none;
}

.location-box { border: 1px dashed var(--primary-color); margin-top: 10px;}
.place-name { font-weight: bold; color: #c2185b !important; font-size: 1.2rem; margin: 10px 0 5px;}
.address { font-size: 0.95rem; }

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}