* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Cormorant Garamond", "Georgia", serif;
    background-color: #f8f9f5;
    color: #2c3e2c;
    line-height: 1.6;
    position: relative;
}

.wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
}

.wallpaper-left,
.wallpaper-right {
    height: 100%;
    width: 120px;
    background-size: contain;
    background-repeat: repeat-y;
}

.wallpaper-left {
    background-image: url("/static/wallpaper-left.png");
}

.wallpaper-right {
    background-image: url("/static/wallpaper-right.png");
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #c8d6c8;
}

header h1 {
    font-size: 2.5rem;
    color: black;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #2c3e2c;
    font-style: italic;
}

@media (max-width: 550px) {
    .subtitle {
        padding: 0 100px;
        margin: auto;
    }
}

section {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

section h2 {
    color: #4a7c59;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 1px solid #e0e8e0;
    padding-bottom: 0.5rem;
}

.details p {
    margin-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    color: #4a5d4a;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #c8d6c8;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fafbf8;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus {
    outline: none;
    border-color: #4a7c59;
    box-shadow: 0 0 0 2px rgba(74, 124, 89, 0.1);
}

.radio-group {
    display: flex;
    gap: 1.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    margin-top: 1rem;
    transition:
        background-color 0.2s,
        transform 0.1s;
}

.btn-submit {
    background-color: #4a7c59;
    color: white;
    width: 100%;
}

.btn-submit:hover {
    background-color: #3d6549;
}

.btn-registry {
    background-color: #e9e6de;
    color: #5a3a3e;
}

.btn-registry:hover {
    background-color: #e4d7c6;
}

.small {
    font-size: 0.85rem;
    color: #8a9a8a;
    margin-top: 0.5rem;
}

footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    color: #8a9a8a;
}

footer a {
    color: #6b8f6b;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Admin table styles */
.rsvp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.rsvp-table th,
.rsvp-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e8e0;
}

.rsvp-table th {
    background-color: #f0f5f0;
    color: #4a7c59;
    font-weight: bold;
}

.rsvp-table tr:hover {
    background-color: #f8fbf8;
}

.attending-yes {
    color: #4a7c59;
    font-weight: bold;
}

.attending-no {
    color: #b85450;
}

.no-data {
    text-align: center;
    color: #8a9a8a;
    padding: 2rem;
}

.total-guests {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4a7c59;
    margin-bottom: 1.5rem;
}

.admin-section {
    overflow-x: auto;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }

    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .rsvp-table {
        font-size: 0.8rem;
    }

    .rsvp-table th,
    .rsvp-table td {
        padding: 0.5rem;
    }
}
