/* ============================================================
   AQIQAH-04 THEME STYLES
   Teal mint Islamic style with mosque arch ornaments
   ============================================================ */

/* ── Google Fonts already loaded in layout ── */

/* ── CSS Variables ── */
:root {
    --aq-bg: #fdf5f7;
    --aq-bg-deep: #e4478a;
    --aq-text: #ffffff;
    --aq-text-light: #fce4ec;
    --aq-text-muted: #f48fb1;
    --aq-accent: #e4478a;
    --aq-accent-dark: #c2185b;
    --aq-white: #ffffff;
    --aq-nav-bg: #e4478a;
    --aq-nav-active: #ad1457;
    --aq-btn-bg: #e4478a;
    --aq-btn-text: #ffffff;
    --aq-gold: #f06292;
    --aq-teal: #e4478a;
    --aq-pink: #e4478a;
    --aq-section-pad: 100px 0 80px 0;
    --aq-bottom-nav-h: 68px;
    --aq-font-heading: 'Satisfy', cursive;
    --aq-font-body: 'Nunito', sans-serif;
}

/* ── Global Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #dce8f0; /* desktop outer bg — slightly darker to frame the phone */
    font-family: var(--aq-font-body);
    color: var(--aq-text);
}

/* ── Main Wrapper ── */
#aqiqah-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;  /* phone-like width, updated from 390px */
    margin: 0 auto;
    height: 100vh;
    height: 100dvh;
    background-color: transparent; /* transparent to see fixed bg */
    overflow: hidden; /* disable physical scrolling */
    z-index: 10; /* render in front of fixed bg and ornaments */
}

/* ── Background Image (fixed full-height) ── */
.aq-bg-fixed {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 500px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--aq-bg);
    background-image: url('assets/BC-BG.jpg');
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

/* ── Corner Ornaments (Fixed, visible on all sections) ── */
.aq-ornament {
    position: absolute;
    z-index: 25;
    pointer-events: none;
    transition: none !important; /* Instant reset when class is removed */
}

/* Fast duration for Cover Gate */
.aq-ornament.aos-animate {
    transition: transform 1200ms ease, opacity 1200ms ease, bottom 500ms ease !important;
}

/* Slow/elegant duration for pages after Buka Undangan */
.aq-opened .aq-ornament.aos-animate {
    transition: transform 2500ms ease, opacity 2500ms ease, bottom 500ms ease !important;
}

/* Top-left ornament (BC-AKR) */
.aq-ornament-tl {
    top: 0;
    left: 0;
    width: 36%;
    max-width: 175px;
}

/* Top-right ornament (BC-AKN) */
.aq-ornament-tr {
    top: 0;
    right: 0;
    width: 36%;
    max-width: 175px;
}

/* ── Sections ── */
.aq-section {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow-y: auto; /* enable internal scroll for tall sections */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px calc(80px + var(--aq-bottom-nav-h)) 24px; /* extra bottom padding to clear bottom nav */
    box-sizing: border-box;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

.aq-section.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 20;
}

/* ── Section: COVER ── */
#section-cover {
    padding: 120px 24px 140px 24px;
    gap: 0;
    justify-content: center;
}

