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

@font-face {
    font-family: 'WonderfontCustom';
    src: url('fonts/wonderfont.woff2') format('woff2'),
         url('fonts/wonderfont.woff') format('woff'),
         url('fonts/wonderfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #d4a574;
    --secondary-color: #f8f5f1;
    --text-dark: #2c2c2c;
    --text-light: #666;
    --accent-color: #c19a6b;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
}

.music-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574 0%, #f4d799 50%, #c19a6b 100%);
    border: 3px solid white;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5), 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.7), 0 6px 15px rgba(0, 0, 0, 0.3);
}

.music-btn:active {
    transform: scale(1.05);
}

.music-icon {
    display: inline-block;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.music-btn.playing .music-icon {
    animation: music-pulse 1.5s ease-in-out infinite;
}

.music-btn.playing::before {
    content: '♪';
    position: absolute;
    font-size: 16px;
    top: -5px;
    right: 5px;
    animation: music-note-float 2s ease-in-out infinite;
    opacity: 0;
}

.music-btn.playing::after {
    content: '♫';
    position: absolute;
    font-size: 14px;
    bottom: -3px;
    left: 5px;
    animation: music-note-float 2s ease-in-out infinite 1s;
    opacity: 0;
}

@keyframes music-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes music-note-float {
    0% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

@keyframes music-note {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Page 1: Title */
.page-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23d4a574" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
}

.couple-image {
    text-align: center;
    margin-bottom: 30px;
}

.couple-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    animation: float 6s ease-in-out infinite;
}

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

.couple-names {
    font-family: 'WonderfontCustom', 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 0px;
    letter-spacing: 8px;
    line-height: 2;
}

.couple-names .name {
    display: inline-block;
    background: linear-gradient(135deg, #c9952e 0%, #f4c430 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: shimmer 3s infinite, gradient-shift 4s ease-in-out infinite, name-glow 2s ease-in-out infinite;
    font-weight: 400;
    position: relative;
    letter-spacing: 10px;
    filter: drop-shadow(0 0 15px rgba(201, 149, 46, 0.5));
    vertical-align: middle;
}

.couple-names .name::before {
    content: '✦';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
    animation: star-twinkle 2s ease-in-out infinite, star-rotate 3s linear infinite;
}

.couple-names .name::after {
    content: '✦';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
    animation: star-twinkle 2s ease-in-out infinite 1s, star-rotate 3s linear infinite reverse;
}

@keyframes star-twinkle {
    0%, 100% { 
        opacity: 0.7;
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateY(-50%) scale(1.3);
    }
}

@keyframes star-rotate {
    0% { 
        filter: hue-rotate(0deg) brightness(1);
    }
    50% { 
        filter: hue-rotate(20deg) brightness(1.2);
    }
    100% { 
        filter: hue-rotate(0deg) brightness(1);
    }
}

.couple-names .ampersand {
    display: inline-block;
    font-size: 5rem;
    margin-top: 55px !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
    background: linear-gradient(135deg, #c9952e 0%, #f4c430 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    font-family: 'Parisienne', cursive;
    font-weight: 400;
    animation: shimmer 3s infinite, gradient-shift 4s ease-in-out infinite, ampersand-pulse 2.5s ease-in-out infinite, ampersand-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(201, 149, 46, 0.5));
    letter-spacing: 0;
    line-height: 1;
    position: relative;
    vertical-align: middle;
}

.couple-names .ampersand::before {
    content: '✨';
    position: absolute;
    left: -10px;
    top: 0;
    font-size: 1.5rem;
    animation: sparkle-left 2s ease-in-out infinite;
}

.couple-names .ampersand::after {
    content: '✨';
    position: absolute;
    right: -10px;
    top: 0;
    font-size: 1.5rem;
    animation: sparkle-right 2s ease-in-out infinite 1s;
}

@keyframes ampersand-pulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1;
        filter: drop-shadow(0 4px 8px rgba(212, 165, 116, 0.4));
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.95;
        filter: drop-shadow(0 6px 15px rgba(212, 165, 116, 0.7));
    }
}

@keyframes ampersand-float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% { 
        transform: translateY(-5px) rotate(-2deg);
    }
    75% { 
        transform: translateY(-5px) rotate(2deg);
    }
}

