:root {
    --primary: #FF7B54;
    --secondary: #FFB26B;
    --tertiary: #FFD56F;
    --background: #FFF3E0;
    --card-bg: rgba(255, 255, 255, 0.85);
    --text-main: #3E2723;
    --text-muted: #5D4037;
    --border-radius: 24px;
    --shadow: 0 10px 40px rgba(139, 69, 19, 0.1);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

h1, h2, h3, .subtitle, label, .submit-btn {
    font-family: 'Outfit', sans-serif;
}

/* Background Decorations */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.shape1 {
    width: 400px;
    height: 400px;
    background-color: #FFB26B;
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.shape2 {
    width: 500px;
    height: 500px;
    background-color: #93C5FD;
    bottom: -150px;
    right: -100px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation-delay: -5s;
}

.shape3 {
    width: 300px;
    height: 300px;
    background-color: #F8B4D9;
    top: 40%;
    left: 40%;
    border-radius: 30% 70% 50% 50% / 50% 40% 60% 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -50px) scale(1.1); }
    100% { transform: translate(-30px, 50px) scale(0.9); }
}

/* Container */
.container {
    max-width: 900px;
    width: 90%;
    margin: 40px auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Section */
.image-section {
    position: relative;
    /* This section expects 'invite.jpg' */
    background-color: #FFF;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.image-section img:hover {
    transform: scale(1.02);
}

/* Content Section */
.content-section {
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-height: 80vh;
    overflow-y: auto; /* Allow scrolling if form is long */
}

/* Custom Scrollbar for Right Side */
.content-section::-webkit-scrollbar {
    width: 6px;
}
.content-section::-webkit-scrollbar-thumb {
    background-color: rgba(255, 123, 84, 0.3);
    border-radius: 10px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 5px 0 10px 0;
    line-height: 1.1;
    color: var(--primary);
    background: linear-gradient(135deg, #FF7B54, #D84315);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Simplified RSVP Prompt */
.rsvp-prompt {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.greeting {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.rsvp-btn {
    padding: 16px 24px;
    border: none;
    border-radius: 14px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
    font-family: 'Outfit', sans-serif;
}

.yes-btn {
    background: linear-gradient(135deg, #FF7B54, #D84315);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 123, 84, 0.4);
}

.yes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 123, 84, 0.5);
}

.no-btn {
    background: #F5F5F5;
    color: #757575;
    border: 1px solid #E0E0E0;
}

.no-btn:hover {
    background: #EEEEEE;
    color: #424242;
}

.rsvp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Media Queries for Responsiveness */
@media (max-width: 850px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .image-section {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        /* Remove max-height constraint so image shows fully */
    }
    
    .image-section img {
        height: auto;
        /* Revert to natural scaling so no text is chopped off */
    }
    
    .content-section {
        padding: 40px 25px;
        max-height: none; /* remove restrict on mobile */
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}
