* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #c9a96e;
    --gold-light: #e8c98a;
    --gold-dark: #8b6914;
    --cream: #fdf8f0;
    --warm-white: #fffcf5;
    --blush: #f7ece0;
    --text-dark: #3a2c29;
    --text-mid: #7a6233;
    --rose: #c9748a;
}

body {
    background: var(--cream);
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* ── PETAL CANVAS ─────────────────────────────────────────── */
#petalCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.55;
}

/* ── INVITATION CONTAINER ─────────────────────────────────── */
.invitation-container {
    min-height: 100vh;
}

/* ── ENVELOPE SECTION ─────────────────────────────────────── */
.invite-element-container {
    background-image: url('../background.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* bokeh dots */
.invite-element-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 80px at 15% 20%, rgba(201,169,110,0.18) 0%, transparent 70%),
        radial-gradient(circle 120px at 85% 75%, rgba(201,169,110,0.14) 0%, transparent 70%),
        radial-gradient(circle 60px at 70% 15%, rgba(201,116,138,0.10) 0%, transparent 70%),
        radial-gradient(circle 90px at 30% 80%, rgba(201,116,138,0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* ── ENVELOPE OVERLAY ─────────────────────────────────────── */
.envelope-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1000;
    background: radial-gradient(ellipse at 50% 40%, #f9f0e0 0%, #ede0cc 65%, #ddd0bc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), visibility 0.8s;
}

.envelope-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.envelope-img-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

@keyframes envelopeFloat {
    0%,100% { transform: translateY(0px) rotate(0deg); }
    33%      { transform: translateY(-12px) rotate(0.4deg); }
    66%      { transform: translateY(-6px) rotate(-0.3deg); }
}

.envelope-img {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 20px 50px rgba(100,70,30,0.22)) drop-shadow(0 4px 12px rgba(180,140,90,0.18));
    animation: envelopeFloat 5s ease-in-out infinite;
}

/* ── WAX SEAL ─────────────────────────────────────────────── */
@keyframes sealPulse {
    0%,100% { transform: translate(-50%,-50%) scale(1);    filter: drop-shadow(0 0 8px rgba(73, 61, 38, 0.5)); }
    50%      { transform: translate(-50%,-50%) scale(1.06); filter: drop-shadow(0 0 20px rgba(60, 49, 27, 0.9)) drop-shadow(0 0 40px rgba(201,169,110,0.4)); }
}

@keyframes breakSeal {
    0%   { transform: translate(-50%,-50%) scale(1) rotate(0deg); opacity: 1; }
    40%  { transform: translate(-50%,-50%) scale(1.15) rotate(-5deg); opacity: 0.8; }
    100% { transform: translate(-50%,-50%) scale(0) rotate(15deg); opacity: 0; }
}

.wax-seal-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: min(120px, 22vw);
    height: auto;
    cursor: pointer;
    z-index: 1001;
    animation: sealPulse 2.4s ease-in-out infinite;
    transition: transform 0.15s ease;
}

.wax-seal-img:active {
    transform: translate(-50%,-50%) scale(0.93);
}

.wax-seal-img.breaking {
    animation: breakSeal 0.55s cubic-bezier(0.4,0,1,1) forwards;
}

/* ── CLICK HINT ───────────────────────────────────────────── */
@keyframes hintBreathe {
    0%,100% { opacity: 0.7; letter-spacing: 2px; }
    50%      { opacity: 1;   letter-spacing: 3px; }
}

.click-hint {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-dark);
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.82);
    padding: 10px 28px;
    border-radius: 40px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(180,140,90,0.18), inset 0 1px 0 rgba(255,255,255,0.6);
    border: 1px solid rgba(201,169,110,0.3);
    animation: hintBreathe 2.5s ease-in-out infinite;
    white-space: nowrap;
}

/* ── COMBINED INVITE ──────────────────────────────────────── */
.combined-invite-container {
    width: 95%;
    max-width: 650px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(60px) scale(0.94);
    transition: opacity 1.4s cubic-bezier(0.16,1,0.3,1), transform 1.4s cubic-bezier(0.16,1,0.3,1);
    position: relative;
    pointer-events: none;
}