@keyframes sparkle-left {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes sparkle-right {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(0.8) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2) rotate(-180deg);
    }
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

@keyframes gradient-shift {
    0%, 100% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
}

@keyframes name-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(201, 149, 46, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(244, 196, 48, 0.8)) drop-shadow(0 0 35px rgba(201, 149, 46, 0.6));
    }
}

.epigraph {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.8;
}

.scroll-indicator {
    text-align: center;
    margin-top: 50px;
    font-size: 2rem;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Page 2: Invitation */
.page-2 {
    background: var(--secondary-color);
    position: relative;
}

.page-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23d4a574" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

.ornament-top,
.ornament-bottom {
    width: 150px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 30px auto;
    position: relative;
}

.ornament-top::before,
.ornament-bottom::before {
    content: '❖';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-size: 20px;
    background: var(--secondary-color);
    padding: 0 10px;
}

.section-title {
    font-family: 'WonderfontCustom', serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.invitation-text {
    font-size: 1.1rem;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.invitation-text .highlight {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.invitation-text .main-text {
    margin-top: 20px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-family: 'Cormorant Garamond', serif; /* match inline-title font */
    font-weight: 600; /* match inline-title weight while keeping dark color */
}

/* Guest groups list under "Аса құрметті" */
.invite-list p {
    font-family: 'Cormorant Garamond', serif; /* same as section titles */
    font-weight: 600; /* same weight as titles */
    color: var(--text-dark); /* keep dark text, not gold */
    font-size: 1.5rem; /* bigger than default paragraph */
    line-height: 1.6;
    margin: 6px 0; /* gentle spacing between lines */
}

@media (max-width: 600px) {
    .invite-list p {
        font-size: 1.3rem; /* comfortable on small screens */
    }
}

.invitation-text strong {
    color: var(--primary-color);
    font-weight: 600;
}

.page-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(to bottom right, #fdfcfb 0%, #e2d1c3 100%);
}

.date-section {
    text-align: center;
}

.date-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: white;
    padding: 40px 60px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    margin: 40px 0;
}

.date-day {
    font-family: 'WonderfontCustom', serif;
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.date-details {
    text-align: left;
}

.date-month {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.date-year {
    font-size: 2rem;
    color: var(--text-light);
}

.date-weekday {
    font-size: 1.5rem;
    color: var(--text-light);
    font-style: italic;
}

.page-4 {
    background: var(--white);
}

.location-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    padding: 40px;
    background: var(--secondary-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.location-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.location-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.venue-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px 0;
}

.address {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.map-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 165, 116, 0.4);
}

.map-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.6);
}

.betashar-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}

.betashar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.betashar-details {
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

.betashar-poem {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.2;
    text-align: center;
    color: var(--text-light);
    padding: 30px;
    background: var(--secondary-color);
    border-radius: 15px;
}

.page-5 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(to top, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23d4a574" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,133.3C672,139,768,181,864,181.3C960,181,1056,139,1152,122.7C1248,107,1344,117,1392,122.7L1440,128L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z"></path></svg>');
    background-size: cover;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    background: white;
    padding: 30px 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 120px;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.countdown-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.countdown-label {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hosts {
    text-align: center;
    margin-top: 60px;
    font-size: 1.3rem;
    line-height: 2;
}

.hosts-text {
    font-style: italic;
    color: var(--text-light);
}

.hosts-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.footer-ornament {
    text-align: center;
    margin-top: 60px;
}

.heart {
    font-size: 3rem;
    color: var(--primary-color);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

@media (max-width: 768px) {
    .couple-names {
        font-size: 2.2rem;
    }
    
    .couple-names .name {
        letter-spacing: 3px;
    }
    
    .couple-names .name::before,
    .couple-names .name::after {
        display: none;
    }
    
    .couple-names .ampersand {
        margin-top: 25px !important;
        font-size: 2.5rem;
        margin: 0 5px;
    }
    
    .music-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .epigraph {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .invitation-text {
        font-size: 1rem;
        padding: 30px 20px;
    }
    
    .invitation-text .main-text {
        font-size: 1.1rem;
    }
    
    .date-day {
        font-size: 5rem;
    }
    
    .date-month {
        font-size: 2rem;
    }
    
    .date-year {
        font-size: 1.5rem;
    }
    
    .date-display {
        padding: 30px 40px;
    }
    
    .countdown {
        gap: 15px;
    }
    
    .countdown-item {
        padding: 20px 25px;
        min-width: 90px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
    }
    
    .location-info,
    .betashar-section {
        padding: 30px 20px;
    }
    
    .betashar-title {
        font-size: 2rem;
    }
    
    .betashar-poem {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .couple-img {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 1.5rem;
    }
    
    .couple-names .name {
        letter-spacing: 2px;
    }
    
    .couple-names .ampersand {
        margin-top: 25px !important;
        font-size: 2rem;
        margin: 0 3px;
    }
    
    .music-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .date-day {
        font-size: 4rem;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-item {
        padding: 15px 20px;
        min-width: 70px;
    }
}

html {
    scroll-behavior: smooth;
}

[data-aos] {
    pointer-events: auto;
}



/* Save-the-date calendar styles */
.save-date-card {
    display: inline-block;
    background: #ffffff;
    padding: 30px 30px 20px;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    margin: 32px 0;
}

.calendar {
    width: 340px;
    max-width: 90vw;
}

.calendar-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 14px;
}

.calendar-header .cal-month {
    color: var(--primary-color);
    font-weight: 600;
}

.calendar-header .cal-year {
    color: var(--text-light);
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.cal-weekday {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.cal-cell {
    position: relative;
    height: 44px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.cal-cell.is-empty {
    background: transparent;
    box-shadow: none;
}

.cal-cell.is-highlighted {
    color: var(--primary-color);
    font-weight: 700;
}

.cal-number {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
}

.cal-ring {
    position: absolute;
    width: 38px;
    height: 38px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 6px rgba(212, 165, 116, 0.12), 0 8px 20px rgba(0,0,0,0.08);
}

.calendar-note {
    margin-top: 16px;
    font-size: 1.05rem;
    color: var(--text-light);
    font-style: italic;
}

@media (max-width: 480px) {
    .calendar { width: 300px; }
    .calendar-header { font-size: 1.7rem; }
    .cal-cell { height: 40px; }
    .cal-ring { width: 34px; height: 34px; }
}


/* Small variant of section title for in-card headings */
.section-title--sm {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.2;
}


/* Inline title style for highlighted phrases inside paragraphs */
.inline-title {
    font-family: 'Cormorant Garamond', serif; /* match section-title font */
    font-weight: 600; /* match section-title weight */
    color: var(--primary-color); /* keep the same accent color */
}


/* THEME ENHANCEMENTS — wedding palette and ornaments */
:root {
    /* Primary palette */
    --primary-color: #d4a574; /* gold */
    --accent-color: #c19a6b;  /* deep gold */

    /* Neutrals */
    --secondary-color: #f8f5f1; /* warm paper */
    --paper: #fbfaf8;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #666666;

    /* Sub‑accents and helpers */
    --gold-100: #f7efe6;
    --gold-200: #f1e3d3;
    --gold-300: #e6d3bd;
    --hairline: rgba(212, 165, 116, 0.35);

    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-elev: 0 20px 60px rgba(0,0,0,0.12);
}

/* Soft paper feel without images */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(1200px 800px at 10% 0%, rgba(212,165,116,0.08), transparent 60%),
        radial-gradient(1000px 700px at 100% 100%, rgba(193,154,107,0.06), transparent 55%);
    z-index: -1;
}

/* Section title hairline divider */
.section-title { position: relative; }
.section-title::after {
    content: "";
    display: block;
    width: 140px;
    height: 2px;
    margin: 14px auto 0;
    background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

/* Top/Bottom ornaments with subtle heart */
.ornament-top, .ornament-bottom {
    position: relative;
    height: 18px;
    margin: 10px 0 20px;
}
.ornament-top::before, .ornament-bottom::before {
    content: "";
    position: absolute;
    left: 12%; right: 12%; top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.ornament-top::after, .ornament-bottom::after {
    content: "♥";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -55%);
    font-size: 12px;
    color: var(--primary-color);
    background: var(--secondary-color);
    padding: 0 6px;
    border-radius: 10px;
}

/* Card polish: consistent borders and softer shadow */
.location-info,
.betashar-section,
.save-date-card {
    border: 1px solid var(--gold-200);
    box-shadow: var(--shadow-soft);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.95)),
        linear-gradient(0deg, var(--white), var(--white));
}

/* Slightly rounded corner accents (very subtle) */
.location-info::before,
.betashar-section::before,
.save-date-card::before {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

/* Calendar highlight refinement */
.cal-cell.is-highlighted .cal-number { color: var(--primary-color); }
.cal-cell.is-highlighted .cal-ring {
    border-width: 3px;
    box-shadow: 0 0 0 7px rgba(212,165,116,0.12), 0 10px 24px rgba(0,0,0,0.10);
}
.cal-cell.is-highlighted::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: radial-gradient(closest-side, rgba(212,165,116,0.12), transparent 70%);
    z-index: 0;
}

/* Responsive refinements */
@media (max-width: 600px) {
    .section-title::after { width: 110px; }
    .ornament-top::after, .ornament-bottom::after { font-size: 11px; }
}


/* Final overrides — apply fixed :root and finishing touches */
:root {
    --primary-color: #d4a574;
    --accent-color: #c19a6b;
    --secondary-color: #f8f5f1;
    --paper: #fbfaf8;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #666666;
    --gold-100: #f7efe6;
    --gold-200: #f1e3d3;
    --gold-300: #e6d3bd;
    --hairline: rgba(212, 165, 116, 0.35);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-elev: 0 20px 60px rgba(0,0,0,0.12);
}

/* Ensure cards anchor their decorative ::before overlays */
.location-info,
.betashar-section,
.save-date-card { position: relative; }

/* Remove earlier solid line background on ornaments to show new subtle version */
.ornament-top,
.ornament-bottom { background: none !important; }


/* === Wedding enhancements: paper grain, section panels, floral & qoshqar mүйіз ornaments, calendar heart, buttons, a11y === */

/* Subtle paper grain overlay (very light). Kept separate from body::before gradients */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.08; /* grain intensity */
    background-image:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.02) 0, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 2px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.02) 0, rgba(0,0,0,0.02) 1px, transparent 1px, transparent 2px);
    mix-blend-mode: multiply;
}

@media (prefers-reduced-transparency: reduce) {
    body::after { opacity: 0.04; }
}

/* Gentle gradient panels per section using ::before. No HTML changes required */
.page {
    position: relative;
}
.page::before {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.96));
    box-shadow: 0 12px 36px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
    z-index: -1;
}

/* Slight section-tint variants */
.page-2::before { background: linear-gradient(180deg, rgba(251,250,248,0.9), rgba(255,255,255,0.96)); }
.page-3::before { background: linear-gradient(180deg, rgba(247,239,230,0.9), rgba(255,255,255,0.96)); }
.page-4::before { background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.96)); }
.page-5::before { background: linear-gradient(180deg, rgba(251,250,248,0.9), rgba(255,255,255,0.96)); }

