/* --- 1. General Styles & Background --- */
body {
    /* Classic, elegant font */
    font-family: 'Georgia', 'Times New Roman', serif; 
    margin: 0;
    padding: 0;
    /* Deep Navy Blue Background */
    background-color: #0c1a3b; 
    color: #e0e0e0; /* Light text for high contrast */
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- 2. Container and Headers --- */
.container {
    max-width: 650px;
    width: 90%;
    background-color: #ffffff;
    padding: 50px 45px;
    /* Sophisticated, deep shadow */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); 
    border-radius: 12px;
    text-align: center;
    border: 1px solid #d4af37; /* Gold/Brass border */
    color: #333; /* Dark text inside white box */
    
    /* Elegant Scale-Up Animation */
    animation: scaleIn 1.2s ease-out; 
    margin: 40px 0; 
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.announcement {
    font-size: 1.1em;
    color: #8d6e3f; /* Muted Gold */
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

h1 {
    font-family: 'Playfair Display', serif; 
    color: #0c1a3b; /* Navy header text */
    font-size: 3.2em;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h2 {
    color: #6c757d;
    font-size: 1.2em;
    font-weight: 300;
    margin-top: 5px;
    margin-bottom: 30px;
}

/* Mission Section */
.mission {
    padding: 10px 0;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

/* --- 3. Event Details --- */
.details p {
    margin: 8px 0;
    color: #444;
    font-size: 1em;
}

.dress-code {
    font-weight: bold;
    color: #8d6e3f; /* Muted Gold for Dress Code */
    margin-top: 15px;
    padding: 5px 0;
}

.separator {
    border: none;
    border-top: 1px dashed #d4af37; /* Dashed Gold Separator */
    width: 70%;
    margin: 30px auto;
}

/* --- 4. Form and Inputs --- */
.rsvp-section h3 {
    color: #0c1a3b;
    margin-bottom: 25px;
    font-size: 1.4em;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    /* Subtle slide-in animation for form groups */
    animation: slideInLeft 1s ease-out 0.3s forwards;
    opacity: 0;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #0c1a3b;
}

input[type="text"],
input[type="email"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    background-color: #f9f9f9;
    border: 1px solid #ccc; 
    color: #333;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #8d6e3f; /* Muted Gold focus border */
    box-shadow: 0 0 5px rgba(141, 110, 63, 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;
}

/* --- 6. Button Styling --- */
button[type="submit"] {
    background-color: #0c1a3b; /* Deep Navy Button */
    color: #d4af37; /* Gold Text */
    padding: 15px 30px;
    border: 2px solid #d4af37; /* Gold Outline */
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    width: 100%;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #d4af37; /* Invert colors on hover */
    color: #0c1a3b; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- 7. Footer --- */
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 0.8em;
    color: #999;
}


/* --- 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 - Low opacity navy blue/dark gray */
    font-size: 8em; 
    font-weight: 900;
    color: rgba(12, 26, 59, 0.08); 
    pointer-events: none; 
    
    z-index: 9999; 
    text-transform: uppercase;
    letter-spacing: 10px;
}

/* --- 9. Basic Responsiveness --- */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2.2em;
    }
    
    #watermark {
        font-size: 4em;
    }
}