.combined-invite-container.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.combined-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 25px 60px rgba(80,50,20,0.20)) drop-shadow(0 6px 20px rgba(180,140,90,0.15));
    margin: 0 auto -40px auto;
}

/* ── TEXT OVERLAY ─────────────────────────────────────────── */
.invitation-text-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 26% 15% 25% 15%;
    z-index: 2;
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.card-badge-first {
    font-size: clamp(12px, 3.5vw, 23px);
    font-family: "Cormorant SC", serif;
    color: var(--gold-dark);
    font-weight: 800;
    font-style: italic;
    margin: 7px 0 27px 0;
    padding: 0 8px;
    line-height: 1.3;
    letter-spacing: 1.5px;
}

.card-badge-second {
    font-size: clamp(8px, 2.2vw, 18px);
    font-family: "Cormorant SC", serif;
    color: var(--gold-dark);
    font-weight: 700;
    font-style: italic;
    margin: 3px 4px 20px 4px;
    padding: 0 8px;
    line-height: 1.3;
    letter-spacing: 1px;
}

.greeting {
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-weight: 300;
    font-size: clamp(8px, 2.2vw, 14px);
    line-height: 1.4;
    max-width: 85%;
    color: var(--gold-dark);
    margin: 8px auto;
    letter-spacing: 0.5px;
    padding: 0 17px;
}

.name-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 14px 0 4px 0;
}

.name {
    font-family: "Pinyon Script", cursive;
    font-size: clamp(20px, 7vw, 34px);
    font-weight: 500;
    color: var(--gold-dark);
    background: linear-gradient(90deg, var(--gold-dark) 0%, #a28752 40%, var(--gold) 60%, var(--gold-dark) 100%);
    background-size: 200% auto; 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear 1s infinite;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    padding: 0 8px;
}

.date, .venue {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: clamp(7px, 2vw, 16px);
    color: var(--gold-dark);
    text-transform: uppercase;
    margin: 8px 2px;
    padding: 2px 8px;
    letter-spacing: 0.5px;
}

/* ── FLOWER BORDERS ───────────────────────────────────────── */
.top-flower-border,
.bottom-flower-border {
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

.top-flower-border img,
.bottom-flower-border img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── RSVP / VENUE CONTAINER ───────────────────────────────── */
.rsvp-venue-container {
    position: relative;
    background: linear-gradient(180deg, #fdf6ec 0%, #faf0e4 100%);
    width: 100%;
    margin-top: 20px;
}

/* scrolled-in reveal */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RSVP SECTION ─────────────────────────────────────────── */
.rsvp-section {
    max-width: 800px;
    width: calc(100% - 2rem);
    margin: 0 auto 50px auto;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(255,252,245,0.97) 0%, rgba(251,243,228,0.95) 100%);
    box-shadow: 0 20px 60px rgba(100,70,30,0.12), 0 4px 15px rgba(180,140,90,0.10);
    border: 1px solid rgba(201,169,110,0.35);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

/* corner ornament lines */
.rsvp-section::before,
.rsvp-section::after {
    content: '';
    position: absolute;
    width: 40px; height: 40px;
    border-color: var(--gold);
    border-style: solid;
}
.rsvp-section::before {
    top: 12px; left: 12px;
    border-width: 1.5px 0 0 1.5px;
}
.rsvp-section::after {
    bottom: 12px; right: 12px;
    border-width: 0 1.5px 1.5px 0;
}

.rsvp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 0.4rem;
    color: var(--gold-dark);
    letter-spacing: 4px;
}

.rsvp-subtitle {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 1.8rem;
    text-transform: uppercase;
}

#rsvp-form select {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(201,169,110,0.45);
    border-bottom: 2px solid rgba(201,169,110,0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.7);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    border-radius: 1px;
    color: var(--text-dark);
    appearance: auto; /* or 'none' if you want custom arrow */
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.2rem;
}

#rsvp-form input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid rgba(201,169,110,0.45);
    border-bottom: 2px solid rgba(201,169,110,0.5);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.7);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    border-radius: 1px;
    color: var(--text-dark);
}

#rsvp-form input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 16px rgba(201,169,110,0.15);
}

