/* ============================================
   Undangan Pernikahan Digital
   Elegant Floral Theme - Edha & Try
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
    --cream: #FDF5ED;
    --soft-pink: #F5E0D3;
    --gold: #C4956A;
    --gold-light: #D4A574;
    --gold-dark: #8B6914;
    --brown: #6B4423;
    --brown-dark: #3D2914;
    --brown-light: #A0785C;
    --white: #FFFFFF;
    --pink-blush: #F8EDE3;
    --rose: #E8C4A0;
    --sage: #B5C9A8;
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--brown-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

/* ====== COVER PAGE ====== */
.cover-page {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-image: url('../images/watercolor-bg.png');
    background-size: cover;
    background-position: center;
    background-color: #FDF5ED; /* fallback */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
    padding-bottom: 30px; /* Space for the bottom border */
}

.cover-page.opened {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

/* Watercolor texture overlay */
.cover-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 10% 10%, rgba(196, 149, 106, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 20%, rgba(232, 196, 160, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(196, 149, 106, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.cover-ornament-top {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 2;
}

.cover-ornament-top .bismillah {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 300;
    color: var(--brown-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cover-ornament-top .ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--gold);
    font-size: 12px;
}

.cover-ornament-top .ornament-line::before,
.cover-ornament-top .ornament-line::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.walimatul-urs {
    font-family: var(--font-display);
    font-size: clamp(18px, 5vw, 28px);
    font-weight: 400;
    letter-spacing: 8px;
    text-transform: uppercase;
    color: var(--brown);
    margin-top: 10px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Floral Frame */
.cover-floral-frame {
    position: relative;
    width: 280px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    z-index: 2;
}

.floral-ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px dashed var(--gold);
    border-radius: 50% / 60%;
    opacity: 0.6;
}

.floral-ring-inner {
    position: absolute;
    width: 240px;
    height: 340px;
    border: 1px dashed var(--gold);
    border-radius: 50% / 60%;
    opacity: 0.8;
}

.cover-names {
    text-align: center;
    z-index: 3;
    position: relative;
}

.cover-names .groom-name,
.cover-names .bride-name {
    font-family: var(--font-script);
    font-size: clamp(48px, 12vw, 80px);
    color: var(--brown-dark);
    line-height: 1.1;
    display: block;
}

.cover-names .ampersand {
    font-family: var(--font-script);
    font-size: clamp(30px, 8vw, 50px);
    color: var(--gold);
    display: block;
    margin: -5px 0;
}

/* SVG Floral Corners */
.cover-floral-tr {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.cover-floral-bl {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

/* Guest Name Box */
.cover-guest-box {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 10px;
}

.cover-guest-label {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--brown-light);
    margin-bottom: 8px;
    font-style: italic;
}

.cover-guest-name {
    font-family: var(--font-serif);
    font-size: clamp(18px, 5vw, 24px);
    font-weight: 600;
    color: var(--brown-dark);
    padding: 20px 30px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    background: #ffffff;
    display: inline-block;
    width: 280px;
    min-height: 80px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Open Button */
.btn-open-invitation {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(196, 149, 106, 0.4);
    transition: all 0.4s;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: pulseBtn 2s ease-in-out infinite;
}

@keyframes pulseBtn {
    0%, 100% { box-shadow: 0 8px 30px rgba(196, 149, 106, 0.4); }
    50% { box-shadow: 0 8px 40px rgba(196, 149, 106, 0.6); }
}

.btn-open-invitation:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(196, 149, 106, 0.5);
}

.btn-open-invitation i {
    animation: envelopeWiggle 2s ease-in-out infinite;
}

@keyframes envelopeWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

/* Footer Text */
.cover-footer-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--brown-light);
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
}

/* Bottom Meander Pattern */
.cover-bottom-pattern {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 40 20" xmlns="http://www.w3.org/2000/svg"><path d="M0,18 L10,18 L10,2 L20,2 L20,12 L15,12 L15,7 L10,7 L10,18 L30,18 L30,2 L40,2 L40,12 L35,12 L35,7 L30,7 L30,18 L50,18" stroke="%23C4956A" stroke-width="2" fill="none"/></svg>');
    background-repeat: repeat-x;
    background-size: auto 100%;
    z-index: 2;
    border-top: 1.5px solid #C4956A;
    border-bottom: 1.5px solid #C4956A;
    background-color: rgba(253, 245, 237, 0.5);
}

/* ====== MAIN INVITATION CONTENT ====== */
.invitation-content {
    display: none;
    opacity: 0;
}

.invitation-content.show {
    display: block;
    animation: fadeInContent 1s ease forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInContent {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ====== SECTIONS ====== */
.section {
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.section-alt {
    background: linear-gradient(180deg, var(--white) 0%, var(--pink-blush) 100%);
}

.section-cream {
    background: var(--cream);
}

.section-pink {
    background: linear-gradient(180deg, var(--pink-blush) 0%, var(--soft-pink) 100%);
}

.section-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-script);
    font-size: clamp(36px, 9vw, 52px);
    color: var(--brown-dark);
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: var(--font-serif);
    font-size: 13px;
    color: var(--brown-light);
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.section-ornament {
    text-align: center;
    margin-bottom: 30px;
    color: var(--gold);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-ornament::before,
.section-ornament::after {
    content: '';
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ====== QURAN SECTION ====== */
.quran-section {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(180deg, var(--cream) 0%, var(--pink-blush) 100%);
}

.quran-text {
    font-family: var(--font-serif);
    font-size: clamp(15px, 4vw, 18px);
    font-style: italic;
    color: var(--brown);
    line-height: 1.9;
    max-width: 550px;
    margin: 0 auto 20px;
    position: relative;
    padding: 0 10px;
}

.quran-text::before {
    content: '"';
    font-family: var(--font-script);
    font-size: 60px;
    color: var(--gold);
    opacity: 0.4;
    position: absolute;
    top: -20px;
    left: -5px;
    line-height: 1;
}

.quran-ref {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
}

/* ====== COUPLE SECTION ====== */
.couple-card {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    position: relative;
}

.couple-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

.couple-card:last-child::after {
    display: none;
}

.couple-name {
    font-family: var(--font-script);
    font-size: clamp(36px, 9vw, 50px);
    color: var(--brown-dark);
    margin-bottom: 5px;
}

.couple-fullname {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--brown);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.couple-parent {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--brown-light);
    line-height: 1.7;
    font-style: italic;
}

.couple-divider {
    text-align: center;
    margin: 10px 0 20px;
}

.couple-divider .amp {
    font-family: var(--font-script);
    font-size: 50px;
    color: var(--gold);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ====== EVENT SECTION ====== */
.event-card {
    background: var(--white);
    border: 1px solid rgba(196, 149, 106, 0.2);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(107, 68, 35, 0.06);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.event-card .event-type {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--brown-dark);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.event-card .event-date {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--brown);
    margin-bottom: 8px;
}

.event-card .event-time {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 12px;
}

.event-card .event-venue {
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--brown);
    margin-bottom: 4px;
    font-weight: 500;
}

.event-card .event-address {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--brown-light);
    line-height: 1.6;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.3);
}

.btn-maps:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 149, 106, 0.4);
}

/* ====== COUNTDOWN ====== */
.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: clamp(10px, 3vw, 20px);
    margin: 30px 0;
}

.countdown-item {
    text-align: center;
    background: var(--white);
    border: 1px solid rgba(196, 149, 106, 0.15);
    border-radius: 16px;
    padding: 16px 12px;
    min-width: clamp(60px, 18vw, 80px);
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.06);
}

