* { margin:0; padding:0; box-sizing:border-box; }

:root {
    --glass-bg: rgba(255,255,255,0.12);
    --glass-blur: 6px;
    --overlay-dark: 0.45;
}

body {
    font-family: "Cormorant Garamond", serif;
    color: #fff;
    overflow-x: hidden;
}

/* BACKGROUND */
.bg-image {
    position: fixed;
    inset: 0;
    background: url("anh-cuoi1.jpg") center top no-repeat;
    background-size: contain;
    background-color: #000;
    z-index: -3;
}

@media (max-width: 768px) {
    .bg-image {
        background-size: cover;
        background-position: center top;
    }
}

.bg-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(255,255,255,0.12),
        rgba(0,0,0,var(--overlay-dark))
    );
    z-index: -2;
}

.bg-light {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle, rgba(255,220,230,0.12), transparent 55%);
    z-index: -1;
}

#sparkle {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.book { position: relative; z-index: 1; }

.page {
	position: relative;
    min-height: 100vh;
    padding: 120px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 30px;
    padding: 36px 44px;
    box-shadow: 0 0 50px rgba(255,200,220,0.25);
}

/* TEXT */
.luxury-name {
    font-family: "Great Vibes", cursive;
    font-size: 78px;
    text-shadow: 0 0 40px rgba(255,200,220,0.7);
}

.luxury-date { margin-top: 20px; letter-spacing: 6px; }
.luxury-title { font-size: 26px; margin-bottom: 34px; }
.luxury-title.small { font-size: 20px; }
.luxury-text { font-size: 21px; line-height: 1.9; margin-bottom: 22px; }

.poem-box { margin: 40px auto; font-style: italic; }
.quote-box { font-family: "Great Vibes", cursive; font-size: 28px; margin: 40px auto; }
.quote-box span { font-size: 36px; }

.line {
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .luxury-name { font-size: 46px; }
    .luxury-text { font-size: 17px; }
    .page { padding: 90px 22px; }
}
/* =====================================
   PINK SHAPE OVERRIDE (NHẸ – SANG)
   KHÔNG PHÁ THIẾT KẾ GỐC
===================================== */

/* glass / card / khối nội dung */
.glass,
.card,
.invitation,
.story-section,
.content,
.page .inner {
    background: rgba(255, 230, 238, 0.65) !important;
    backdrop-filter: blur(var(--glass-blur, 8px));
}

/* lớp nền phụ nếu có */
.glass::before,
.card::before,
.story-section::before,
.invitation::before {
    background: rgba(255, 215, 228, 0.35) !important;
}

/* viền mềm hơn */
.glass,
.card,
.invitation,
.story-section {
    border: 1px solid rgba(255, 210, 225, 0.45);
}

/* mobile tinh chỉnh */
@media (max-width: 768px) {
    .glass,
    .card,
    .invitation,
    .story-section,
    .content {
        background: rgba(255, 235, 242, 0.72) !important;
    }
}
/* ===============================
   GIẢM THÊM 40% ĐỘ MỜ SHAPE
=============================== */

.glass,
.card,
.invitation,
.story-section,
.content,
.page .inner {
    background: rgba(255, 230, 238, 0.18) !important;
}

/* layer phụ (rất nhẹ) */
.glass::before,
.card::before,
.story-section::before,
.invitation::before {
    background: rgba(255, 215, 228, 0.08) !important;
}

/* mobile: nhỉnh hơn chút để còn đọc */
@media (max-width: 768px) {
    .glass,
    .card,
    .invitation,
    .story-section,
    .content {
        background: rgba(255, 235, 242, 0.22) !important;
    }
}
/* =================================================
   ELEGANT TITLE ENHANCE
   Chỉ áp dụng cho .luxury-title
   Sang – Lãng mạn – Không lặp
================================================= */

/* style chung – rất nhẹ */
.luxury-title {
    position: relative;
    color: #f2b8ca;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(255, 190, 210, 0.35);
}

/* -------- TRANG 2: CÂU CHUYỆN -------- */
.page:nth-child(2) .luxury-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 1.5px;
    margin: 16px auto 0;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 200, 220, 0.9),
        transparent
    );
}

/* -------- TRANG 3: NGHI THỨC -------- */
.page:nth-child(3) .luxury-title {
    letter-spacing: 3px;
    text-transform: uppercase;
}

.page:nth-child(3) .luxury-title {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 210, 225, 0.55);
}

/* -------- TRANG 4: KÍNH MỜI -------- */
.page:nth-child(4) .luxury-title {
    font-style: italic;
    text-shadow: 0 3px 14px rgba(255, 185, 205, 0.45);
}