.aq-cover-label {
    font-family: var(--aq-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: #333333 !important;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.aq-cover-name {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.3rem !important;
    font-weight: 700 !important;
    color: #e4478a !important;
    line-height: 1.2;
    margin-bottom: 22px;
}

/* 3D Border Framed Photo for Baby (Circular with Double White Rings) */
.aq-cover-photo-frame {
    position: relative;
    width: min(290px, 75vw);
    aspect-ratio: 500 / 436;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aq-cover-photo-outer-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 63%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border: 3px solid #ffffff;
    padding: 4px;
    box-sizing: border-box;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.aq-cover-photo-inner-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aq-cover-child-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.aq-cover-border-ornament {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

/* Kepada Yth block */
.aq-cover-to {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 20px;
}

.aq-cover-to-label {
    font-family: var(--aq-font-body);
    font-size: 0.88rem;
    font-weight: 500;
    color: #444444 !important;
}

.aq-cover-guest-name {
    font-family: var(--aq-font-body);
    font-size: 1.35rem;
    font-weight: 800;
    color: #e4478a !important;
    margin-top: 2px;
}

/* Buka Undangan Button (Pill shaped like aqiqah-05) */
.aq-cover-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e4478a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 13px 32px;
    border-radius: 50px;
    font-family: var(--aq-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(228, 71, 138, 0.35);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.02em;
    text-decoration: none;
}

.aq-cover-btn:hover, .aq-cover-btn:active {
    transform: translateY(-3px) scale(1.03);
    background: #d43578 !important;
    box-shadow: 0 10px 28px rgba(228, 71, 138, 0.45);
}

.aq-cover-btn i {
    font-size: 1rem;
    color: #ffffff !important;
}

/* ── Top Centered Ornaments (Full-width for Greeting & Profile) ── */
.aq-section-top-ornament {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
    margin: 0;
}

/* ── Section: GREETING ── */
#section-greeting {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #b577a6 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.aq-greeting-inner {
    position: absolute;
    top: calc((100% - var(--aq-bottom-nav-h)) * 0.43);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 440px;
    padding: 0 24px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.aq-greeting-salam,
#section-greeting .aq-greeting-salam {
    font-family: 'Satisfy', cursive !important;
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 14px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.aq-greeting-text,
#section-greeting .aq-greeting-text,
#section-greeting p {
    font-family: var(--aq-font-body) !important;
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
    color: #ffffff !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

.aq-greeting-bottom-img {
    position: absolute;
    bottom: var(--aq-bottom-nav-h);
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    margin: 0;
}

/* ── Section: PROFILE ── */
#section-profile {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #b577a6 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.aq-profile-inner {
    position: absolute;
    top: calc((100% - var(--aq-bottom-nav-h)) * 0.40);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.aq-profile-photo-frame {
    position: relative;
    width: 215px;
    max-width: 58vw;
    aspect-ratio: 450 / 407;
    margin: 0 auto 14px auto;
}

.aq-profile-frame-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
    pointer-events: none;
    border-radius: 18px;
}

.aq-profile-photo-circle {
    position: absolute;
    top: 49.6%;
    left: 51.9%;
    transform: translate(-50%, -50%);
    width: 45.5%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    background: #ffffff;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aq-profile-child-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.aq-profile-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}

.aq-profile-name,
#section-profile .aq-profile-name,
#section-profile h2 {
    font-family: 'Satisfy', cursive !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 8px !important;
    line-height: 1.25 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.aq-profile-parents,
#section-profile .aq-profile-parents,
#section-profile p {
    font-family: var(--aq-font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    max-width: 330px !important;
    margin: 0 auto 12px auto !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

.aq-profile-ig-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff !important;
    color: #e4478a !important;
    text-decoration: none;
    padding: 8px 22px;
    border-radius: 50px;
    font-family: var(--aq-font-body);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.aq-profile-ig-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    background: #fdf5f7 !important;
}

.aq-profile-ig-btn i {
    font-size: 1rem;
    color: #e4478a !important;
}

.aq-profile-bottom-img {
    position: absolute;
    bottom: var(--aq-bottom-nav-h);
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    margin: 0;
}

/* ── Section: EVENTS ── */
#section-event {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #fad3fe !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.aq-event-top-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    margin: 0;
}

.aq-event-bottom-img {
    position: absolute;
    bottom: var(--aq-bottom-nav-h);
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    margin: 0;
}

.aq-event-inner {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    margin: auto 0;
}

.aq-event-title,
#section-event .aq-event-title {
    font-family: 'Satisfy', cursive !important;
    font-size: 2.3rem !important;
    font-weight: 700 !important;
    color: #e4478a !important;
    margin-bottom: 12px !important;
    line-height: 1.25 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8) !important;
}

