/* ==========================================
   NIŞAN DAVETİYESİ - STYLE
   Renk Paleti: Zeytin Yeşili / Krem / Doğal Tonlar
   Fonts: Great Vibes (calligraphy), Cormorant Garamond (serif), Montserrat (sans)
   ========================================== */

/* ---- CSS Variables ---- */
:root {
    --burgundy: #556B2F;
    --burgundy-light: #6E8B3D;
    --burgundy-dark: #3D4E22;
    --rose: #7A9E50;
    --rose-light: #9DB87A;
    --cream-bg: #F5EDE3;
    --cream-light: #FAF6F0;
    --cream-dark: #E8DDD0;
    --gold-accent: #8B7D3C;
    --text-dark: #2A3518;
    --text-medium: #445A30;
    --text-light: #637A4A;

    --font-script: 'Great Vibes', cursive;
    --font-script-names: 'Allura', cursive;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;

    --max-width: 480px;
    --section-padding: 3rem 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-serif);
    color: var(--text-dark);
    background-color: var(--cream-bg);
    /* Subtle paper/linen texture via CSS */
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(184, 149, 106, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(85, 107, 47, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(184, 149, 106, 0.05) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ---- Scrollbar styling ---- */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--cream-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--rose-light);
    border-radius: 2px;
}

/* ============================================
   ENVELOPE ANIMATION
   ============================================ */
#envelope-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 10%, rgba(0, 0, 0, .10), transparent 22%),
        var(--cream-dark, #e8e0cf);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s ease;
}

#envelope-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Tıklanabilir alan */
.envelope-scene {
    position: relative;
    width: min(760px, 92vw);
    height: 420px;
    cursor: pointer;
    perspective: 1200px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

/* İçinden çıkan kağıt */
.paper {
    position: absolute;
    left: 8%;
    bottom: 10px;
    width: 84%;
    height: 280px;
    background: linear-gradient(180deg, #fffaf0, #efe4cf);
    border-radius: 10px 10px 4px 4px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .22);
    z-index: 3;
    transform: translateY(0);
    transition: transform 1.2s cubic-bezier(0.34, 1.05, 0.64, 1);
    text-align: center;
    padding-top: 50px;
    box-sizing: border-box;
}

.paper h2 {
    margin: 0 0 10px;
    font-size: clamp(32px, 7vw, 48px);
    color: #29311b;
    font-weight: 400;
}

.paper p {
    margin: 0;
    font-size: 38px;
    color: #29311b;
    font-style: italic;
}

.paper span {
    display: block;
    margin-top: 15px;
    font-family: var(--font-serif);
    font-size: 18px;
    color: #29311b;
    font-weight: 500;
    letter-spacing: 2px;
}

/* Zarf Wrapper */
.envelope-wrapper {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    height: 310px;
}

/* Zarf Arka Duvarı (Layer 1) */
.envelope-back {
    position: absolute;
    inset: 0;
    background: #3f4930;
    border-radius: 5px;
    box-shadow: 0 24px 45px rgba(0, 0, 0, .35);
    z-index: 1;
}

.envelope-back::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08), transparent 18%),
        radial-gradient(circle at 70% 80%, rgba(0, 0, 0, .10), transparent 20%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
    opacity: .75;
    pointer-events: none;
    border-radius: 5px;
}

/* Ön kapaklar kapsayıcısı (Layer 4) */
.envelope-front {
    position: absolute;
    inset: 0;
    border-radius: 5px;
    overflow: hidden;
    z-index: 4;
    pointer-events: none;
}

.envelope-front::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .08), transparent 18%),
        radial-gradient(circle at 70% 80%, rgba(0, 0, 0, .10), transparent 20%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px);
    opacity: .75;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* Sol ve sağ kat izleri */
.side {
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 100%;
}

.side.left {
    left: 0;
    background: linear-gradient(25deg, rgba(255, 255, 255, .08), transparent 45%), #3f4930;
    clip-path: polygon(0 100%, 0 0, 100% 56%);
}

.side.right {
    right: 0;
    background: linear-gradient(-25deg, rgba(0, 0, 0, .14), transparent 48%), #3f4930;
    clip-path: polygon(100% 100%, 100% 0, 0 56%);
}