#rsvp-form input::placeholder {
    color: #b8a080;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
}

.note-text {
    font-size: 0.75rem;
    color: var(--text-mid);
    margin-top: 0.6rem;
    text-align: center;
    letter-spacing: 0.5px;
    font-style: italic;
}

/* ── ATTENDANCE BUTTONS ───────────────────────────────────── */
.attendance-buttons {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0 1rem;
}

.attend-choice-btn {
    flex: 1;
    padding: 13px 0;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(201,169,110,0.5);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    cursor: pointer;
    text-align: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    color: var(--text-mid);
    position: relative;
    overflow: hidden;
}

.attend-choice-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 60%);
    pointer-events: none;
}

.attend-choice-btn:hover {
    background: rgba(201,169,110,0.12);
    border-color: var(--gold);
}

.attend-choice-btn.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-color: var(--gold-dark);
    color: white;
    box-shadow: 0 6px 20px rgba(139,105,20,0.25);
}

/* ── DYNAMIC FIELDS ───────────────────────────────────────── */
.dynamic-fields {
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
    max-height: 0;
    opacity: 0;
}

.dynamic-fields.show {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}

/* ── SUBMIT BUTTON ────────────────────────────────────────── */
.submit-btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: white;
    border: none;
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    width: 100%;
    cursor: pointer;
    margin-top: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
    box-shadow: 0 4px 15px rgba(139,105,20,0.25);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    box-shadow: 0 8px 30px rgba(139,105,20,0.4);
    transform: translateY(-1px);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

/* ── ALERT ────────────────────────────────────────────────── */
.alert-message {
    padding: 12px 18px;
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    text-align: center;
    border-left: 3px solid var(--gold);
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── SCHEDULE SECTION ─────────────────────────────────────── */
.schedule-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(145deg, rgba(255,252,245,0.97) 0%, rgba(251,243,228,0.95) 100%);
    border: 1px solid rgba(201,169,110,0.35);
    box-shadow: 0 20px 60px rgba(100,70,30,0.10);
    text-align: center;
    width: calc(100% - 2rem);
    position: relative;
    border-radius: 2px;
}

.schedule-section::before,
.schedule-section::after {
    content: '';
    position: absolute;
    width: 40px; height: 40px;
    border-color: var(--gold);
    border-style: solid;
}
.schedule-section::before { top: 12px; left: 12px;   border-width: 1.5px 0 0 1.5px; }
.schedule-section::after  { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }

.schedule-title {
    color: var(--gold-dark);
    margin-bottom: 8px;
    font-size: 2rem;
    letter-spacing: 4px;
    font-weight: 600;
}

.schedule-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 2rem;
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 8px;
}

.schedule-ornament::before,
.schedule-ornament::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.schedule-ornament::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.schedule-item {
    padding: 18px 20px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.7);
    border-left: 3px solid var(--gold);
    border-radius: 0 2px 2px 0;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    text-align: left;
}

.schedule-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(180,140,90,0.15);
    background: rgba(255,255,255,0.95);
}

.schedule-item span {
    font-weight: 700;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    min-width: 70px;
    flex-shrink: 0;
}

.schedule-item p {
    color: var(--text-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.location-section { margin: 50px 0; }

.location-content {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    justify-content: space-between;
}

.location-text {
    flex: 1;
    text-align: center;
    padding: 1.8rem;
    background: linear-gradient(145deg, rgba(255,252,245,0.97), rgba(251,243,228,0.95));
    border: 1px solid rgba(201,169,110,0.35);
    box-shadow: 0 10px 30px rgba(100,70,30,0.08);
}

.map-container {
    flex: 1;
    box-shadow: 0 10px 30px rgba(100,70,30,0.12);
    border-radius: 4px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border-radius: 4px;
    display: block;
}

.footer-icon {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.location-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 0.75rem;
}

.location-text p {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    padding: 0.6rem 1.5rem;
    margin-top: 1rem;
    border: 1.5px solid var(--gold);
    color: var(--text-mid);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.location-link:hover {
    background: var(--gold);
    color: white;
}

.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 2rem auto;
    color: var(--gold);
    font-size: 0.8rem;
}

.footer-divider::before,
.footer-divider::after {
    content: '';
    display: block;
    height: 1px;
    width: 80px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.footer-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }

.contact-section { margin-top: 50px; width: 100%; }

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-header h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-mid);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.contact-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(255,255,255,0.7);
    padding: 0.75rem 1.4rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(201,169,110,0.5);
    color: var(--text-mid);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    min-width: 200px;
    white-space: nowrap;
}