.aq-event-datetime {
    font-family: var(--aq-font-body) !important;
    font-size: 0.95rem !important;
    color: #444444 !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

.aq-event-datetime .aq-event-date-text {
    font-weight: 700 !important;
    color: #2d2d2d !important;
    margin-bottom: 2px !important;
}

.aq-event-datetime .aq-event-time-text {
    font-weight: 600 !important;
    color: #555555 !important;
}

.aq-event-venue {
    margin-bottom: 16px !important;
}

.aq-event-venue-name {
    font-family: var(--aq-font-body) !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #e4478a !important;
    margin-bottom: 2px !important;
}

.aq-event-venue-address {
    font-family: var(--aq-font-body) !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    color: #555555 !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    line-height: 1.4 !important;
}

.aq-event-countdown {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
    width: 100%;
    max-width: 350px;
}

.aq-event-cd-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none !important;
    border-radius: 12px;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    min-width: 60px;
}

.aq-event-cd-val {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #e4478a !important;
}

.aq-event-cd-lbl {
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    color: #666666 !important;
    text-transform: uppercase;
    margin-top: 2px;
}

.aq-event-btn-cal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e4478a !important;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--aq-font-body);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(228, 71, 138, 0.3);
    transition: all 0.3s ease;
}

.aq-event-btn-cal:hover {
    transform: translateY(-2px);
    background: #d43578 !important;
    box-shadow: 0 6px 18px rgba(228, 71, 138, 0.4);
}

.aq-event-btn-cal i {
    font-size: 1rem;
    color: #ffffff !important;
}

/* ── Section: MAPS ── */
#section-maps {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #aecfd9 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.aq-maps-inner {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    margin: auto 0;
    transform: translateY(-20px);
}

.aq-maps-title,
#section-maps .aq-maps-title {
    font-family: 'Satisfy', cursive !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #e4478a !important;
    margin-bottom: 12px !important;
    line-height: 1.25 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8) !important;
}

.aq-maps-embed-wrapper {
    width: 100%;
    max-width: 420px;
    height: 180px;
    margin: 0 auto 12px auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid #ffffff;
    background: #ffffff;
}

.aq-maps-embed-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.aq-maps-venue-name {
    font-family: var(--aq-font-body) !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #2c3e50 !important;
    margin-bottom: 2px !important;
}

.aq-maps-venue-address {
    font-family: var(--aq-font-body) !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    color: #555555 !important;
    max-width: 320px !important;
    margin: 0 auto 12px auto !important;
    line-height: 1.4 !important;
}

.aq-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e4478a !important;
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--aq-font-body);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(228, 71, 138, 0.3);
    transition: all 0.3s ease;
}

.aq-maps-btn:hover {
    transform: translateY(-2px);
    background: #d43578 !important;
    box-shadow: 0 6px 18px rgba(228, 71, 138, 0.4);
}

.aq-maps-btn i {
    font-size: 1rem;
    color: #ffffff !important;
}

.aq-section-ab4-top-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    margin: 0;
}

.aq-section-bawah1-bottom-img,
.aq-section-bb4-bottom-img,
.aq-maps-bottom-img,
.aq-gallery-bottom-img {
    position: absolute;
    bottom: var(--aq-bottom-nav-h);
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
    display: block;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    margin: 0;
}

/* ── Section: GIFT ── */
#section-gift {
    justify-content: flex-start !important;
    padding-top: 130px !important;
    padding-bottom: calc(var(--aq-bottom-nav-h) + 24px) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

#section-gift .aq-section-inner {
    justify-content: flex-start !important;
}

/* ── Section: RSVP ── */
#section-rsvp {
    justify-content: center !important;
    padding-top: 140px !important;
    padding-bottom: calc(var(--aq-bottom-nav-h) + 40px) !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

/* ── Section: GALLERY ── */
#section-gallery {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #aecfd9 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}

.aq-gallery-inner {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    margin: auto 0;
    transform: translateY(-25px);
}