/* Alt kısım daha büyük */
.bottom-flap {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(0, 0, 0, .13)), #3f4930;
    clip-path: polygon(0 100%, 50% 43%, 100% 100%);
}

/* Üst kapak daha küçük */
.top-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 58%;
    z-index: 8;
    background: #454f35;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform-origin: top center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow:
        inset 0 -12px 20px rgba(0, 0, 0, .20),
        0 10px 18px rgba(0, 0, 0, .22);
}

/* Mühür */
.wax-seal {
    position: absolute;
    left: 50%;
    top: 52%;
    width: 95px;
    height: 95px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fffcf5, #dcb98a 70%);
    box-shadow:
        0 9px 18px rgba(0, 0, 0, .25),
        inset 0 4px 8px rgba(255, 255, 255, .6),
        inset 0 -8px 13px rgba(139, 105, 65, .4);
    z-index: 10;
    display: grid;
    place-items: center;
    transition: transform 0.6s ease, opacity 0.5s ease;
}

.wax-seal::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid rgba(139, 105, 65, .2);
    box-shadow: inset 0 2px 6px rgba(139, 105, 65, .3);
}

.wax-seal span {
    color: #29311b;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
    font-size: 34px;
    line-height: .8;
    z-index: 1;
}

/* Kabartma desenler */
.emboss {
    position: absolute;
    color: rgba(255, 255, 255, .12);
    text-shadow:
        1px 1px 1px rgba(0, 0, 0, .38),
        -1px -1px 1px rgba(255, 255, 255, .07);
    font-size: 42px;
    letter-spacing: 22px;
    z-index: 7;
    pointer-events: none;
    opacity: .7;
    font-family: serif;
}

.emboss-1 {
    top: 38px;
    left: 12%;
    transform: rotate(-8deg);
}

.emboss-2 {
    right: 9%;
    top: 95px;
    transform: rotate(14deg);
}

.emboss-3 {
    left: 24%;
    bottom: 42px;
    transform: rotate(5deg);
}

/* Tıklanınca animasyon */
#open-envelope:checked+.envelope-scene .paper {
    transform: translateY(-210px);
}

#open-envelope:checked+.envelope-scene .top-flap {
    transform: rotateX(165deg);
    z-index: 2;
}

#open-envelope:checked+.envelope-scene .wax-seal {
    transform: translate(-50%, -50%) scale(.85);
    opacity: 0;
}

#open-envelope:checked+.envelope-scene #tapText {
    opacity: 0;
}

@keyframes pulse-fade {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Mobil */
@media (max-width: 600px) {
    .envelope-scene {
        height: 330px;
        width: 95vw;
    }

    .envelope-wrapper {
        height: 240px;
    }

    .paper {
        height: 220px;
        bottom: 10px;
        padding-top: 30px;
    }

    .wax-seal {
        width: 72px;
        height: 72px;
        top: 50%;
    }

    .wax-seal span {
        font-size: 26px;
    }

    .emboss {
        font-size: 28px;
        letter-spacing: 12px;
    }

    #open-envelope:checked+.envelope-scene .paper {
        transform: translateY(-160px);
    }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.invitation-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
}

#invitation-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 0 2rem;
    transition: opacity 1s ease 0.2s, transform 1s ease 0.2s, visibility 0s;
}

