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

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Georgia', serif;
    background-color: #f2ede4;
    color: #3d1700;
    padding: 1.5rem;
}

/* --- Pill navigation --- */
.pill-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.pill {
    border: 1px solid #444;
    border-radius: 999px;
    padding: 0.4rem 1.1rem;
    text-decoration: none;
    color: #3d1700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    transition: background 0.2s;
    white-space: nowrap;
}

.pill:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-pill.active {
    background: #3d1700;
    color: #fff;
}

.pill-spacer {
    flex-basis: 100%;
    height: 0;
}

@media (min-width: 700px) {
    .pill-spacer {
        flex-basis: 0;
        width: 2rem;
        height: auto;
    }
}

/* --- Invitation card (hero + countdown, floral wreath border) --- */
.invite-card {
    position: relative;
    max-width: 950px;
    margin: 0 auto 3rem;
    /* min-height: 520px; */
    aspect-ratio: 950 / 520;
    overflow: hidden;
    background: linear-gradient(180deg, #fbf6ef 0%, #f7f1e8 100%);
    border-radius: 14px;
    padding: 1.25rem 0.75rem 2rem;
    box-shadow: 0 18px 40px rgba(28,28,28,0.08);
    background-image: url('../images/flowers/background_flowers.png');
    background-size: cover;
}

.hero {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 4rem 1rem 1rem;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #3d1700;
    margin-bottom: 1rem;
}

.hero p {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    color: #555;
}

.cta-button {
    display: inline-block;
    padding: 0.6rem 1.75rem;
    border: 1px solid #3d1700;
    border-radius: 999px;
    text-decoration: none;
    color: #3d1700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: background 0.2s;
}

.cta-button:hover {
    background: rgba(0, 0, 0, 0.06);
}

.cta-button.primary {
    background: #3d1700;
    color: #fff;
}

.cta-button.primary:hover {
    background: #444;
}

.invite-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0.5rem 1rem 3rem;
}