@media (max-width: 600px) {
    .page::before { inset: 12px; border-radius: 18px; }
}

/* Corner ornaments: soft floral + qoshqar mүйіз in TL/BR corners via multi-bg SVGs */
.page::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-repeat: no-repeat, no-repeat;
    background-size: 120px 120px, 140px 140px;
    background-position: left -10px top -10px, right -15px bottom -15px;
    opacity: 0.18; /* overall ornament softness */
    /* First: floral swirl; Second: qoshqar mүйіз motif */
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M20 70c10-25 35-35 55-30-14 2-24 10-28 20 8-4 18-3 24 3-10 1-16 7-18 14 6-4 12-5 18-2-10 4-16 11-18 20' fill='none' stroke='%23d4a574' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='18' cy='72' r='2' fill='%23d4a574'/%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cpath d='M70 30c18 0 26 12 26 22 0 10-8 18-18 18-7 0-12-5-12-12 0-6 4-10 10-10 4 0 8 3 8 8 0 5-4 8-8 8' fill='none' stroke='%23d4a574' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M70 110c-18 0-26-12-26-22 0-10 8-18 18-18 7 0 12 5 12 12 0 6-4 10-10 10-4 0-8-3-8-8 0-5 4-8 8-8' fill='none' stroke='%23d4a574' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Divider endcaps using qoshqar mүйіз on ornaments */
.ornament-top::before,
.ornament-bottom::before {
    background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}