#invitation-content.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---- Ornament Top ---- */
.ornament-top {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.ornament-svg {
    width: 120px;
    height: 24px;
}

/* ============================================
   INVITATION CARD
   ============================================ */
.invitation-card {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.card-inner {
    position: relative;
    background: transparent;
    padding: 0;
}

.card-content {
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
}

/* Wavy borders */
.wavy-border {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wavy-border svg {
    width: 100%;
    height: 20px;
    display: block;
}

.wavy-border-top svg {
    transform: rotate(180deg);
}

.card-sub.time-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--burgundy);
    opacity: 0.8;
}

/* ============================================
   PARENTS NAMES
   ============================================ */
.parents-names {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.parent-side {
    display: flex;
    flex-direction: column;
    text-align: center;
    flex: 1;
}

.parent-title {
    font-family: var(--font-serif);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.parent-names {
    font-family: var(--font-script);
    font-size: 1.6rem;
    color: var(--burgundy);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.parent-surname {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-medium);
}

.card-subtitle {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.card-invited {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.card-divider {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.divider-ornament {
    width: 80px;
    height: 16px;
}

.card-divider-bottom {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.divider-line {
    width: 100px;
    height: 10px;
}

.bride-name,
.groom-name {
    font-family: var(--font-script-names);
    font-weight: 400;
    color: var(--burgundy);
    line-height: 1.2;
}

.bride-name {
    font-size: 3.2rem;
    margin-bottom: 0;
}

.groom-name {
    font-size: 3.2rem;
    margin-top: 0;
}

.names-separator {
    display: flex;
    justify-content: center;
    margin: 0.3rem 0;
}

.ampersand-ornament {
    width: 40px;
    height: 24px;
}

.card-message {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 320px;
    margin: 0 auto;
    font-style: italic;
}

/* Card date display */
.card-date-display {
    margin-top: 1rem;
}

/* ---- Scroll Down Arrow ---- */
.scroll-indicator {
    text-align: center;
    padding: 1rem 0 0.5rem;
    animation: float-arrow 2.5s ease-in-out infinite;
}

.scroll-arrow-svg {
    width: 20px;
    height: 36px;
    opacity: 0.5;
}

@keyframes float-arrow {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(8px);
        opacity: 0.8;
    }
}

/* ---- Section Flourish ---- */
.section-flourish {
    text-align: center;
    padding: 0.5rem 0;
}

.flourish-svg {
    width: 60px;
    height: 24px;
}

/* ============================================
   DATE SECTION
   ============================================ */
.date-section {
    padding: var(--section-padding);
    text-align: center;
}

.section-title {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--burgundy);
    margin-bottom: 0.75rem;
    font-weight: 400;
}

/* Ornament line under section titles */
.date-ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.ornament-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--burgundy);
    opacity: 0.4;
}

.ornament-line-left,
.ornament-line-right {
    width: 40px;
    height: 1px;
    background: var(--burgundy);
    opacity: 0.3;
}

.ornament-diamond {
    font-size: 0.5rem;
    color: var(--burgundy);
    opacity: 0.5;
    margin: 0 6px;
}

.date-subtitle {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 300px;
    margin: 0 auto 2rem;
    font-style: italic;
}

/* Date display card */
.date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(85, 107, 47, 0.15);
    border-bottom: 1px solid rgba(85, 107, 47, 0.15);
}

.date-day,
.date-year {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--burgundy);
    line-height: 1;
}

.date-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.date-month {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.date-divider-line {
    width: 30px;
    height: 1px;
    background: var(--burgundy);
    opacity: 0.3;
    display: block;
}

.date-weekday {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Time display */
.date-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.clock-icon {
    width: 18px;
    height: 18px;
}

.time-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-medium);
    letter-spacing: 2px;
}

/* ============================================
   VENUE SECTION
   ============================================ */
.venue-section {
    padding: var(--section-padding);
    text-align: center;
}

.venue-illustration {
    margin: 1rem auto 1.5rem;
    width: 200px;
}

.venue-building-svg {
    width: 100%;
    height: auto;
}

.venue-name {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--burgundy);
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.venue-location {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.venue-address {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-medium);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto 0.75rem;
}

.venue-time {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.inline-icon {
    width: 14px;
    height: 14px;
    color: var(--burgundy);
    opacity: 0.6;
}

/* Map container */
.venue-map {
    margin: 0 1rem 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(85, 107, 47, 0.12);
    box-shadow: 0 2px 12px rgba(85, 107, 47, 0.06);
}

.venue-map iframe {
    display: block;
}

/* Buttons */
.venue-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1.5rem;
    max-width: 300px;
    margin: 0 auto;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-calendar {
    background: var(--burgundy);
    color: var(--cream-light);
    box-shadow: 0 3px 12px rgba(85, 107, 47, 0.25);
}

.btn-calendar:hover {
    background: var(--burgundy-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(85, 107, 47, 0.3);
}

.btn-directions {
    background: transparent;
    color: var(--burgundy);
    border: 1.5px solid var(--burgundy);
}

.btn-directions:hover {
    background: var(--burgundy);
    color: var(--cream-light);
    transform: translateY(-1px);
}

/* ============================================
   CLOSING SECTION
   ============================================ */
.closing-section {
    padding: 2rem 1.5rem 3rem;
    text-align: center;
}

.closing-ornament {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.closing-ornament-bottom {
    margin-bottom: 0;
    margin-top: 1rem;
}

.closing-ornament-svg {
    width: 60px;
    height: 20px;
}

.closing-message {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 280px;
    margin: 0 auto 1rem;
}

.closing-names {
    font-family: var(--font-script-names);
    font-size: 2rem;
    color: var(--burgundy);
    font-weight: 400;
}

.closing-names span {
    font-size: 1.5rem;
    opacity: 0.6;
    margin: 0 0.2rem;
}

/* ============================================
   RSVP / KATILIM BİLDİRİSİ
   ============================================ */
.rsvp-section {
    padding: var(--section-padding);
    text-align: center;
}

.rsvp-subtitle {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-medium);
    line-height: 1.8;
    max-width: 300px;
    margin: 0 auto 2rem;
    font-style: italic;
}

.rsvp-form {
    max-width: 320px;
    margin: 0 auto;
    text-align: left;
}

.rsvp-person-block {
    background: rgba(255, 255, 255, 0.4);
    padding: 1.25rem 1rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(85, 107, 47, 0.1);
    margin-bottom: 1rem;
}

.person-label {
    font-family: var(--font-serif);
    color: var(--burgundy);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(85, 107, 47, 0.1);
    padding-bottom: 0.5rem;
}

.person-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.person-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(85, 107, 47, 0.2), transparent);
}

.person-divider-text {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
}

.optional-text {
    font-weight: 300;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-light);
    font-size: 0.65rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream-light);
    border: 1px solid rgba(85, 107, 47, 0.2);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
    font-style: italic;
}