/* --- Flowers arranged in a loose wreath around the card --- */
.flower {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.flower img {
    width: 100%;
    height: auto;
    display: block;
}

/* Loose wreath: place flowers around the invite card */
/* .flower-1 { bottom: -50px; left: -50px; width: 200px; transform: rotate(-10deg); }
.flower-2 { top: 300px; left: 750px; width: 210px; transform: rotate(-120deg);  }
.flower-3 { top: 130px; left: 750px; width: 120px; transform: rotate(5deg); }
.flower-4 { top: 150px; right: -30px; width: 170px; transform: rotate(12deg); }
.flower-5 { top: 200px; left: 700px; width: 150px; transform: rotate(-20deg); }
.flower-6 { bottom: 35px; left: -20px; width: 140px; transform: rotate(20deg);  }
.flower-7 { top: -30px; left: -30px; width: 130px; transform: rotate(-20deg); }
.flower-8 { top: -10px; right: 60px; width: 150px; transform: rotate(-150deg); }
.flower-9 { bottom: 170px; left: 130px; width: 180px; transform: rotate(8deg); }
.flower-10 { bottom: 60px; left: 140px; width: 120px; transform: rotate(-6deg); }
.flower-11 { bottom: 130px; right: 20px; width: 160px; transform: scaleX(-1) rotate(-6deg); }
.flower-12 { bottom: 100px; left: -30px; width: 200px; transform: rotate(-10deg); }
.flower-13 { bottom: 320px; right: 620px; width: 220px; transform: rotate(10deg); }
.flower-14 { top: 400px; left: 550px; width: 120px; transform: rotate(390deg); }
.flower-15 { top: 10px; right: -10px; width: 150px; transform: rotate(270deg); }
.flower-16 { top: 350px; left: 200px; width: 240px; transform: rotate(8deg); }
.flower-17 { top: 320px; right: 180px; width: 110px; transform: rotate(-8deg); }
.flower-18 { bottom: 100px; left: -50px; width: 200px; transform: rotate(-10deg); }
.flower-19 { top: 180px; left: 60px; transform: rotate(-20deg); width: 140px; }
.flower-20 { right: 12%; bottom: -80px; transform: rotate(20deg); width: 140px; }
.flower-21 { left: 50%; bottom: -40px; transform: translateX(-50%) rotate(6deg); width: 120px; } */

.flower-1 { bottom: -50px; left: -50px; width: 200px; transform: rotate(-10deg); }
.flower-2 { top: 300px; left: 750px; width: 210px; transform: rotate(-120deg);  }
.flower-3 { top: 130px; left: 750px; width: 120px; transform: rotate(5deg); }
.flower-4 { top: 150px; right: -30px; width: 170px; transform: rotate(12deg); }
.flower-5 { top: 200px; left: 700px; width: 150px; transform: rotate(-20deg); }
.flower-6 { bottom: 35px; left: -20px; width: 140px; transform: rotate(20deg);  }
.flower-7 { top: -30px; left: -30px; width: 130px; transform: rotate(-20deg); }
.flower-8 { top: -10px; right: 60px; width: 150px; transform: rotate(-150deg); }
.flower-9 { bottom: 170px; left: 130px; width: 180px; transform: rotate(8deg); }
.flower-10 { bottom: 60px; left: 140px; width: 120px; transform: rotate(-6deg); }
.flower-11 { bottom: 130px; right: 20px; width: 160px; transform: scaleX(-1) rotate(-6deg); }
.flower-12 { bottom: 100px; left: -30px; width: 200px; transform: rotate(-10deg); }
.flower-13 { bottom: 320px; right: 620px; width: 220px; transform: rotate(10deg); }
.flower-14 { top: 400px; left: 550px; width: 120px; transform: rotate(390deg); }
.flower-15 { top: 10px; right: -10px; width: 150px; transform: rotate(270deg); }
.flower-16 { top: 350px; left: 200px; width: 240px; transform: rotate(8deg); }
.flower-17 { top: 320px; right: 180px; width: 110px; transform: rotate(-8deg); }
/*.flower-18 { bottom: 100px; left: -50px; width: 200px; transform: rotate(-10deg); }*/
.flower-19 { top: 60px; right: 40px; width: 150px; transform: rotate(-15deg); }
.flower-20 { right: 12%; bottom: -80px; transform: rotate(20deg); width: 140px; }
.flower-21 { left: 50%; bottom: -40px; transform: translateX(-50%) rotate(6deg); width: 120px; }


/* --- Countdown --- */
.countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.countdown-unit {
    text-align: center;
    min-width: 0;
}

.countdown-unit span {
    display: block;
    font-size: 2.2rem;
    font-weight: 400;
    color: #3d1700;
}

.countdown-unit label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: #666;
}

.countdown-arrived {
    font-size: 1.5rem;
    margin-top: 1rem;
    text-align: center;
}