/* nền ánh hồng rất nhẹ phía sau */
.page:nth-child(4) .luxury-title::before {
    content: "";
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(
        ellipse,
        rgba(255, 220, 230, 0.25),
        transparent 70%
    );
    z-index: -1;
}

/* mobile tinh giản */
@media (max-width: 768px) {
    .luxury-title {
        letter-spacing: 1.5px;
    }

    .page:nth-child(2) .luxury-title::after {
        width: 52px;
    }
}
/* =====================================
   NGHI THỨC – CEREMONY BOX TRUNG TÂM
===================================== */

.ceremony-box {
    max-width: 720px;
    margin: 0 auto;
    padding: 72px 56px;
}

/* giãn nhịp cho từng khối */
.ceremony-box .line {
    margin: 56px 0;
}

.ceremony-box .glow-box p {
    margin-top: 10px;
    font-size: 17px;
}

/* mobile */
@media (max-width: 768px) {
    .ceremony-box {
        padding: 56px 28px;
    }
}
/* =====================================
   CEREMONY TYPOGRAPHY – ĐỒNG BỘ & SANG
===================================== */

/* ngày */
.ceremony-box .glow-box h3 {
    font-family: "Playfair Display", serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* tên lễ */
.ceremony-box .glow-box strong {
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* giờ làm lễ */
.ceremony-time {
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    font-style: italic;
    margin-top: 8px;
    opacity: 0.8;
}

/* địa chỉ */
.ceremony-box .address {
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    line-height: 1.9;
}

/* mobile tinh gọn */
@media (max-width: 768px) {
    .ceremony-box .glow-box h3 {
        font-size: 22px;
    }
}
/* =====================================
   CEREMONY COLOR ACCENT – RẤT NHẸ
===================================== */

.ceremony-name.vu-quy strong {
    color: rgba(245, 170, 185, 0.9); /* hồng phấn dịu */
}

.ceremony-name.thanh-hon strong {
    color: rgba(235, 185, 200, 0.9); /* hồng ấm – trang trọng */
}
/* =====================================
   CEREMONY LOCATION – ĐẬM + NGHIÊNG
===================================== */

.ceremony-location {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.9;
    letter-spacing: 0.5px;
    color: rgba(190, 160, 170, 0.9);
}
/* =====================================
   CEREMONY COLOR ADJUST – ĐỎ CƯỚI & RÕ HƠN
===================================== */

/* Vu Quy & Thành Hôn – đỏ cưới */
.ceremony-name.vu-quy strong,
.ceremony-name.thanh-hon strong {
    color: #b12a2a; /* đỏ son trầm */
}

/* Địa chỉ – nổi hơn nền */
.ceremony-location {
    color: #3f3a3c;
}
/* =====================================
   PAGE 2 – "KHỞI ĐẦU MỚI" CÙNG MÀU ĐỎ CƯỚI
===================================== */

.page:nth-child(2) .highlight-end strong {
    color: #b12a2a; /* cùng màu Lễ Vu Quy & Lễ Thành Hôn */
}
/* =====================================
   CEREMONY LOCATION – LINK MAP
===================================== */

.ceremony-location a {
    color: #3f3a3c;          /* xám đen hiện tại */
    text-decoration: none;   /* bỏ gạch chân */
    display: inline-block;
}

.ceremony-location a:hover {
    text-decoration: underline;
}
/* =====================================
   PAGE 4 – CEREMONY INFO 2 CỘT TRANG TRỌNG
===================================== */

.ceremony-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 32px;
    max-width: 760px;
    margin: 48px auto;
}

/* cột nội dung */
.ceremony-col {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
}

/* nhãn nhỏ */
.ceremony-label {
    font-size: 15px;
    letter-spacing: 1px;
    opacity: 0.75;
    margin-bottom: 6px;
}

/* nội dung chính */
.ceremony-main {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #3f3a3c;
}

/* phụ chú */
.ceremony-sub {
    font-size: 16px;
    font-style: italic;
    opacity: 0.75;
    margin-top: 4px;
}

/* đường kẻ giữa */
.ceremony-divider {
    width: 1px;
    height: 90px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(185, 150, 165, 0.6),
        transparent
    );
}