.form-input:focus {
    border-color: var(--burgundy);
    box-shadow: 0 0 0 3px rgba(85, 107, 47, 0.1);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1,1 L6,6 L11,1' fill='none' stroke='%23556B2F' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 0.5rem;
}

.radio-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid rgba(85, 107, 47, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--cream-light);
}

.radio-option:hover {
    border-color: var(--burgundy);
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid rgba(85, 107, 47, 0.35);
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--burgundy);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.radio-option input[type="radio"]:checked~.radio-custom {
    border-color: var(--burgundy);
}

.radio-option input[type="radio"]:checked~.radio-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.radio-option input[type="radio"]:checked~.radio-text {
    color: var(--burgundy);
    font-weight: 500;
}

.radio-text {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--text-medium);
    transition: all 0.3s ease;
}

/* Submit button */
.btn-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: var(--burgundy);
    color: var(--cream-light);
    border: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(85, 107, 47, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: var(--burgundy-dark);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(85, 107, 47, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

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

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

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

/* Feedback states */
.rsvp-feedback {
    text-align: center;
    padding: 2rem 1rem;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.feedback-title {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--burgundy);
    margin-bottom: 0.5rem;
}

.feedback-text {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-medium);
    font-style: italic;
}

/* ============================================
   SCROLL ANIMATIONS (Intersection Observer)
   ============================================ */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll indicator always animates even when fade-in */
.scroll-indicator.fade-in-section.visible {
    animation: float-arrow 2.5s ease-in-out infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Smaller phones */
@media (max-width: 360px) {

    .bride-name,
    .groom-name {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .date-day,
    .date-year {
        font-size: 2.2rem;
    }

}

/* Tablets and above - centered elegant feel */
@media (min-width: 481px) {
    body {
        display: flex;
        justify-content: center;
    }

    #invitation-content {
        max-width: var(--max-width);
    }

    .invitation-card {
        padding: 0 2rem;
    }

    .card-content {
        padding: 3.5rem 2rem;
    }

    .venue-buttons {
        flex-direction: row;
        max-width: 400px;
    }

    .btn {
        flex: 1;
    }
}

/* Desktop */
@media (min-width: 768px) {
    body {
        padding: 2rem 0;
    }

    #invitation-content {
        border-left: 1px solid rgba(85, 107, 47, 0.06);
        border-right: 1px solid rgba(85, 107, 47, 0.06);
        box-shadow: 0 0 40px rgba(85, 107, 47, 0.04);
        border-radius: 4px;
    }

    .bride-name,
    .groom-name {
        font-size: 3.6rem;
    }

}