.aq-gallery-title,
#section-gallery .aq-gallery-title {
    font-family: 'Satisfy', cursive !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #e4478a !important;
    margin-bottom: 14px !important;
    line-height: 1.25 !important;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8) !important;
}

.aq-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
}

.aq-gallery-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.aq-gallery-item:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.aq-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Section: QUOTES ── */
#section-quotes {
    justify-content: center !important;
    padding-top: 140px !important;
    padding-bottom: calc(var(--aq-bottom-nav-h) + 40px) !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

/* ── Section: ADAB ── */
#section-adab {
    justify-content: center !important;
    padding-top: 150px !important;
    padding-bottom: calc(var(--aq-bottom-nav-h) + 40px) !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}

/* ── Section: THANKS (CLOSING) ── */
#section-thanks {
    justify-content: flex-start !important;
    padding-top: clamp(300px, 37vh, 340px) !important;
    padding-bottom: calc(var(--aq-bottom-nav-h) + 20px) !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.aq-closing-inner {
    max-width: 440px;
    width: 100%;
    min-height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

@media (max-height: 750px) {
    #section-thanks {
        padding-top: 270px !important;
        padding-bottom: calc(var(--aq-bottom-nav-h) + 14px) !important;
    }
    #section-thanks .aq-footer img {
        width: 34px !important;
        height: 34px !important;
    }
    #section-thanks .aq-footer-socials a {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.68rem !important;
    }
}

@media (max-height: 670px) {
    #section-thanks {
        padding-top: 240px !important;
        padding-bottom: calc(var(--aq-bottom-nav-h) + 10px) !important;
    }
}
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.aq-closing-title {
    font-family: var(--aq-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aq-text);
    margin-bottom: 16px;
}

.aq-closing-text {
    font-family: var(--aq-font-body);
    font-size: 0.88rem;
    color: var(--aq-text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Footer brand */
.aq-footer {
    margin-top: 40px;
    padding-top: 28px;
    border-top: none;
    text-align: center;
}

.aq-footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--aq-text);
    margin-bottom: 6px;
}

.aq-footer-tagline {
    font-size: 0.75rem;
    color: var(--aq-text-muted);
    margin-bottom: 16px;
}

.aq-footer-socials {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}

.aq-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    color: var(--aq-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(74,144,217,0.2);
}

.aq-social-btn:hover {
    background: var(--aq-accent);
    color: #fff;
    transform: translateY(-2px);
}

.aq-footer-info {
    font-size: 0.7rem;
    color: var(--aq-text-muted);
    line-height: 1.7;
}

/* ── Bottom Navigation ── */
#aq-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 500px;
    height: var(--aq-bottom-nav-h);
    background: #e4478a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Scrollable tabs */
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 0 10px;

    /* Hidden by default, slides up when invitation is opened */
    transform: translate(-50%, 100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease, visibility 0.5s ease;
}

#aq-bottom-nav.visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
}

#aq-bottom-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.aq-nav-tab {
    flex: 0 0 76px; /* fixed width per tab, allows scroll */
    min-width: 76px;
    height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 12px;
    padding: 6px 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6); /* white color for inactive */
    white-space: nowrap;
    flex-shrink: 0;
}

.aq-nav-tab.active {
    background: #ad1457;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(173, 20, 87, 0.4);
}

.aq-nav-tab svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    display: block;
    transition: transform 0.3s ease;
}

.aq-nav-tab.active svg {
    transform: scale(1.05);
}

.aq-nav-tab span {
    font-family: var(--aq-font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ── Music Player Override ── */
#music-player {
    z-index: 95 !important;
    bottom: calc(var(--aq-bottom-nav-h) + 12px) !important;
}

/* ── AOS base ── */
[data-aos] {
    transition-duration: 0.8s !important;
}

/* ── Entrance animations ── */
@keyframes aq-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes aq-swing {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.aq-ornament-tl img,
.aq-ornament-tr img {
    animation: aq-swing 4s ease-in-out infinite;
    transform-origin: top center;
}

.aq-ornament-tr img {
    animation-delay: 0.8s;
}

/* ── Responsive ── */
/* Ornaments are already right/left anchored — no override needed */

/* ── Cover gate (full screen before open) ── */
#aq-cover-gate {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    max-width: 500px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.48)), url('assets/BC-Awal.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 24px;
    text-align: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#aq-cover-gate.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Main content hidden until gate opens */
#aq-main-content {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
}

#aq-main-content.visible {
    display: block;
}