.ornament-top::after,
.ornament-bottom::after {
    content: "\2665"; /* heart remains */
}

/* Tiny heart accent on highlighted calendar day */
.cal-cell.is-highlighted .cal-number {
    position: relative;
}
.cal-cell.is-highlighted .cal-number::after {
    content: "\2665";
    position: absolute;
    top: -8px;
    right: -10px;
    font-size: 10px;
    color: var(--accent-color);
    text-shadow: 0 1px 2px rgba(0,0,0,0.12);
}
@media (max-width: 480px) {
    .cal-cell.is-highlighted .cal-number::after { top: -7px; right: -8px; font-size: 9px; }
}

/* Buttons: thin gold border, subtle glow on hover/focus */
.map-button {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}
.map-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(212,165,116,0.12), 0 10px 24px rgba(0,0,0,0.10);
    background: linear-gradient(180deg, rgba(212,165,116,0.08), rgba(212,165,116,0.02));
}
.map-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(212,165,116,0.25);
}

/* Accessibility: ensure paragraph contrast remains high; ornaments already low-contrast */
.invitation-text, .betashar-details, .address, .hosts-text { color: var(--text-dark); }


/* === RSVP section styles === */
.rsvp-card {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 28px 24px 24px;
    background: var(--white);
    border: 1px solid var(--gold-200);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}
