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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Striped background reminiscent of the original invitation */
.striped-background {
    min-height: 100vh;
    background: repeating-linear-gradient(
        90deg,
        #fdf6eb 0,
        #fdf6eb 60px,
        #d4e7f2 60px,
        #d4e7f2 120px
    );
    padding: 50px 0;
}

/* Invitation container */
.invitation-container {
    position: relative;
    width: 90%;
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    background: #fffdf8;
    border: 5px solid #e6537c;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
}

/* Decorative stars */
.star {
    position: absolute;
    width: 70px;
    height: 70px;
    clip-path: polygon(
        50% 0%,
        61% 35%,
        98% 35%,
        68% 57%,
        79% 91%,
        50% 70%,
        21% 91%,
        32% 57%,
        2% 35%,
        39% 35%
    );
    opacity: 0.8;
}

/* Specific star positions and colours (pastels inspired by the invite) */
.star-1 {
    background: #f9b872;
    top: -20px;
    left: 20px;
}

.star-2 {
    background: #ffd35c;
    top: 40px;
    right: 20px;
}

.star-3 {
    background: #8dc6d7;
    /* move off the bottom of the container so it does not cover the map */
    bottom: -40px;
    left: 80px;
}

.star-4 {
    background: #a7d6a0;
    bottom: -30px;
    right: 30px;
}

.star-5 {
    background: #f2a7c6;
    /* place mid-way down the container on the right */
    top: 200px;
    right: 60px;
}

/* Heading styles */
.invite-header {
    margin-bottom: 40px;
}

.tagline {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.tagline span {
    display: inline-block;
    margin: 0 4px;
}
.tagline .word1 { color: #5ab7e1; }
.tagline .word2 { color: #e185a8; }
.tagline .word3 { color: #78c083; }
.tagline .word4 { color: #f7b64a; }
.tagline .word5 { color: #a682bf; }

.names {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: #e6537c;
    margin-bottom: 10px;
}

.details {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #b27a39;
    font-size: 1rem;
    margin-bottom: 5px;
}

.details strong {
    color: #bf5a6b;
}

/* RSVP Section */
.rsvp h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: #e6537c;
    margin-bottom: 10px;
}

.rsvp p {
    margin-bottom: 20px;
    color: #555;
}

.rsvp form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

/* Attendance fieldset styling */
.rsvp fieldset.attendance {
    border: none;
    margin: 10px 0;
    padding: 0;
    text-align: left;
}

.rsvp fieldset.attendance legend {
    font-weight: 500;
    color: #7a5473;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.rsvp fieldset.attendance span {
    color: #e6537c;
}

.rsvp .radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #555;
}

.privacy-note {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
    text-align: left;
}

.rsvp label {
    font-weight: 500;
    margin-bottom: 2px;
    color: #7a5473;
    font-size: 0.9rem;
    text-align: left;
}
.rsvp label span {
    color: #e6537c;
}

.rsvp input,
.rsvp textarea {
    padding: 10px 12px;
    border: 2px solid #f0dfe5;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff7fb;
}

.rsvp input:focus,
.rsvp textarea:focus {
    outline: none;
    border-color: #e6537c;
    box-shadow: 0 0 0 2px rgba(230, 83, 124, 0.2);
}

.rsvp button {
    margin-top: 10px;
    padding: 12px;
    background: #e6537c;
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.rsvp button:hover {
    background: #c64263;
}

/* Map section */
.map-section {
    margin-top: 50px;
}

.map-section h2 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8rem;
    color: #e6537c;
    margin-bottom: 10px;
}

.map-section p {
    margin-bottom: 15px;
    color: #555;
}

.map-section a {
    color: #e6537c;
    text-decoration: underline;
}

.map-section .map-embed {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .tagline {
        font-size: 1.6rem;
    }
    .names {
        font-size: 2.2rem;
    }
    .invitation-container {
        padding: 30px 20px 40px;
    }
}