/* ── Utility ── */
.text-center { text-align: center; }
.w-full { width: 100%; }

/* ── Lightbox Overlay (Shared) ── */
.aq-lightbox-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.65); /* further reduced opacity translucent dark backdrop */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999; /* overlay everything including bottom-nav (z-index: 100) */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-in-out, visibility 0.25s ease-in-out;
}

.aq-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

#aq-lightbox-img {
    max-width: calc(100% - 120px); /* reserve 60px on left/right so arrows (44px wide) never overlap the photo */
    max-height: 70%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
    transition: opacity 0.2s ease-in-out, transform 0.25s ease-out;
    transform: scale(0.95);
}

.aq-lightbox-overlay.active #aq-lightbox-img {
    transform: scale(1);
}

.aq-lightbox-prev, .aq-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d2d2d;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.aq-lightbox-prev:hover, .aq-lightbox-next:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.05);
}

.aq-lightbox-prev { left: 10px; }
.aq-lightbox-next { right: 10px; }

.aq-lightbox-close {
    position: absolute;
    bottom: 40px; /* positioned at bottom center of the black viewport */
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.2s ease;
}

.aq-lightbox-close:hover {
    background: #c0392b;
    transform: translateX(-50%) scale(1.05);
}

/* ── Aqiqah 04 Overrides ── */

/* Section headings (judul menu) → pink #e4478a */
.aq-section h1,
.aq-section h2,
.aq-section h3,
.aq-section h4 {
    color: #e4478a !important;
}

/* Body text → dark/black */
.aq-section p,
.aq-section label,
.aq-section li,
.aq-section > span,
.aq-section p span,
.aq-section h1 span,
.aq-section h2 span,
.aq-section h3 span,
.aq-section .aq-section-inner > span,
.aq-section div:not(.aq-bank-card):not(.aq-rsvp-modal-card):not(.aq-rsvp-modal-backdrop) {
    color: #333333 !important;
}

/* Span inside divs (not in buttons/links) → dark */
.aq-section div:not(.aq-bank-card):not(.aq-rsvp-modal-card) > span:not(a span):not(button span) {
    color: #333333 !important;
}

/* Cover gate: text styling with Satisfy cursive font and white color */
#aq-cover-gate h1,
#aq-cover-gate .aq-cover-name {
    font-family: 'Satisfy', cursive !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.15;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7) !important;
}

#aq-cover-gate .aq-cover-label {
    font-family: var(--aq-font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6) !important;
}

#aq-cover-gate .aq-cover-to-label {
    font-family: var(--aq-font-body) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

#aq-cover-gate .aq-cover-guest-name {
    font-family: var(--aq-font-body) !important;
    font-size: 1.38rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-top: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
}

/* Keep cover gate button text white */
#aq-cover-gate button,
#aq-cover-gate button span,
#aq-cover-gate button i {
    color: #ffffff !important;
}

/* Child name font across theme */
.aq-cover-name,
#section-thanks h2 {
    font-family: 'Satisfy', cursive !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    color: #e4478a !important;
}

/* Modal styling & text color reset */
.aq-section .aq-rsvp-modal-card,
.aq-rsvp-modal-card {
    background: #ffffff !important;
    color: #333333 !important;
}

.aq-section .aq-rsvp-modal-card h3,
.aq-rsvp-modal-card h3 {
    color: #e4478a !important;
}

.aq-section .aq-rsvp-modal-card .aq-rsvp-avatar,
.aq-rsvp-modal-card .aq-rsvp-avatar {
    color: #2c3e50 !important;
}