.countdown-item .count-number {
    font-family: var(--font-display);
    font-size: clamp(28px, 7vw, 40px);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    display: block;
}

.countdown-item .count-label {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--brown-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    display: block;
}

/* ====== GALLERY ====== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 16/9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== RSVP ====== */
.rsvp-card {
    background: var(--white);
    border: 1px solid rgba(196, 149, 106, 0.2);
    border-radius: 20px;
    padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(107, 68, 35, 0.06);
}

.rsvp-options {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.rsvp-option {
    flex: 1;
    padding: 14px;
    border: 2px solid rgba(196, 149, 106, 0.2);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--cream);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--brown);
}

.rsvp-option:hover {
    border-color: var(--gold);
    background: rgba(196, 149, 106, 0.08);
}

.rsvp-option.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
}

.rsvp-option i {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

.rsvp-jumlah {
    margin-bottom: 20px;
    display: none;
}

.rsvp-jumlah label {
    display: block;
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--brown);
    margin-bottom: 8px;
}

.rsvp-jumlah select,
.rsvp-form input,
.rsvp-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(196, 149, 106, 0.2);
    border-radius: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    background: var(--cream);
    color: var(--brown-dark);
    outline: none;
    transition: border-color 0.3s;
}

.rsvp-jumlah select:focus,
.rsvp-form input:focus,
.rsvp-form textarea:focus {
    border-color: var(--gold);
}

