/* --- 1. General Styles & Background --- */
body {
    /* Elegant Serif font for a classic look */
    font-family: 'Georgia', 'Times New Roman', serif; 
    margin: 0;
    padding: 20px;
    background-color: #f7f4f2; /* Soft Off-White/Cream Background */
    color: #36454F; /* Charcoal Gray Text */
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- 2. Container and Headers --- */
.container {
    max-width: 550px;
    width: 95%;
    background-color: #ffffff;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Very subtle shadow */
    border-radius: 10px;
    text-align: center;
    /* Elegant slide-up animation */
    animation: slideUp 1.2s ease-out; 
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.announcement {
    font-style: italic;
    color: #a99168; /* Soft Gold Accent */
    margin-bottom: 5px;
}

h1 {
    font-family: 'Playfair Display', serif; /* Decorative font for names */
    color: #36454F; 
    font-size: 3.5em;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ampersand {
    color: #a99168; /* Gold ampersand accent */
    font-style: italic;
    font-size: 0.8em;
}

h2 {
    color: #6c757d;
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 5px;
    margin-bottom: 30px;
}

/* --- 3. Event Details --- */
.details p {
    margin: 8px 0;
    color: #555;
    font-size: 0.95em;
}

.dress-code {
    font-weight: bold;
    color: #a99168; /* Gold accent color */
    margin-top: 15px;
}

.separator {
    border: none;
    border-top: 1px solid #e0e0e0;
    width: 50%;
    margin: 30px auto;
}

/* --- 4. Form and Inputs --- */
.rsvp-section h3 {
    color: #36454F;
    margin-bottom: 25px;
    font-size: 1.3em;
    font-weight: 400;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    /* Delayed fade in for form elements */
    animation: fadeIn 1.5s ease-out 0.3s forwards; 
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #36454F;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    color: #36454F;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #a99168; /* Soft Gold focus border */
    box-shadow: 0 0 5px rgba(169, 145, 104, 0.4); 
    outline: none;
}

/* --- 5. Radio Buttons (Attendance) --- */
.attendance {
    padding-bottom: 15px;
}

.radio-group {
    display: block;
    margin-bottom: 10px;
}

.attendance label {
    font-weight: normal;
    cursor: pointer;
    color: #555;
    display: inline;
    margin-left: 5px;
}

.attendance input[type="radio"] {
    width: auto;
    margin-right: 5px;
}


/* --- 6. Button Styling --- */
button[type="submit"] {
    background-color: #a99168; /* Soft Gold Button */
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover {
    background-color: #8c7857; /* Darker Gold on hover */
    transform: translateY(-2px); /* Subtle lift effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* --- 7. Footer --- */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9em;
    color: #a99168;
}


/* --- 8. Watermark Styling (SAMPLE overlay) --- */
#watermark {
    position: fixed; 
    top: 50%;
    left: 50%;
    
    /* Center and rotate for diagonal watermark effect */
    transform: translate(-50%, -50%) rotate(-35deg); 
    
    /* Text styling - Very subtle opacity */
    font-size: 8em; 
    font-weight: 900;
    color: rgba(54, 69, 79, 0.04); /* Extremely low opacity charcoal gray */
    pointer-events: none; /* Allows user interaction through the watermark */
    
    z-index: 9999; 
    text-transform: uppercase;
    letter-spacing: 10px;
}

/* --- 9. Basic Responsiveness --- */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2.5em;
    }
    
    #watermark {
        font-size: 4em;
    }
}