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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1rem;
    position: relative;
}

.invitation {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.names {
    font-family: 'Great Vibes', cursive;
    font-size: 7rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.divider {
    width: 50px;
    height: 1px;
    background-color: #000;
    margin: 2rem auto;
}

.date {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.invitation-text {
    font-size: 1rem;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.invitation-text strong {
    font-weight: 700;
    letter-spacing: 0.1em;
}

.event-details {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
}

.ceremony, .reception, .cocktail {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    position: relative;
    z-index: 1;
}

.time {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.event-type {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    margin: 0.5rem 0;
    color: #333;
}

.event-type-seasons {
    font-family: 'Seasons', serif;
    font-size: 1.4rem;
    margin: 0.5rem 0;
    color: #333;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.venue {
    font-size: 0.9rem;
    line-height: 1.6;
}

.venue br {
    display: block;
    margin: 0.5rem 0;
    content: "";
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border: 2px solid #999;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.rsvp-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.rsvp-form h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: #000;
    margin: 1rem auto 0;
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #333;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: transparent;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #000;
    box-shadow: none;
}

#guestNames {
    border-bottom: 1px solid #333;
}

.name-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.name-group .form-group {
    flex: 1;
    margin-bottom: 0;
}

.guest-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 1em;
    padding-right: 2rem;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.guest-names-container {
    margin-bottom: 2rem;
}

.guest-names-label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: left;
}

.form-group textarea {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: transparent;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 0;
    min-height: 60px;
}

.form-group textarea:focus {
    border-color: #000;
    box-shadow: none;
}

.form-group textarea#message {
    min-height: 120px;
}

.submit-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    padding: 1rem 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    margin: 1rem auto 0;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    border-radius: 50px;
    font-weight: 500;
    display: block;
}

.submit-btn:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Disable form elements when not attending */
.not-attending #guests,
.not-attending #guestNames {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 600px) {
    .container {
        padding: 2rem 1rem;
    }

    .names {
        font-size: 4rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .rsvp-form {
        padding: 2rem 1.5rem;
    }

    .event-details {
        gap: 2rem;
    }

    .event-details::after {
        display: none;
    }

    .ceremony, .reception, .cocktail {
        min-width: 100%;
    }

    .name-group {
        flex-direction: column;
        gap: 1.5rem;
    }

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

    .olive-frame::before,
    .olive-frame::after {
        width: 100px;
        height: 100px;
    }
    
    .olive-frame-top,
    .olive-frame-bottom {
        width: 150px;
        height: 75px;
    }
}

.map-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    padding: 0.4rem 1rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 500;
    min-width: 100px;
}

.map-btn:hover {
    background-color: #000;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

h3 {
    font-family: 'Seasons', serif;
    font-size: 100rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

h3.invitation-text {
    font-family: 'Seasons', serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 2em;
    margin: 3rem 0;
}

.date-bold {
    font-weight: 700;
    margin-top: 1rem;
    display: inline-block;
}

/* Alternative free fonts similar to Beautifully Delicious */
h3.alex-brush {
    font-family: 'Alex Brush', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2em;
    margin: 3rem 0;
}

h3.pacifico {
    font-family: 'Pacifico', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2em;
    margin: 3rem 0;
}

h3.satisfy {
    font-family: 'Satisfy', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2em;
    margin: 3rem 0;
}

h3.allura {
    font-family: 'Allura', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 2em;
    margin: 3rem 0;
}

.event-icon {
    margin-bottom: 2rem;
    color: #000;
    display: flex;
    justify-content: center;
}

.event-icon img {
    width: 80px;
    height: 80px;
}

.ceremony .event-icon img {
    transform: scale(1.2);
}

.invitation-header {
    margin-bottom: 3rem;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.invitation-image {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    width: 100%;
    display: block;
    margin: 0 auto;
}

.olive-frame {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.olive-frame::before,
.olive-frame::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
}

.olive-frame::before {
    top: -20px;
    left: -20px;
    transform: rotate(-45deg);
}

.olive-frame::after {
    bottom: -20px;
    right: -20px;
    transform: rotate(135deg);
}

.olive-frame-top,
.olive-frame-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
}

.olive-frame-top {
    top: -40px;
    transform: translateX(-50%) rotate(180deg);
}

.olive-frame-bottom {
    width: 200px;
    height: 100px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Thank You Modal Styles */
.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.thank-you-modal.show {
    opacity: 1;
    visibility: visible;
}

.thank-you-modal-content {
    background: #fff;
    padding: 4rem 3rem;
    border-radius: 8px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid #e0e0e0;
}

.thank-you-modal.show .thank-you-modal-content {
    transform: translateY(0);
}

.thank-you-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: #000;
    line-height: 1.2;
}

.thank-you-modal-hearts {
    font-size: 2rem;
    margin: 1rem 0;
    color: #ff6b6b;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.thank-you-modal-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.thank-you-modal-close {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.thank-you-modal-close:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.thank-you-modal-close:active {
    transform: translateY(0);
}

.thank-you-modal-divider {
    width: 60px;
    height: 2px;
    background-color: #000;
    margin: 1.5rem auto;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile responsiveness for modal */
@media (max-width: 600px) {
    .thank-you-modal-content {
        padding: 3rem 2rem;
        margin: 1rem;
    }
    
    .thank-you-modal-title {
        font-size: 2rem;
    }
    
    .thank-you-modal-hearts {
        font-size: 1.5rem;
    }
    
    .thank-you-modal-subtitle {
        font-size: 0.9rem;
    }
}

/* Validation Modal Styles */
.validation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.validation-modal.show {
    opacity: 1;
    visibility: visible;
}

.validation-modal-content {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-30px);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.validation-modal.show .validation-modal-content {
    transform: translateY(0);
}

.validation-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #333;
    letter-spacing: 0.05em;
    line-height: 1.4;
}

.validation-modal-close {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.validation-modal-close:hover {
    background-color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .validation-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .validation-modal-title {
        font-size: 1.1rem;
    }
} 