.aq-section .aq-rsvp-modal-card .aq-rsvp-name,
.aq-rsvp-modal-card .aq-rsvp-name {
    color: #2d2d2d !important;
}

.aq-section .aq-rsvp-modal-card .aq-rsvp-msg,
.aq-section .aq-rsvp-modal-card p,
.aq-rsvp-modal-card .aq-rsvp-msg,
.aq-rsvp-modal-card p {
    color: #444444 !important;
}

.aq-section .aq-rsvp-modal-card .aq-rsvp-time,
.aq-section .aq-rsvp-modal-card .aq-rsvp-empty,
.aq-section .aq-rsvp-modal-card .aq-rsvp-loading,
.aq-rsvp-modal-card .aq-rsvp-time,
.aq-rsvp-modal-card .aq-rsvp-empty,
.aq-rsvp-modal-card .aq-rsvp-loading {
    color: #888888 !important;
}

.aq-section .aq-rsvp-modal-backdrop .aq-rsvp-close-btn,
.aq-section .aq-rsvp-modal-card .aq-rsvp-close-btn,
.aq-rsvp-modal-backdrop .aq-rsvp-close-btn,
.aq-rsvp-modal-card .aq-rsvp-close-btn {
    background: #ffcbd1 !important;
    color: #d84b55 !important;
    border: none !important;
}

.aq-section .aq-rsvp-modal-backdrop .aq-rsvp-close-btn i,
.aq-section .aq-rsvp-modal-card .aq-rsvp-close-btn i,
.aq-rsvp-modal-backdrop .aq-rsvp-close-btn i,
.aq-rsvp-modal-card .aq-rsvp-close-btn i {
    color: #d84b55 !important;
}

/* Bank card styling */
.aq-bank-card {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    padding: 24px 20px !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto 16px auto !important;
    box-shadow: 0 8px 28px rgba(0, 92, 41, 0.1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.aq-bank-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 92, 41, 0.16) !important;
}

/* Bank card content text color reset */
.aq-section .aq-bank-card *:not(button):not(button *):not(.aq-btn-copy):not(.aq-btn-copy *),
.aq-bank-card *:not(button):not(button *):not(.aq-btn-copy):not(.aq-btn-copy *) {
    color: #e4478a !important;
}

.aq-section .aq-bank-card .aq-bank-account-name,
.aq-section .aq-bank-card p.aq-bank-account-name,
.aq-bank-card .aq-bank-account-name {
    font-family: var(--aq-font-body) !important;
    font-size: 0.95rem !important;
    color: #e4478a !important;
    margin: 0 !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
}

.aq-section .aq-bank-card .aq-bank-account-number,
.aq-section .aq-bank-card p.aq-bank-account-number,
.aq-bank-card .aq-bank-account-number {
    font-family: var(--aq-font-heading) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #ad1457 !important;
    letter-spacing: 0.06em !important;
    margin: 2px 0 10px 0 !important;
}

