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

body {
    font-family: 'Montserrat', sans-serif;
    background: #d4c4b0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Magnolia Decorations */
.magnolia-decor {
    position: fixed;
    width: 250px;
    height: 250px;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

.magnolia-decor.top-left {
    top: 20px;
    left: 20px;
}

.magnolia-decor.top-right {
    top: 20px;
    right: 20px;
}

.magnolia-decor.bottom-left {
    bottom: 20px;
    left: 20px;
}

.magnolia-decor.bottom-right {
    bottom: 20px;
    right: 20px;
}

.container {
    background: #d4c4b0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    max-width: 650px;
    width: 100%;
    padding: 60px 50px;
    position: relative;
    z-index: 2;
}

.invitation {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e3a5f;
}

.invitation h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8em;
    color: #1e3a5f;
    margin-bottom: 35px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 2px;
}

/* Wedding Photo Frame */
.photo-frame {
    margin: 0 auto 35px;
    max-width: 350px;
    padding: 15px;
    background: white;
    border: 3px solid #1e3a5f;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.wedding-portrait {
    width: 100%;
    height: auto;
    display: block;
    border: 1px solid #1e3a5f;
}

.details h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: #1e3a5f;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.couple {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2em;
    color: #1e3a5f;
    margin: 25px 0;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 1px;
}

.celebration-message {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #1e3a5f;
    margin: 30px 0;
    font-style: italic;
    line-height: 1.8;
    padding: 0;
    background: none;
    border: none;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.event-details {
    margin-top: 30px;
    line-height: 2;
}

.event-details p {
    font-family: 'Montserrat', sans-serif;
    color: #1e3a5f;
    font-size: 1em;
    margin: 12px 0;
    font-weight: 300;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-details strong {
    color: #1e3a5f;
    font-weight: 500;
    letter-spacing: 1px;
}

.event-details .address-link {
    color: #1e3a5f;
    text-decoration: underline;
    transition: opacity 0.3s;
    font-weight: 300;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.event-details .address-link:hover {
    opacity: 0.7;
}

/* Host Details */
.host-details {
    margin-top: 40px;
    padding: 30px 0 0 0;
    background: none;
    border-radius: 0;
    border-top: 1px solid #1e3a5f;
    text-align: center;
}

.host-details h3 {
    font-family: 'Montserrat', sans-serif;
    color: #1e3a5f;
    font-size: 1.2em;
    margin-bottom: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.host-details p {
    font-family: 'Montserrat', sans-serif;
    color: #1e3a5f;
    font-size: 1em;
    margin: 8px 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.host-details a {
    color: #1e3a5f;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s;
}

.host-details a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.rsvp-section {
    margin-top: 40px;
    padding-top: 0;
    border-top: none;
}

.rsvp-section h2 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 1.8em;
    color: #1e3a5f;
    margin-bottom: 35px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-family: 'Montserrat', sans-serif;
    display: block;
    margin-bottom: 10px;
    color: #1e3a5f;
    font-size: 0.9em;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border: none;
    border-bottom: 2px solid #1e3a5f;
    border-radius: 0;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s;
    background: transparent;
    color: #1e3a5f;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-bottom-color: #2e5a8f;
    box-shadow: none;
}

.guest-details {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #1e3a5f;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submit-btn {
    width: 100%;
    max-width: 100%;
    padding: 18px;
    background: #1e3a5f;
    color: white;
    border: 2px solid #1e3a5f;
    border-radius: 0;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    margin-top: 30px;
    transition: all 0.3s;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-sizing: border-box;
}

.submit-btn:hover {
    background: transparent;
    color: #1e3a5f;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Thank You Message */
.thank-you-message {
    background: white;
    padding: 60px 40px;
    text-align: center;
    border: 2px solid #1e3a5f;
    margin: 40px 0;
}

.thank-you-message h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5em;
    color: #1e3a5f;
    margin-bottom: 25px;
    font-weight: 400;
    font-style: italic;
}

.thank-you-message p {
    font-family: 'Montserrat', sans-serif;
    color: #1e3a5f;
    font-size: 1.2em;
    margin: 15px 0;
    line-height: 1.8;
    font-weight: 300;
}

@media (max-width: 768px) {
    .magnolia-decor {
        width: 150px;
        height: 150px;
    }

    .magnolia-decor.top-left,
    .magnolia-decor.top-right {
        top: 10px;
    }

    .magnolia-decor.top-left,
    .magnolia-decor.bottom-left {
        left: 10px;
    }

    .magnolia-decor.top-right,
    .magnolia-decor.bottom-right {
        right: 10px;
    }

    .magnolia-decor.bottom-left,
    .magnolia-decor.bottom-right {
        bottom: 10px;
    }

    .container {
        padding: 40px 25px;
    }

    .invitation h1 {
        font-size: 2.2em;
    }

    .photo-frame {
        max-width: 280px;
        padding: 12px;
        margin-bottom: 30px;
    }

    .couple {
        font-size: 1.8em;
    }

    .celebration-message {
        font-size: 1em;
    }

    .details h2 {
        font-size: 1.2em;
        letter-spacing: 2px;
    }

    .event-details p {
        font-size: 0.95em;
    }

    .host-details {
        padding: 25px 0 0 0;
        margin-top: 30px;
    }

    .host-details h3 {
        font-size: 1em;
    }

    .host-details p {
        font-size: 0.9em;
    }

    .rsvp-section h2 {
        font-size: 1.4em;
        letter-spacing: 2px;
    }

    .thank-you-message {
        padding: 40px 25px;
        margin: 30px 0;
    }

    .thank-you-message h2 {
        font-size: 2em;
    }

    .thank-you-message p {
        font-size: 1.1em;
    }

    .form-group label {
        font-size: 0.85em;
    }

    .form-group input,
    .form-group select {
        font-size: 0.95em;
        padding: 10px 12px;
    }

    .submit-btn {
        font-size: 0.9em;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .magnolia-decor {
        width: 100px;
        height: 100px;
    }

    .magnolia-decor.top-left,
    .magnolia-decor.top-right {
        top: 5px;
    }

    .magnolia-decor.top-left,
    .magnolia-decor.bottom-left {
        left: 5px;
    }

    .magnolia-decor.top-right,
    .magnolia-decor.bottom-right {
        right: 5px;
    }

    .magnolia-decor.bottom-left,
    .magnolia-decor.bottom-right {
        bottom: 5px;
    }

    .container {
        padding: 30px 20px;
    }

    .invitation h1 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .photo-frame {
        max-width: 240px;
        padding: 10px;
        margin-bottom: 25px;
    }

    .details h2 {
        font-size: 1em;
        letter-spacing: 1.5px;
    }

    .couple {
        font-size: 1.5em;
    }

    .celebration-message {
        font-size: 0.9em;
        margin: 20px 0;
    }

    .event-details p {
        font-size: 0.85em;
    }

    .host-details h3 {
        font-size: 0.9em;
        letter-spacing: 1.5px;
    }

    .host-details p {
        font-size: 0.85em;
    }

    .rsvp-section h2 {
        font-size: 1.2em;
        letter-spacing: 1.5px;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 0.8em;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9em;
        padding: 10px;
    }

    .submit-btn {
        font-size: 0.85em;
        padding: 14px;
        letter-spacing: 1.5px;
    }

    .thank-you-message {
        padding: 30px 20px;
        margin: 20px 0;
    }

    .thank-you-message h2 {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    .thank-you-message p {
        font-size: 1em;
    }
}
