/* General Styles */
body {
    font-family: 'Playfair Display', serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3 {
    font-weight: 700;
}

section {
    min-height: 100vh;
    padding: 4rem 0;
    scroll-margin-top: 20px;
}

/* Desktop Photo Column */
.photo-column {
    background-color: #f8f9fa;
    padding: 0;
}

.photo-column .photo-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.photo-column img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.photo-column img.active {
    opacity: 1;
}

/* Mobile Photos */
.mobile-photo {
    display: none;
    padding: 0;
}

.mobile-photo img {
    width: 100%;
    height: auto;
}

/* Mobile Parallax Effect */
@media (max-width: 992px) {
    .photo-column {
        display: none;
    }
    
    section {
        min-height: 100vh;
        padding: 3rem 0;
        position: relative;
        z-index: 2;
        background-color: rgba(255, 255, 255, 0.85);
    }
    
    .mobile-photo {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1;
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }
    
    .mobile-photo.active {
        opacity: 0.7;
    }
    
    .mobile-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Add some spacing between sections */
    section:not(:first-child) {
        margin-top: 100vh;
    }
}

/* Intro Section */
#intro {
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8));
    text-align: center;
}

/* Form Styles */
#rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Alert animations */
.alert {
    transition: all 0.3s ease;
}

/* Loading spinner */
.loading-spinner {
    display: none;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid #f3f3f3;
    border-top: 0.25em solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .photo-column {
        display: none;
    }
    
    .mobile-photo {
        display: block;
    }
    
    section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}

/* Add these styles to your existing CSS */
#attending-details {
    transition: all 0.3s ease;
    border-left: 4px solid #0d6efd;
    padding-left: 1rem;
}

/* Smooth transitions for showing/hiding */
[style*="display: none"] {
    display: block !important;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
}

#attending-details[style*="display: block"] {
    opacity: 1;
    height: auto;
    overflow: visible;
}