/* Copy button inside bank card */
.aq-bank-card button,
.aq-bank-card .aq-btn-copy {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #e4478a 0%, #ad1457 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 22px !important;
    border-radius: 50px !important;
    font-family: var(--aq-font-body) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(173, 20, 87, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.aq-bank-card button:hover,
.aq-bank-card .aq-btn-copy:hover {
    background: linear-gradient(135deg, #f06292 0%, #c2185b 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 18px rgba(173, 20, 87, 0.4) !important;
}

.aq-bank-card button:active,
.aq-bank-card .aq-btn-copy:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 2px 8px rgba(0, 69, 30, 0.25) !important;
}

.aq-bank-card button span,
.aq-bank-card button i,
.aq-bank-card .aq-btn-copy span,
.aq-bank-card .aq-btn-copy i {
    background: transparent !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
}

.aq-bank-card button.copied,
.aq-bank-card .aq-btn-copy.copied {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%) !important;
    box-shadow: 0 4px 14px rgba(39, 174, 96, 0.4) !important;
    transform: scale(1.03) !important;
}

.aq-bank-card button.copied span,
.aq-bank-card button.copied i,
.aq-bank-card .aq-btn-copy.copied span,
.aq-bank-card .aq-btn-copy.copied i {
    color: #ffffff !important;
    background: transparent !important;
}

/* ── All action buttons: #e4478a bg, white text ── */
/* Anchor buttons */
.aq-section a[style*="background"],
.aq-section .aq-maps-btn,
.aq-cover-btn,
.aq-section a[href*="maps.google.com"],
.aq-section a[href*="calendar.google.com"],
.aq-section a[href*="instagram.com"],
.aq-section a[href*="zoom.us"],
.aq-section a[href*="youtube.com"],
.aq-section a[href*="wa.me"] {
    background: #e4478a !important;
    color: #ffffff !important;
    border: 1px solid #e4478a !important;
}

/* Force span & i inside anchor buttons to white */
.aq-section a[style*="background"] span,
.aq-section a[style*="background"] i,
.aq-section .aq-maps-btn span,
.aq-section .aq-maps-btn i,
.aq-cover-btn span,
.aq-cover-btn i,
.aq-section a[href*="maps.google.com"] span,
.aq-section a[href*="maps.google.com"] i,
.aq-section a[href*="calendar.google.com"] span,
.aq-section a[href*="calendar.google.com"] i,
.aq-section a[href*="instagram.com"] span,
.aq-section a[href*="instagram.com"] i,
.aq-section a[href*="zoom.us"] span,
.aq-section a[href*="zoom.us"] i,
.aq-section a[href*="youtube.com"] span,
.aq-section a[href*="youtube.com"] i,
.aq-section a[href*="wa.me"] span,
.aq-section a[href*="wa.me"] i {
    color: #ffffff !important;
}

/* Submit button & RSVP trigger */
.aq-section button[type="submit"]:not(.aq-bank-card button),
.aq-section button[style*="background"]:not(#aq-btn-cashless):not(#aq-btn-kado):not(.aq-bank-card button):not(.aq-btn-copy),
.aq-section .aq-rsvp-trigger-btn {
    background: #e4478a !important;
    color: #ffffff !important;
    border: 1px solid #e4478a !important;
}

/* Force span & i inside those buttons to white */
.aq-section button[type="submit"]:not(.aq-bank-card button) span,
.aq-section button[type="submit"]:not(.aq-bank-card button) i,
.aq-section button[style*="background"]:not(#aq-btn-cashless):not(#aq-btn-kado):not(.aq-bank-card button):not(.aq-btn-copy) span,
.aq-section button[style*="background"]:not(#aq-btn-cashless):not(#aq-btn-kado):not(.aq-bank-card button):not(.aq-btn-copy) i,
.aq-section .aq-rsvp-trigger-btn span,
.aq-section .aq-rsvp-trigger-btn i {
    color: #ffffff !important;
}

/* ── Tab buttons (Gift page) ── */
/* Default inactive state */
#aq-btn-cashless,
#aq-btn-kado {
    background: rgba(0, 92, 41, 0.08) !important;
    color: #e4478a !important;
    border: 1px solid rgba(0, 92, 41, 0.3) !important;
}
#aq-btn-cashless span, #aq-btn-cashless i,
#aq-btn-kado span, #aq-btn-kado i {
    color: #e4478a !important;
}

/* Active state */
#aq-btn-cashless.active,
#aq-btn-kado.active {
    background: #e4478a !important;
    color: #ffffff !important;
    border: 1px solid #e4478a !important;
}
#aq-btn-cashless.active span, #aq-btn-cashless.active i,
#aq-btn-kado.active span, #aq-btn-kado.active i {
    color: #ffffff !important;
}

/* Countdown boxes — teal text on white bg */
#aq-cd-days, #aq-cd-hours, #aq-cd-mins, #aq-cd-secs,
#aq-cd-days ~ span, #aq-cd-hours ~ span, #aq-cd-mins ~ span, #aq-cd-secs ~ span,
#section-event .aq-countdown span {
    color: #e4478a !important;
}