.btn-rsvp {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(196, 149, 106, 0.3);
    transition: all 0.3s;
}

.btn-rsvp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 149, 106, 0.4);
}

/* ====== WISHES ====== */
.wish-form {
    margin-bottom: 30px;
}

.wish-form .form-group {
    margin-bottom: 14px;
}

.wish-form textarea {
    min-height: 100px;
    resize: vertical;
}

.wishes-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.wishes-list::-webkit-scrollbar { width: 4px; }
.wishes-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

.wish-item {
    background: var(--white);
    border: 1px solid rgba(196, 149, 106, 0.12);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
}

.wish-item .wish-name {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 4px;
}

.wish-item .wish-message {
    font-size: 13px;
    color: var(--brown);
    line-height: 1.6;
}

.wish-item .wish-time {
    font-size: 11px;
    color: var(--brown-light);
    margin-top: 6px;
}

/* ====== GIFT / AMPLOP ====== */
.gift-card {
    background: var(--white);
    border: 1px solid rgba(196, 149, 106, 0.2);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(107, 68, 35, 0.06);
}

.gift-card .bank-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.gift-card .account-number {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 4px;
    cursor: pointer;
}

.gift-card .account-holder {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--brown-light);
}

.btn-copy-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 18px;
    background: var(--cream);
    border: 1px solid rgba(196, 149, 106, 0.2);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy-account:hover {
    background: rgba(196, 149, 106, 0.1);
}

/* ====== MAPS ====== */
.maps-embed {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(196, 149, 106, 0.2);
    margin-top: 16px;
}

.maps-embed iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* ====== FOOTER ====== */
.invitation-footer {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, var(--soft-pink) 0%, var(--cream) 100%);
}

.footer-names {
    font-family: var(--font-script);
    font-size: clamp(32px, 8vw, 48px);
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.footer-text {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--brown-light);
    font-style: italic;
    line-height: 1.7;
    max-width: 400px;
    margin: 0 auto;
}

.footer-copyright {
    margin-top: 30px;
    font-size: 11px;
    color: var(--brown-light);
    opacity: 0.5;
}

