#validationStatus, #editSubmissionButtons, #submitButton {
    font-weight: normal;
    text-align: center;
    margin-left: 10px;
}
#peopleFieldsContainer > div {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

/* RSVP form inputs: match theme variables and font */
/* Inputs: allow long text and let flex layout expand the fields */
#userForm input[type="text"],
#userForm input[type="number"],
.name-input, .foodprefs-select, .foodprefs-other-input {
    font-family: inherit; /* inherit the site font */
    font-size: 2rem;
    color: var(--single-page-text-color, #333);
    background-color: white;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    padding: 8px 10px;
    outline: none;
    transition: box-shadow .12s ease, border-color .12s ease;
    width: 100%;
    max-width: none; /* don't restrict width, let flex determine width */
    box-sizing: border-box;
}

/* Utility class toggled by JS to hide/show elements cleanly */
#userForm .hidden {
    display: none;
}

#invitationCode:disabled {
    background-color: #bfbfbf;
    color: #999;
    cursor: not-allowed;
}

#invitationCode {
    font-family: inherit; /* inherit the site font */
    font-size: 2rem;
    color: var(--single-page-text-color, #333);
    background-color: white;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 6px;
    padding: 8px 10px;
    outline: none;
    transition: box-shadow .12s ease, border-color .12s ease;
    width: 9rem;
    max-width: none; /* don't restrict width, let flex determine width */
    box-sizing: border-box;
}

#userForm input[type="text"]:focus,
#userForm input[type="number"]:focus,
#invitationCode:focus,
.name-input:focus,
.foodprefs-select:focus {
    border-color: var(--highlight, #a392c2);
    box-shadow: 0 0 0 3px rgba(163,146,194,0.12);
}

/* Label layout and spacing */
.name-label,
.foodprefs-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
    font-size: 1.6rem;
}

/* Person container columns should be stacked vertically on small screens */
#peopleFieldsContainer > div > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 0; /* allow the internal columns to grow evenly, enabling long inputs */
}

/* Make the person container's children distribute nicely */
#peopleFieldsContainer > div {
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap; /* allow wrapping when many fields are present */
}

/* Specific size rules for age inputs so they don't expand like text fields */
.age-input {
    flex: 0 0 80px;
    max-width: 80px;
}

/* Smaller screens: stack the person inputs */
@media (max-width: 640px) {
    #peopleFieldsContainer > div {
        flex-direction: column;
    }
    #userForm input[type="text"],
    #invitationCode {
        max-width: 100%;
    }
}

/* Radio buttons styled as buttons */
.radio-btn {
    display: inline-block;
    margin-right: 10px;
    padding: 0;
    border: none;
    background: none;
}

.radio-btn input[type="radio"] {
    display: none;
}

/* Radio button spans share the same styling as submit/edit buttons */
.radio-btn span,
#userForm button[type="submit"],
#editSubmissionButtons button.btn {
    display: inline-block;
    text-decoration: none;
    font-family: oswald,sans-serif;
    background-color: var(--highlight);
    color: var(--highlight-contrast);
    border-radius: 6px;
    font-size: 16px;
    letter-spacing: 1px;
    padding: 1em 20px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: lighter;
    border: none;
    line-height: 1.15;
    margin: none;
}

.radio-btn input[type="radio"]:checked + span {
    background-color: var(--highlight-inverse);
    color: var(--highlight-inverse-contrast);
}

.radio-btn span:hover,
#userForm button[type="submit"]:hover,
#editSubmissionButtons button.btn:hover {
    color: var(--highlight-inverse-contrast);
    background-color: var(--highlight-inverse);
}

.radio-btn span:active,
#userForm button[type="submit"]:active,
#editSubmissionButtons button.btn:active {
    color: var(--highlight-inverse-contrast);
    background-color: var(--highlight-inverse);
    opacity: 0.8;
}