﻿body {
    font-family: 'Noto Serif TC', serif;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    color: #333;
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-size: cover;
    background-position: center;
}

.rsvp-wrapper {
    max-width: 800px;
    width: 100%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 3rem auto;
    animation: rsvpFadeIn 1.2s ease-out;
}

.rsvp-form h2 {
    font-size: 2.5rem;
    color: var(--primary-color, #e74c3c);
    margin-bottom: 1.5rem;
    font-weight: bold;
    text-align: center;
    animation: rsvpSlideIn 0.8s ease-out;
}

.rsvp-form p {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
}

.rsvp-group {
    margin-bottom: 1.25rem;
}

    .rsvp-group label {
        font-weight: bold;
        font-size: 1rem;
        color: #555;
        display: block;
        margin-bottom: 0.5rem;
    }

    .rsvp-group input,
    .rsvp-group select,
    .rsvp-group textarea {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
        border-radius: 10px;
        border: 1px solid #ddd;
        box-sizing: border-box;
        transition: all 0.3s ease;
    }

        .rsvp-group input:focus,
        .rsvp-group select:focus,
        .rsvp-group textarea:focus {
            border-color: var(--primary-color, #e74c3c);
            outline: none;
            box-shadow: 0 0 8px rgba(231, 76, 60, 0.3);
        }

    .rsvp-group textarea {
        resize: vertical;
        min-height: 100px;
    }

.rsvp-submit {
    background-color: var(--primary-color, #e74c3c);
    color: white;
    padding: 12px 25px;
    font-size: 1.2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

    .rsvp-submit:hover {
        background-color: #c0392b;
        transform: translateY(-3px);
    }

.rsvp-confirmation {
    display: none;
    font-size: 1.1rem;
    color: #28a745;
    margin-top: 20px;
    text-align: center;
}

.rsvp-text {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
}

.meal-item {
    display: flex;
    justify-content: space-between; /* 左右兩端對齊 */
    gap: 20px; /* 兩個項目之間的間距 */
    width: 600px; /* 整個內容的寬度，可以調整 */
}


.meal-unit {
    display: flex;
    flex-direction: column;
    }
    .meal-unit input {
        box-sizing: border-box;
        width: 100%; /* 兩邊各佔45%寬度 */
    }
.input-error {
    border: 2px solid red !important;
}

.my-swal-popup {
    text-align: left !important; /* 確保對話框靠左 */
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

    .my-swal-popup b {
        color: #333;
    }

    .my-swal-popup p {
        margin: 6px 0;
    }
@keyframes rsvpFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

    @keyframes rsvpSlideIn {
        from {
            transform: translateY(-30px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    @media (max-width: 600px) {
        body {
            padding: 10px;
        }

        .rsvp-wrapper {
            padding: 20px;
            margin: 1rem auto;
        }

        .rsvp-form h2 {
            font-size: 1.8rem;
        }

        .rsvp-form p {
            font-size: 1rem;
        }

        .rsvp-group label {
            font-size: 0.95rem;
        }

        .rsvp-group input,
        .rsvp-group select,
        .rsvp-group textarea {
            font-size: 0.95rem;
            padding: 10px;
        }

        .rsvp-submit {
            font-size: 1rem;
            padding: 10px 20px;
        }

        .meal-flex {
            flex-direction: column;
            gap: 0.5rem;
        }

        .meal-item {
            width: 100%;
        }
        .input-error {
            border: 2px solid red !important;
        }
        .my-swal-popup {
            text-align: left !important; /* 確保對話框靠左 */
            font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
            font-size: 14px;
            line-height: 1.5;
        }

            .my-swal-popup b {
                color: #333;
            }

            .my-swal-popup p {
                margin: 6px 0;
            }
    }