.contact-buttons a:hover {
    background: #25d366;
    color: white;
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

.contact-buttons a i {
    font-size: 1.1rem;
}

/* ── THANK YOU OVERLAY ────────────────────────────────────── */
.thankyou-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(40,25,10,0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.thankyou-overlay.show {
    visibility: visible;
    opacity: 1;
}

.thankyou-card {
    background: linear-gradient(145deg, #fffcf5 0%, #fdf0e0 100%);
    max-width: 420px;
    width: 90%;
    padding: 3rem 2.5rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(201,169,110,0.4);
    box-shadow: 0 30px 80px rgba(80,50,20,0.35);
    position: relative;
    animation: cardReveal 0.5s cubic-bezier(0.16,1,0.3,1);
}

@keyframes cardReveal {
    from { transform: scale(0.85) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0);        opacity: 1; }
}

.thankyou-card::before,
.thankyou-card::after {
    content: '';
    position: absolute;
    width: 35px; height: 35px;
    border-color: var(--gold);
    border-style: solid;
}
.thankyou-card::before { top: 10px; left: 10px;   border-width: 1.5px 0 0 1.5px; }
.thankyou-card::after  { bottom: 10px; right: 10px; border-width: 0 1.5px 1.5px 0; }

.thankyou-card i {
    font-size: 2.5rem;
    color: var(--rose);
    margin-bottom: 1rem;
    animation: heartBeat 1.2s ease infinite;
}

@keyframes heartBeat {
    0%,100% { transform: scale(1); }
    25%      { transform: scale(1.15); }
    50%      { transform: scale(1.05); }
}

.thankyou-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}

.thankyou-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.close-thanks {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    padding: 12px 36px;
    border-radius: 40px;
    color: white;
    margin-top: 1.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139,105,20,0.3);
}

.close-thanks:hover {
    box-shadow: 0 8px 25px rgba(139,105,20,0.4);
    transform: translateY(-1px);
}

/* ── SCROLL ORNAMENT DIVIDER ──────────────────────────────── */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    gap: 1rem;
}

.ornament-divider svg {
    color: var(--gold);
}

/* ── MOBILE RESPONSIVE ────────────────────────────────────── */
@media (max-width: 768px) {
    .invitation-text-overlay { padding: 20% 8% 10% 8%; }
    .location-content { flex-direction: column; }
    .wax-seal-img { width: min(100px, 28vw); }

    .envelope-img-container {
        width: 100vw;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        position: relative;
        overflow: hidden;
    }

    .envelope-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

@media (min-width: 769px) {
    .top-flower-border,
    .bottom-flower-border {
        display: none;
    }

    .envelope-img{
        rotate: 90deg;
        }
}

@media (max-width: 550px) {
    .invitation-text-overlay { padding: 27% 22% 45% 22%; }
    .combined-invite-container { width: 92%; max-width: 550px; }
    .wax-seal-img { width: min(90px, 27vw); }
    .card-badge-first { font-size: 12px; }
    .card-badge-second { font-size: 8px; }
    .greeting { font-size: 6.5px; max-width: 95%; }
    .name { font-size: 17px; }
    .date, .venue { font-size: 6.5px; }
}

@media (max-width: 400px) {
    .invitation-text-overlay { padding: 25% 22% 45% 22%; }
    .rsvp-section { padding: 1.5rem; }
    .card-badge-first { font-size: 12px; margin: 7px 0 7px 0; }
    .name-section { margin: 2px 0 4px 0; }
    .card-badge-second { font-size: 8px; margin: 3px 4px 8px 4px; }
    .date, .venue { font-size: 6px; margin: 3px 2px; }
    .greeting { font-size: 6.5px; margin: 5px auto; }
    .name { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}