/* style.css */

/* --- Basic Setup & Fonts --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fdfaf6;
    color: #4a4a4a;
    line-height: 1.8;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Great Vibes', cursive;
    color: #8b5e34; /* A soft, warm brown */
    font-weight: normal;
    margin-top: 0;
}

/* --- Main Layout --- */
.container {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 3px solid #eee;
}
.logout-btn {
            display: inline-block;
            padding: 8px 16px;
            background-color: #34495e;
            color: #fff;
            text-decoration: none;
            border-radius: 4px;
            transition: background-color 0.3s;
        }
.header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
}

section, header, footer {
    padding: 40px 50px;
    text-align: center;
}

/* --- Header --- */
.header {
    background-color: #f8f3ed;
    border-bottom: 1px solid #eaddcf;
}

.header h1 {
    font-size: 5rem;
    margin-bottom: 0;
}

.header p {
    font-size: 1.5rem;
    color: #a08c7d;
    margin-top: -10px;
}

/* --- Invitation Details --- */
.invitation-details h2 {
    font-size: 3.5rem;
}

.intro {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    border-top: 1px dashed #eaddcf;
    border-bottom: 1px dashed #eaddcf;
    padding: 30px 0;
}

.detail-item h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.detail-item p {
    margin: 5px 0;
    font-size: 1rem;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    background-color: #8b5e34;
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.map-link:hover {
    background-color: #6a4a29;
}

/* --- RSVP Form --- */
.rsvp-section {
    background-color: #f8f3ed;
}

.rsvp-table .data-row {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 3px solid #444;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.rsvp-section h2 {
    font-size: 3.5rem;
}

.rsvp-form {
    max-width: 500px;
    margin: 30px auto 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #6a4a29;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #eaddcf;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b5e34;
    box-shadow: 0 0 5px rgba(139, 94, 52, 0.3);
}

.form-group fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-group legend {
    font-weight: bold;
    color: #6a4a29;
    margin-bottom: 10px;
    padding: 0;
}

.radio-label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #a08c7d, #8b5e34);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* --- Messages --- */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}
.success {
    background-color: #e4f8e9;
    color: #2b6b3a;
    border: 1px solid #c3e6cb;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* --- Footer --- */
.footer {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    color: #a08c7d;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    section, header, footer {
        padding: 30px;
    }
    .header h1 {
        font-size: 3.5rem;
    }
    .header p {
        font-size: 1.2rem;
    }
    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