.rsvp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
    pointer-events: none;
}
.rsvp-intro {
    text-align: center;
    margin: 8px auto 16px;
    max-width: 680px;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}
.rsvp-form-wrap {
    margin-top: 10px;
    border-radius: 16px;
    overflow: hidden; /* rounds iframe corners */
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border: 1px solid var(--gold-100);
}
.rsvp-iframe {
    display: block;
    width: 100%;
    height: 760px;
    background: #fff;
}
.rsvp-note {
    text-align: center;
    color: var(--text-light);
    margin: 14px 0 8px;
    font-style: italic;
}
.rsvp-actions {
    text-align: center;
}
.rsvp-link {
    text-decoration: none;
}

@media (max-width: 600px) {
    .rsvp-card { padding: 20px 14px; }
    .rsvp-iframe { height: 880px; }
}


/* === Native RSVP form controls === */
.rsvp-form { margin-top: 10px; }
.rsvp-form .form-group { margin: 14px 0 18px; }
.rsvp-form label, .rsvp-form .label { display: block; font-weight: 600; color: var(--text-dark); font-family: 'Cormorant Garamond', serif; margin-bottom: 8px; }
.rsvp-form .req { color: var(--primary-color); }
.form-control { width: 100%; padding: 12px 14px; border: 1px solid var(--gold-200); border-radius: 12px; background: #fff; color: var(--text-dark); font-size: 1rem; transition: box-shadow .2s ease, border-color .2s ease; }
.form-control:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 4px rgba(212,165,116,0.12), inset 0 1px 0 rgba(255,255,255,0.6); }
.form-control::placeholder { color: #9a9a9a; }

.radio-group { display: flex; gap: 18px; flex-wrap: wrap; }
.radio { display: inline-flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--text-dark); }
.radio input[type="radio"] { accent-color: var(--primary-color); width: 18px; height: 18px; }

.help-text { display: block; font-size: .9rem; color: var(--text-light); margin-top: 6px; }
.error-text { margin-top: 6px; color: #b24a4a; font-size: .92rem; min-height: 1.2em; }

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.form-status { font-size: .95rem; color: var(--text-light); }

.btn-submit[disabled] { opacity: .6; cursor: not-allowed; }
.btn-submit.loading { position: relative; }
.btn-submit.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid rgba(212,165,116,.6); border-top-color: var(--primary-color); border-radius: 50%; display: inline-block; margin-left: 10px; vertical-align: middle; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#guests-wrapper.is-hidden { display: none; }

.success-banner { background: linear-gradient(180deg, rgba(212,165,116,0.1), rgba(212,165,116,0.05)); border: 1px solid var(--gold-200); color: var(--text-dark); padding: 14px 16px; border-radius: 12px; text-align: center; font-weight: 600; }