/* --- Info sections --- */
section {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

section h2 {
    text-align: center;
    font-weight: 400;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

section h3 {
    font-weight: 600;
    font-size: 1.05rem;
    margin: 1.5rem 0 0.5rem;
}

.info-grid, .gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.info-card, .gift-card {
    background: linear-gradient(180deg, #fbf6ef 0%, #f7f1e8 100%);
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(28,28,28,0.05);
}

.info-card a, .gift-card a {
    color: #3d1700;
}

.info-card {
    text-align: center;
}

.info-icon {
    position: relative;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.info-icon img {
    max-height: 130px;
    max-width: 100%;
    width: auto;
}

.info-icon--party {
    position: relative;
}

.info-icon--party .icon-primary {
    max-height: 95px;
    width: auto;
}

.info-icon--party .icon-accent {
    position: absolute;
    bottom: -6px;
    left: 50%;
    max-height: 55px;
    width: auto;
    max-width: none;
    transform: translateX(-90%) rotate(-8deg);
}

.info-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0 0 0.35rem;
}

.info-card p {
    margin: 0.15rem 0;
    font-size: 0.95rem;
}

.info-card p a {
    color: #3d1700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.info-card .info-meta {
    color: #555;
    font-size: 0.85rem;

}

.info-extra ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.info-extra p, .info-extra li {
    margin-bottom: 0.5rem;
    color: #444;
}

.gift-card .info-icon {
    height: 110px;
    margin-bottom: 1rem;
}

.gift-card .info-icon img {
    max-height: 110px;
    max-width: 100%;
    width: auto;
}

.gift-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.4rem;
    margin: 0 0 0.35rem;
}

.bank-details {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: #444;
}

.bank-details p {
    margin: 0.15rem 0;
}

.gift-card .cta-button {
    margin-top: 0.5rem;
    display: inline-block;
    text-decoration: underline;
    text-underline-offset: 3px;
    border: none;
    background: none;
    padding: 0;
    color: #3d1700;
    font-size: 0.9rem;
}

.gift-card .cta-button:hover {
    background: none;
    color: #555;
}

form {
    max-width: 500px;
    margin: 0 auto;
/*     padding: 2rem;
    background: #fff;
    border: 1px solid #e2ddd2;
    border-radius: 8px; */
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #3d1700;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #d4af37;
}

button {
    background: #3d1700;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.3s;
    width: 100%;
}

button:hover {
    background: #444;
}

/* ============ RSVP FLOW PAGES ============ */
.page-card {
    max-width: 640px;
    margin: 2rem auto 3rem;
    background: linear-gradient(180deg, #fbf6ef 0%, #f7f1e8 100%);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    box-shadow: 0 18px 40px rgba(28,28,28,0.08);
}

.page-card h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #3d1700;
}

.page-card > p {
    text-align: center;
    color: #555;
    margin-bottom: 1.5rem;
}

.page-card h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.25rem;
    color: #3d1700;
}

.page-card form {
    max-width: 100%;
}

.summary-card {
    background: #fbf7f0;
    border: 1px solid #e8e0d0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin: 0 auto 2rem;
}

.summary-card p {
    margin: 0.2rem 0;
}

.summary-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.25rem;
}

.guest-card {
    background: #fbf7f0;
    border: 1px solid #e8e0d0;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.25rem 0;
    text-align: left;
}

.guest-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: #3d1700;
}

.current-response {
    background: #f2ede4;
    border-radius: 6px;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.rsvp-options > label:first-child {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #3d1700;
}

.rsvp-options label {
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.rsvp-options input[type="radio"] {
    accent-color: #3d1700;
    width: 1.05rem;
    height: 1.05rem;
    cursor: pointer;
}

.attending-fields {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #d8cfbd;
}

.attending-fields label {
    font-weight: 600;
    color: #3d1700;
    margin-bottom: 0.3rem;
}

.attending-fields .field-hint {
    font-weight: 400;
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.attending-fields textarea {
    width: 100%;
    padding: 0.7rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s;
    background: #ffffff;
}

.attending-fields textarea:focus {
    outline: none;
    border-color: #d4af37;
}

/* --- Flash messages --- */
.flash {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid;
}

.flash-success { background: #d4edda; border-color: #28a745; color: #155724; }
.flash-error   { background: #f8d7da; border-color: #dc3545; color: #721c24; }
.flash-info    { background: #d1ecf1; border-color: #17a2b8; color: #0c5460; }
.flash-warning { background: #fff3cd; border-color: #ffc107; color: #856404; }

footer {
    text-align: center;
    margin-top: 2rem;
    color: #888;
    font-size: 0.85rem;
}

/* --- Mobile --- */
@media (max-width: 600px) {
    .invite-card {
        aspect-ratio: auto;
        min-height: 460px;
        background-image: url('../images/flowers/background_flowers_mobile2.png');
        background-size: cover;
        background-position: center;
    }
    .hero { padding: 2.5rem 1rem 0.5rem; }
    .hero h1 { font-size: clamp(1.6rem, 8vw, 2rem); }
    .hero p { font-size: 0.9rem; padding: 0 0.5rem; }
    .flower { width: 80px !important; opacity: 0.85; }
    .countdown { gap: 0.5rem 0.75rem; margin-top: -1rem; }
    .countdown-unit span { font-size: 1.4rem; }
    .countdown-unit label { font-size: 0.7rem; }
    .page-card {
        padding: 1.5rem 1.25rem;
        margin: 1rem auto 2rem;
        border-radius: 10px;
    }
    .page-card h1 { font-size: 1.7rem; }
    .guest-card { padding: 1.1rem; }
    .rsvp-options label { display: flex; margin-right: 0; }
    .summary-card { padding: 1rem 1.25rem; }
    .pill { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
}