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

body {
    font-family: 'Playfair Display', serif;
    background-image: url('../svg/wedding_pattern_v2.svg');
    background-repeat: repeat;
    background-size: 600px 600px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Envelope Cover Page */
.envelope-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../svg/wedding_pattern_v2.svg');
    background-repeat: repeat;
    background-size: 600px 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 1.5s ease-in forwards;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.envelope-cover.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.names {
    color: rgb(33, 33, 33);
    font-size: 3rem;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-align: center;
    animation: fadeIn 2s ease-in 0.5s forwards;
    opacity: 0;
}

.date {
    color: rgb(33, 33, 33);
    font-size: 1.5rem;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 1px;
    animation: fadeIn 2s ease-in 1s forwards;
    opacity: 0;
}

.envelope-container {
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: fadeIn 2s ease-in 1.5s forwards;
    opacity: 0;
    width: 100%;
    max-width: 800px;
    padding: 0 5px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.envelope-container:hover {
    transform: translateY(-10px);
}    

.envelope-container:focus {
    outline: none;
}

.envelope-container img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.click-text {
    color: rgb(33, 33, 33);
    font-size: 1.2rem;
    font-family: 'Great Vibes', cursive;
    letter-spacing: 1px;
    animation: fadeIn 2s ease-in 2s forwards, pulse 2s ease-in-out 3s infinite;
    opacity: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 100%;
    padding: 2rem 0;
    background: transparent;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
    overflow-x: hidden;
}

.main-content.visible {
    opacity: 1;
    transform: scale(1);
}

/* Container for main content layout */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Header Section - Envelope */
.header-section {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto -180px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.envelope {
    position: relative;
    width: 100%;
    max-width: 1000px;
    height: auto;
    z-index: 1;
}

/* Cards Section */
.cards-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 700px;  
    margin: 0 auto;
    position: relative;
    z-index: 3;
    padding: 0 40px;  
    box-sizing: border-box;
}

/* Decorative flowers */
/* Decorative flowers - BEHIND cards */
.flower-decoration {
    position: absolute;
    pointer-events: none;
}

.flower-behind {
    z-index: 1;  /* Behind cards */
}

/* Decorative flowers - IN FRONT of cards */
.flower-front {
    z-index: 10;  /* In front of cards */
}

/* Positioning for individual flowers - BIGGER sizes */
/* Positioning for individual flowers - BIGGER sizes */
.flower-right-1 {
    right: -130px;
    top: 20px;
    width: 600px;
    max-height: 700px;
    height: auto;
    object-fit: contain;
}

.flower-right-2 {
    right: -5px;
    bottom: 30px;
    width: 400px;
    max-height: 400px;
    height: auto;
    object-fit: contain;
}

.flower-left-1 {
    left: 200px;
    top: 590px;
    width: 500px;
    max-height: 600px;
    height: auto;
    object-fit: contain;
}

.flower-left-2 {
    left: -2px;
    top: 400px;
    width: 400px;
    max-height: 400px;
    height: auto;
    object-fit: contain;
}

.flower-between {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: auto;
    opacity: 0.3;
}

.flower-between-2 {
    left: 60%;
    top: 70%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: auto;
}

.flower-middle {
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: auto;
}

.cards-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1;
    max-width: 50%;
}

.right-column {
    margin-top: 80px;
}

.card {
    padding: 30px;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333;
    min-height: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    
    /* Paper texture */
    background-color: #fefefe;
    background-image: url('../images/paper.png');
    background-repeat: repeat;
    background-size: 400px 400px;
    background-blend-mode: multiply;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Individual Card Styles with colored borders */
.share-date-card {
    border-top: 16px solid #163a79;
    border-bottom: 16px solid #163a79;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;  
    padding: 25px 20px;  
    min-height: 160px;  
}

.share-date-card h3 {
    font-size: 3rem;
    font-family: 'Great Vibes', cursive;
    margin-top: 2rem;
    font-weight: lighter;
    color: #769aca;
}

.share-date-card h4 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    color: #333;
}

.share-date-card .day {
    font-size: 1.6rem;
    margin-bottom: 0;
}

.date-container {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.date-item {
    position: relative;
    padding: 10px 0;
    width: 100px;
    text-align: center;
}

.date-item.month {
    font-size: 1.3rem;
    border-top: 3px solid #333;
    border-bottom: 3px solid #333;
}

.date-item.day-number {
    font-size: 2rem;
    font-weight: 50;
}

.date-item.year {
    font-size: 1.3rem;
    border-top: 3px solid #333;
    border-bottom: 3px solid #333;
}

.rsvp-card {
    border-left: 16px solid #769aca;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.rsvp-card p:first-of-type {
    font-size: 1.5rem;
    margin: 5px 0;
    text-align: left;
    font-family: 'Great Vibes', cursive;
}

.rsvp-card h3 {
    font-size: 3rem;
    font-weight: bold;
    margin: 15px 0;
    color: #163a79;
    text-align: center;
    text-decoration: underline;
}

.rsvp-card p:last-of-type {
    font-size: 1.5rem;
    margin: 5px 0;
    text-align: right;
    font-family: 'Great Vibes', cursive;
}

.image-card {
    padding: 0;
    overflow: hidden;
    min-height: 250px;
    position: relative;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-card-text {
    position: absolute;
    font-family: 'Great Vibes', cursive;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    color: white;
    font-size: 2rem;
    font-weight: 100;
    text-align: center;
    padding: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.details-card {
    border-right: 16px solid #769aca;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.details-card .small-text {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-family: 'Great Vibes', cursive;
}

.details-card h2 {
    font-size: 3.1rem;
    color: #163a79;
    text-decoration: underline;
}

.faqs-card {
    border-radius: 50%;
    width: 220px;
    height: 220px;
    min-height: auto;
    align-self: center;
    border: 6px solid #98a869;
    background: #556b2f;
}

.faqs-card p {
    font-family: 'Great Vibes', cursive;
    align-self: flex-start;
    font-size: 1.4rem;
    color: rgb(219, 191, 51);
}

.faqs-card h3 {
    font-size: 2.5rem;
    color: rgb(255, 255, 255);
    text-decoration: underline;
}

.details-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Playfair Display', serif;
    overflow-x: hidden;
}

/* Header */
.details-title {
    font-size: 3.5rem;
    color: #163a79;
    text-align: left;
    margin-bottom: 60px;
    font-weight: 600;
}

.details-subtitle {
    font-size: 2rem;
    color: #769aca;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
    font-style: italic;
}

/* Venue Card */
.venue-card {
    background: white;
    padding: 30px;
    margin: 0 20px 40px 20px;
    border-left: 8px solid #556b2f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fefefe;
    background-image: url('../images/paper.png');
    background-repeat: repeat;
    background-size: 400px 400px;
    background-blend-mode: multiply;
}

.venue-title {
    font-size: 2rem;
    color: #163a79;
    text-align: left;
    margin-bottom: 25px;
}

.venue-images {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 30px;
}

.venue-images img {
    width: calc(50% - 10px);
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.divider {
    border: none;
    border-top: 2px solid #769aca;
    margin: 30px 0;
}

/* Venue Details */
.venue-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-item strong {
    color: #163a79;
    font-size: 1.1rem;
}

.detail-item p {
    color: #333;
    font-size: 1rem;
    margin: 0;
}

.detail-item a {
    color: #556b2f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail-item a:hover {
    color: #98a869;
    text-decoration: underline;
}

/* Attire Section */
.attire-section {
    background: white;
    padding: 30px;
    margin: 0 20px 40px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fefefe;
    background-image: url('../images/paper.png');
    background-repeat: repeat;
    background-size: 400px 400px;
    background-blend-mode: multiply;
}

.attire-title {
    font-size: 2rem;
    color: #163a79;
    margin-bottom: 20px;
    text-align: center;
}

.attire-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.attire-description {
    flex: 1;
}

.attire-description h4 {
    font-size: 1.5rem;
    color: #556b2f;
    margin-bottom: 15px;
}

.attire-description p {
    color: #333;
    line-height: 1.8;
    font-size: 1.05rem;
}

.color-palette {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 120px;
}

.color-swatch {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Back Link */
.back-link-container {
    text-align: center;
    margin-bottom: 50px;
}

.back-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #556b2f;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: #98a869;
}

/* Footer */
.details-footer {
    background: linear-gradient(135deg, #163a79 0%, #769aca 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
}

.details-footer p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.details-footer p:first-child {
    font-size: 1.3rem;
    font-weight: 600;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    z-index: 2;  /* Maintain card z-index */
}

.card-link:hover {
    text-decoration: none;
}

/* Remove hover transform from card, move to link */
.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.faq-page {
    background-color: #303b1a;  /* Darker green */
    min-height: 100vh;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
}

.faq-container {
    max-width: 1100px;
    margin: 0 auto;
}

.faq-main-title {
    font-size: 3rem;
    color: white;
    text-align: left;
    margin-bottom: 50px;
    font-weight: 100;
    font-family: 'Playfair Display', serif;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 80px;
    margin-bottom: 60px;
    padding: 0 60px;
    align-items: start;
}

.faq-divider {
    height: 2px;
    background-color: #98a869;
    border: none;
    margin: 0;
    grid-column: 1 / -1;
}

.faq-item {
    margin-bottom: 10px;
    width: 100%;
}

.faq-question {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;  /* Bolder */
}

.faq-answer {
    font-size: 1.05rem;
    color: white;
    line-height: 1.7;
    margin: 0;
    font-weight: 300;
}

/* Additional Questions Section */
.additional-questions {
    background: white;
    padding: 40px;
    margin: 0 auto 50px;
    max-width: 700px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    
    /* Paper texture */
    background-color: #fefefe;
    background-image: url('../images/paper.png');
    background-repeat: repeat;
    background-size: 400px 400px;
    background-blend-mode: multiply;
}

.additional-questions h3 {
    font-size: 1.8rem;
    color: #163a79;
    margin-bottom: 15px;
}

.additional-questions p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.whatsapp-link {
    display: inline-block;
    background-color: #25D366;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
}

.whatsapp-link:hover {
    background-color: #20BA5A;
}

.whatsapp-icon {
    font-size: 1.3rem;
    margin-right: 8px;
}

.phone-number {
    font-size: 1rem;
    color: #666;
    margin-top: 15px;
}

.phone-number a {
    color: #556b2f;
    text-decoration: none;
    font-weight: 600;
}

.phone-number a:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link-container {
    text-align: center;
    margin-top: 40px;
}

.back-link {
    display: inline-block;
    padding: 15px 40px;
    background-color: white;
    color: #3d4d1f;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-link:hover {
    background-color: #98a869;
    color: white;
    transform: translateY(-2px);
}

        /* ── RSVP Page ── */
        .rsvp-page {
            min-height: 100vh;
            padding: 60px 20px 80px;
            font-family: 'Playfair Display', serif;
        }

        .rsvp-wrapper {
            max-width: 780px;
            margin: 0 auto;
        }

        /* Header */
        .rsvp-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .rsvp-header .script-title {
            font-family: 'Great Vibes', cursive;
            font-size: 3.5rem;
            color: #163a79;
            display: block;
            margin-bottom: 6px;
        }

        .rsvp-header h1 {
            font-size: 1rem;
            font-weight: 400;
            letter-spacing: 4px;
            text-transform: uppercase;
            color: #769aca;
            margin: 0 0 30px;
        }

        .rsvp-header .instructions {
            font-size: 1rem;
            color: #555;
            line-height: 1.8;
            max-width: 520px;
            margin: 0 auto;
            font-style: italic;
        }

        /* Search */
        .search-wrapper {
            position: relative;
            margin-bottom: 28px;
        }

        .search-wrapper svg {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: #769aca;
            pointer-events: none;
        }

        .search-input {
            width: 100%;
            padding: 14px 16px 14px 46px;
            border: 2px solid #d4dff0;
            font-family: 'Playfair Display', serif;
            font-size: 1rem;
            color: #333;
            background-color: #fefefe;
            background-image: url('../images/paper.png');
            background-repeat: repeat;
            background-size: 400px 400px;
            background-blend-mode: multiply;
            box-shadow: 0 2px 8px rgba(22, 58, 121, 0.07);
            transition: border-color 0.2s, box-shadow 0.2s;
            box-sizing: border-box;
            outline: none;
        }

        .search-input:focus {
            border-color: #769aca;
            box-shadow: 0 4px 16px rgba(22, 58, 121, 0.13);
        }

        .search-input::placeholder {
            color: #aaa;
            font-style: italic;
        }

        /* Name list */
        .names-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px;
        }

        .name-item {
            background-color: #fefefe;
            background-image: url('../images/paper.png');
            background-repeat: repeat;
            background-size: 400px 400px;
            background-blend-mode: multiply;
            border-left: 6px solid #d4dff0;
            box-shadow: 0 2px 8px rgba(0,0,0,0.07);
            padding: 16px 20px;
            cursor: pointer;
            transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .name-item:hover {
            border-color: #769aca;
            box-shadow: 0 4px 14px rgba(22, 58, 121, 0.13);
            transform: translateX(4px);
        }

        .name-item.selected {
            border-color: #163a79;
        }

        .name-item.confirmed-attending {
            border-color: #556b2f;
            background-color: #f4f8ee;
            background-blend-mode: multiply;
        }

        .name-item.confirmed-not-attending {
            border-color: #a0522d;
            background-color: #fdf5f0;
            background-blend-mode: multiply;
        }

        .name-text {
            font-size: 1.1rem;
            color: #222;
            flex: 1;
        }

        .name-text span {
            font-family: 'Great Vibes', cursive;
            font-size: 1.3rem;
            color: #163a79;
            margin-left: 4px;
        }

        .status-badge {
            font-size: 0.78rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            padding: 4px 10px;
            border-radius: 20px;
            font-family: 'Playfair Display', serif;
            font-style: italic;
            flex-shrink: 0;
        }

        .badge-attending {
            background: #e8f0da;
            color: #3d5220;
            border: 1px solid #98a869;
        }

        .badge-not-attending {
            background: #fdeede;
            color: #7a3e1e;
            border: 1px solid #c98a60;
        }

        .badge-pending {
            background: #e8edf7;
            color: #3a5a9a;
            border: 1px solid #769aca;
        }

        .chevron {
            color: #aaa;
            transition: transform 0.2s, color 0.2s;
            flex-shrink: 0;
        }

        .name-item.selected .chevron,
        .name-item:hover .chevron {
            color: #163a79;
            transform: rotate(90deg);
        }

        /* RSVP Panel (expands under each name) */
        .rsvp-panel {
            display: none;
            background: white;
            border-left: 6px solid #163a79;
            border-top: none;
            box-shadow: 0 6px 20px rgba(22, 58, 121, 0.12);
            padding: 28px 24px;
            margin-top: -10px;
            margin-bottom: 10px;
            animation: slideDown 0.25s ease-out;
        }

        .rsvp-panel.open {
            display: block;
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-8px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .rsvp-panel h3 {
            font-family: 'Great Vibes', cursive;
            font-size: 2rem;
            color: #163a79;
            margin: 0 0 20px;
        }

        /* Attending toggle */
        .attending-toggle {
            display: flex;
            gap: 12px;
            margin-bottom: 22px;
        }

        .toggle-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid #d4dff0;
            background: white;
            font-family: 'Playfair Display', serif;
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.2s;
            color: #555;
        }

        .toggle-btn:hover {
            border-color: #769aca;
            color: #163a79;
        }

        .toggle-btn.active-yes {
            border-color: #556b2f;
            background: #f4f8ee;
            color: #3d5220;
            font-weight: 600;
        }

        .toggle-btn.active-no {
            border-color: #a0522d;
            background: #fdf5f0;
            color: #7a3e1e;
            font-weight: 600;
        }

        /* Code input */
        .code-section {
            display: none;
        }

        .code-section.visible {
            display: block;
        }

        .code-label {
            display: block;
            font-size: 0.85rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: #769aca;
            margin-bottom: 8px;
        }

        .code-input-row {
            display: flex;
            gap: 10px;
            align-items: stretch;
        }

        .code-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid #d4dff0;
            font-family: 'Playfair Display', serif;
            font-size: 1.3rem;
            letter-spacing: 6px;
            text-align: center;
            text-transform: uppercase;
            color: #163a79;
            background: #fafbfd;
            outline: none;
            transition: border-color 0.2s;
        }

        .code-input:focus {
            border-color: #769aca;
        }

        .code-input.error {
            border-color: #c0392b;
            animation: shake 0.3s;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            25%       { transform: translateX(-6px); }
            75%       { transform: translateX(6px); }
        }

        .confirm-btn {
            padding: 12px 24px;
            background: #163a79;
            color: white;
            border: none;
            font-family: 'Playfair Display', serif;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.2s, transform 0.1s;
            white-space: nowrap;
        }

        .confirm-btn:hover {
            background: #769aca;
        }

        .confirm-btn:active {
            transform: scale(0.97);
        }

        .confirm-btn:disabled {
            background: #aaa;
            cursor: not-allowed;
        }

        /* Messages */
        .msg {
            margin-top: 12px;
            font-size: 0.95rem;
            padding: 10px 14px;
            border-left: 4px solid;
            display: none;
        }

        .msg.visible { display: block; }
        .msg.success { border-color: #556b2f; background: #f4f8ee; color: #3d5220; }
        .msg.error   { border-color: #c0392b; background: #fdeede; color: #7a3e1e; }

        /* No results */
        .no-results {
            text-align: center;
            color: #999;
            font-style: italic;
            padding: 30px 0;
            display: none;
        }

        /* Divider styling */
        .rsvp-divider {
            border: none;
            border-top: 1px solid #d4dff0;
            margin: 40px 0 30px;
        }

        /* Count info */
        .list-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 14px;
        }

        .list-meta span {
            font-size: 0.85rem;
            letter-spacing: 1.5px;
            text-transform: uppercase;
            color: #769aca;
        }

        /* Spinner */
        .spinner {
            display: inline-block;
            width: 14px;
            height: 14px;
            border: 2px solid #ccc;
            border-top-color: #163a79;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            vertical-align: middle;
            margin-right: 6px;
        }

        @keyframes spin { to { transform: rotate(360deg); } }

/* Responsive Design */
@media (max-width: 968px) {
    .header-section {
        margin: 0 auto -120px;
        padding: 0 15px;
    }

    .cards-section {
        gap: 20px;
        padding: 0 30px;  /* More space on tablet */
        max-width: 600px;
    }

    .right-column {
        margin-top: 60px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 50px;
    }

    .faq-main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .body {
        background-size: 300px 300px;
    }

    .envelope-container {
        padding: 0; 
    }

    .names {
        font-size: 2rem;
    }
    
    .date {
        font-size: 1.2rem;
    }

    .header-section {
        margin: 0 auto -100px;
        padding: 0 10px;
    }

    .cards-section {
        gap: 15px;
        padding: 0 30px;  /* More space on mobile */
        max-width: 100%;
    }

    .cards-column {
        gap: 15px;
    }

    .right-column {
        margin-top: 40px;
    }

    .card {
        min-height: 160px;
        padding: 20px;
    }

    .faqs-card {
        width: 180px;
        height: 180px;
    }
        .date-item {
        width: 80px;
        font-size: 0.9rem;
    }

    .date-item.day-number {
        font-size: 1.6rem;
    }

    .date-item.month,
    .date-item.year {
        font-size: 1rem;
    }

    .share-date-card {
        gap: 10px;  
        padding: 16px 10px;  
        min-height: 130px;  
    }

    .share-date-card h3 {
        font-size: 2rem;
    }

    .share-date-card h4 {
        font-size: 1.3rem;
    }

    .share-date-card .day {
        font-size: 1.2rem;
    }

    .image-card-text {
        font-size: 1.1rem;
    }
    
    .image-card {
        padding: 0;
    }

    .flower-right-1 {
        right: -110px;
        top: 30px;
        width: 330px;
    }

    .flower-right-2 {
        right: -50px;
        bottom: 100px;
        width: 160px;
    }

    .flower-left-1 {
        left: -50px;
        top: 150px;
        width: 170px;
    }

    .flower-between {
        width: 120px;
        opacity: 0.2;
    }

    .rsvp-card {
        margin-bottom: 0.5rem;
        margin-top: 0.5rem;
        padding: 15px;  /* Add this */
    }

    .rsvp-card p:first-of-type {
        font-size: 1.2rem;
        margin: 2px 0;
    }

    .rsvp-card h3 {
        font-size: 2rem;
        margin: 8px 0;
    }

    .rsvp-card p:last-of-type {
        font-size: 1.2rem;
        margin: 2px 0;
    }

    .details-title {
        font-size: 3rem;
    }

    .details-subtitle {
        font-size: 1.2rem;
    }

    .venue-images {
        flex-direction: column;
        gap: 15px;
    }

    .venue-images img {
        width: 100%;
        height: 250px;
    }

    .venue-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .attire-content {
        flex-direction: column;
        gap: 25px;
    }

    .color-palette {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }

    .color-swatch {
        width: 70px;
        height: 50px;
    }

    .details-footer {
        padding: 30px 15px;
    }

    .venue-card,
    .attire-section {
        margin: 0 10px 30px 10px;  /* Less margin on mobile */
        padding: 20px;
    }

    .faq-page {
        padding: 40px 15px;
    }

    .faq-main-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .faq-question {
        font-size: 1.2rem;
    }

    .faq-answer {
        font-size: 1rem;
    }

    .additional-questions {
        padding: 30px 20px;
    }

    .whatsapp-link {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 30px;
    }
}

@media (max-width: 480px) {
    .body {
        background-size: 300px 300px;
    }

    .header-section {
        margin: 0 auto -80px;
        padding: 0 5px;
    }

    .cards-section {
        gap: 10px;
        padding: 0 30px;  /* More space on small mobile */
    }

    .cards-column {
        gap: 10px;
    }

    .card {
        padding: 15px;
        min-height: 140px;
    }

    .share-date-card {
        gap: 5px;  /* Was 30px */
        padding: 12px 5px;  /* Was 40px 30px */
        min-height: 100px;  /* Add this to control height */
    }

    .share-date-card h3 {
        font-size: 2rem;
    }

    .share-date-card h4 {
        font-size: 0.9rem;
    }

    .rsvp-card {
        margin-bottom: 0.7rem;
        margin-top: 2rem;
        padding: 12px;  /* Add this */
    }

    .rsvp-card p:first-of-type {
        font-size: 1rem;
        margin: 0;
    }

    .rsvp-card h3 {
        font-size: 1.6rem;
        margin: 5px 0;
    }

    .rsvp-card p:last-of-type {
        font-size: 1rem;
        margin: 0;
    }

    .details-card h2 {
        font-size: 2rem;
    }

    .faqs-card {
        width: 180px;
        height: 180px;
    }

    .faqs-card h3 {
        font-size: 2rem;
    }

    .faqs-card p {
        font-size: 1rem;
    }

    .right-column {
        margin-top: 30px;
    }
        .date-item {
        width: 65px;
    }

    .date-item.day-number {
        font-size: 1.4rem;
    }

    .date-item.month,
    .date-item.year {
        font-size: 0.85rem;
    }

    .date-container {
        gap: 10px;
    }

    .image-card-text {
        font-size: 1.1rem;
    }

    .image-card {
        padding: 0;
    }

    .flower-right-1 {
        right: -100px;
        top: 80px;
        width: 300px;
        max-height: 350px;
    }

    .flower-right-2 {
        right: -35px;
        width: 120px;
    }

    .flower-left-1 {
        left: 120px;
        top: 300px;
        width: 230px;
        max-height: 400px;
    }

    .flower-left-2 {
        left: -20px;
        top: 150px;
        width: 215px;
        max-height: 400px;
    }

    .flower-between {
        width: 100px;
    }

    .details-page {
        padding: 20px 10px;
    }

    .venue-card,
    .attire-section {
        margin: 0 5px 20px 5px;  /* Even less on small screens */
        padding: 15px;
    }

    .details-title {
        font-size: 2.5rem;
    }

    .venue-title,
    .attire-title {
        font-size: 1.5rem;
    }

    .venue-images img {
        height: 200px;
    }

    .faq-page {
        padding: 30px 10px;
    }

    .faq-main-title {
        font-size: 2rem;
    }

    .faq-question {
        font-size: 1.1rem;
    }

    .faq-answer {
        font-size: 0.95rem;
    }

    .additional-questions h3 {
        font-size: 1.4rem;
    }

    .back-link {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 0 30px;
    }
}

@media (max-width: 600px) {
    .rsvp-header .script-title { font-size: 2.5rem; }
    .rsvp-header h1 { font-size: 0.8rem; letter-spacing: 3px; }
    .attending-toggle { flex-direction: column; }
    .code-input-row { flex-direction: column; }
    .confirm-btn { width: 100%; }
}