* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
}

body {
    background-image: url('rsvp.png');
    background-size: cover;
    background-position: center bottom
    background-repeat: no-repeat; /* Ensure no repeating */
}

.background {
    height: 100%;
    position: absolute;
    bottom: 0px;
    width: 100%;
    z-index: -1;
}

.form-container {
    background-color: rgba(23, 76, 120, 0.5); /* 50% transparent */
    padding: 30px;
    max-width: 400px;
    width: 400px;
    border-radius: 15px;
    box-shadow: 0 0 20px 10px #fec559; /* Outer glow */
    color: #fff;
    text-align: center;
    position: fixed; /* Fixed positioning for desktop */
    top: 5%; /* Aligns closer to the top */
    right: 5%; /* Aligns to the right */
}

form {
    display: flex;
    flex-direction: column;
}

h2 {
    margin-bottom: 20px;
}

label {
    margin-top: 10px;
    margin-bottom: 5px;
}

input, textarea {
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-bottom: 15px;
    font-size: 1em;
}

button {
    padding: 10px;
    background-color: #fec559;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
}

.captcha-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    color: black;
}

@media (max-width: 768px) {
    .background {
        background-size: contain; /* Stretch background along the bottom */
        background-position: bottom; /* Ensure it stays at the bottom */
        background-repeat: no-repeat; /* No repeating */
        background-color: white; /* White space above the image */
        height: 100%; /* Full height */
    }

    .form-container {
        position: static; /* Reset position for mobile */
        margin: 15px; /* 15px gap on mobile */
        padding: 20px; /* Ensure padding inside the form */
        box-sizing: border-box; /* Ensure padding doesn't overflow */
        max-width: calc(100% - 30px); /* Keep form away from edges */
    }
}