/* mobile */
@media (max-width: 768px) {
    .ceremony-info {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ceremony-divider {
        width: 60%;
        height: 1px;
        margin: 0 auto;
        background: linear-gradient(
            to right,
            transparent,
            rgba(185, 150, 165, 0.6),
            transparent
        );
    }
}
/* =====================================
   CEREMONY LUNAR DATE – NGOÀI SHAPE
===================================== */

.ceremony-lunar {
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    font-style: italic;
    margin: 28px 0;
    color: rgba(245, 170, 185, 0.9);
}
/* =====================================
   FIX SPACING COUNTDOWN – TRANG 4
===================================== */

/* tiêu đề đếm ngược */
.page:nth-child(4) .luxury-title.small {
    margin-bottom: 16px;
}

/* số ngày còn lại */
.page:nth-child(4) #timer {
    margin-top: 8px;
    margin-bottom: 32px;
    line-height: 1.2;
}

/* giảm khoảng trống đáy trang 4 */
.page:nth-child(4) {
    padding-bottom: 100px;
}
/* =====================================
   PAGE 4 – ĐẨY COUNTDOWN SÁT CHÂN TRANG
===================================== */

/* chỉ áp dụng cho trang 4 */
.page:nth-child(4) {
    justify-content: flex-start; /* bỏ canh giữa */
}

/* block countdown */
.page:nth-child(4) .luxury-title.small {
    margin-top: auto;     /* đẩy xuống đáy */
    margin-bottom: 12px;
}

/* số ngày */
.page:nth-child(4) #timer {
    margin-bottom: 20px;  /* cách chân trang nhẹ */
    line-height: 1.2;
}
/* =====================================
   FIX TRIỆT ĐỂ – COUNTDOWN SÁT CHÂN TRANG 4
===================================== */

/* bỏ canh giữa cho trang 4 */
.page:nth-child(4) {
    justify-content: flex-start;
    padding-bottom: 40px;   /* ⬅️ QUAN TRỌNG */
}

/* bỏ padding đáy của glass riêng trang 4 */
.page:nth-child(4).glass {
    padding-bottom: 24px;
}

/* tiêu đề đếm ngược */
.page:nth-child(4) .luxury-title.small {
    margin-top: auto;       /* đẩy xuống đáy thật */
    margin-bottom: 8px;
}

/* số ngày */
.page:nth-child(4) #timer {
    margin-bottom: 0;       /* sát chân */
    line-height: 1.15;
}
/* ICON SANG TRỌNG */
.action-btn i {
    font-size: 16px;
    color: #9b2c3a; /* đỏ rượu – hợp Vu Quy */
    transition: transform 0.35s ease;
}

/* hover icon */
.action-btn:hover i {
    transform: scale(1.15);
}

/* map dịu hơn 1 chút */
.action-btn.map i {
    color: #7a3a3f;
}
/* ====== NÚT MAP & XÁC NHẬN ====== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 22px 0 18px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: all 0.35s ease;
}

/* nút map */
.action-btn.map {
    background: rgba(255,255,255,0.65);
    color: #444;
}

/* nút xác nhận */
.action-btn.confirm {
    background: rgba(214, 138, 154, 0.35); /* hồng nhạt sang */
    color: #7a1f2d;
}

/* hover */
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* icon */
.action-btn .icon {
    font-size: 18px;
}
/* ===== RSVP POPUP ===== */
.rsvp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.rsvp-box {
    max-width: 360px;
    width: 90%;
    padding: 30px 28px;
    text-align: center;
    border-radius: 20px;
}

.rsvp-box h2 {
    margin-bottom: 22px;
    font-size: 22px;
}

.rsvp-box input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
}

.rsvp-box button {
    width: 100%;
    padding: 10px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    margin-top: 6px;
}

.rsvp-box .close {
    background: transparent;
    color: #fff;
    opacity: 0.75;
}
/* ===== RSVP SUBMIT BUTTON – ĐỎ RƯỢU ===== */
#submitRSVP {
    background: linear-gradient(135deg, #7a1f2d, #9b2c3a);
    color: #fff;
    font-size: 15px;
    letter-spacing: 1px;
    box-shadow: 0 8px 22px rgba(155,44,58,0.45);
    transition: all 0.35s ease;
}

#submitRSVP:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(155,44,58,0.6);
}

/* ===== Scroll hint tinh tế ===== */
.scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 13px;
    letter-spacing: 1.2px;
    color: #7a1f2b;
    -webkit-text-fill-color: #7a1f2b;
    font-family: "Cormorant Garamond", serif;
    will-change: opacity, transform;
    z-index: 5;
    pointer-events: none;
    animation: hintFade 2.8s infinite;
}

.scroll-hint i {
    display: block;
    margin-top: 6px;
    font-size: 18px;
    animation: hintBounce 1.6s infinite;
}

@keyframes hintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes hintFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}
.scroll-hint.hide {
    opacity: 0;
    transition: opacity 0.6s ease;
}