/* ====== MUSIC PLAYER FLOATING ====== */
.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: none;
    color: var(--white);
    font-size: 18px;
    cursor: pointer;
    z-index: 8888;
    box-shadow: 0 4px 20px rgba(196, 149, 106, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-toggle.playing {
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(196, 149, 106, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(196, 149, 106, 0.6), 0 0 0 10px rgba(196, 149, 106, 0.1); }
}

/* ====== FLOATING PETALS CANVAS ====== */
#petalsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ====== SCROLL REVEAL ====== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ====== SECTION DECORATIONS ====== */
.section-floral-decor {
    position: absolute;
    opacity: 0.12;
    pointer-events: none;
}

.section-floral-decor.top-left { top: 0; left: 0; width: 120px; }
.section-floral-decor.top-right { top: 0; right: 0; width: 120px; transform: scaleX(-1); }
.section-floral-decor.bottom-left { bottom: 0; left: 0; width: 100px; transform: scaleY(-1); }
.section-floral-decor.bottom-right { bottom: 0; right: 0; width: 100px; transform: scale(-1); }

/* ====== OPENING TEXT ====== */
.opening-text {
    font-family: var(--font-serif);
    font-size: clamp(14px, 3.8vw, 17px);
    color: var(--brown);
    text-align: center;
    line-height: 1.9;
    max-width: 500px;
    margin: 0 auto;
    white-space: pre-line;
}

/* ====== RESPONSIVE ====== */
@media (min-width: 768px) {
    .section {
        padding: 80px 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-item:first-child {
        grid-column: span 1;
        aspect-ratio: 1;
    }
    
    .countdown-item {
        padding: 24px 18px;
    }
}

/* ====== SECTION FLORAL DECORATIONS ====== */
.section {
    position: relative; /* ensure absolute positioning works for florals */
}

.section-floral {
    position: absolute;
    top: 50%;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.section-floral.floral-left {
    left: -10px;
    transform: translateY(-50%) translateX(-40px);
}

.section-floral.floral-left.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    animation: swayLeft 4s ease-in-out infinite alternate 1.2s;
}

.section-floral.floral-right {
    right: -10px;
    transform: translateY(-50%) translateX(40px);
}

.section-floral.floral-right.visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    animation: swayRight 4s ease-in-out infinite alternate 1.2s;
}

svg.section-floral {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(211, 84, 0, 0.2));
}

@keyframes swayLeft {
    0% { transform: translateY(-50%) translateX(0) rotate(-3deg); }
    100% { transform: translateY(-50%) translateX(0) rotate(3deg); }
}

@keyframes swayRight {
    0% { transform: translateY(-50%) translateX(0) rotate(3deg); }
    100% { transform: translateY(-50%) translateX(0) rotate(-3deg); }
}

@media (max-width: 768px) {
    svg.section-floral {
        width: 70px;
    }
    .section-floral.floral-left { left: -10px; }
    .section-floral.floral-right { right: -10px; }
}

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* Success message */
.success-msg {
    text-align: center;
    padding: 20px;
    background: rgba(181, 201, 168, 0.2);
    border: 1px solid rgba(181, 201, 168, 0.4);
    border-radius: 14px;
    color: var(--brown);
    font-family: var(--font-serif);
    font-size: 15px;
}

.success-msg i {
    font-size: 28px;
    color: var(--sage);
    display: block;
    margin-bottom: 8px;
}

/* ====== WISHES LIST (UCAPAN) ====== */
.wishes-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar for wishes list */
.wishes-list::-webkit-scrollbar { width: 4px; }
.wishes-list::-webkit-scrollbar-track { background: transparent; }
.wishes-list::-webkit-scrollbar-thumb { background: rgba(196, 149, 106, 0.4); border-radius: 4px; }

.wish-item {
    background: var(--white);
    padding: 16px;
    border-radius: 12px;
    border-left: 3px solid var(--gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    text-align: left;
}

.wish-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 16px;
    color: var(--brown-dark);
    margin-bottom: 5px;
}

.wish-message {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--brown);
    margin-bottom: 8px;
}

.wish-time {
    font-size: 11px;
    color: var(--brown-light);
    font-style: italic;
}

/* ====== CARDS & FORMS ====== */
.rsvp-card {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(107, 68, 35, 0.08);
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(196, 149, 106, 0.4);
    border-radius: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--brown-dark);
    background: rgba(253, 245, 237, 0.5);
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Buttons */
.btn-rsvp {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-rsvp:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 149, 106, 0.4);
}

.btn-rsvp:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
