#wish-rsvp {
    position: relative;
    padding: 5rem 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#wish-rsvp h1 {
    width: 100%;
    font-family: var(--font-heading);
    font-size: 3rem;
    word-spacing: 0.25rem;
    background: var(--color-accent2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#wish-rsvp p {
    font-family: var(--font-content);
    font-size: 1rem;
    color: var(--color-light);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.content-wish-rsvp,
.content-comment {
    width: 100%;
}

#wishForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#wishForm .form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#wishForm .form-group label,
#wishForm .form-group p {
    width: 100%;
    text-align: left;
    margin-bottom: .5rem;
    font-family: var(--font-content);
    color: var(--color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#wishForm input,
#wishForm textarea,
#wishForm select {
    width: 100%;

    padding: .75rem;

    background: rgba(0, 0, 0, 0.3);

    border: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    appearance: none;
    -webkit-appearance: none;

    color: var(--color-light);

    font-size: 1rem;

    font-family: var(--font-content);
}

#wishForm textarea {
    height: 6rem;
    resize: none;
}

/* Guest Stepper */

#guestCountGroup {
    display: none;
}

.guest-stepper {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 0.5rem;
}

.guest-stepper button {
    width: 2rem;
    height: 2rem;

    cursor: pointer;

    display: inline-block;
    font-family: var(--font-content);
    font-size: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    text-shadow: none;
    
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3) !important;
    color: var(--color-light);
}

.guest-stepper input {
    width: 100% !important;

    text-align: center;

    padding: .75rem;

    appearance: textfield;
}

.guest-stepper input::-webkit-outer-spin-button,
.guest-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.guest-note {
    font-family: var(--font-content);
    font-size: 0.9rem;
    font-style: italic;
    text-align: justify;
    color: var(--color-light);
    margin: 0.5rem 0 1rem 0;
}

#guestCount {
    padding: 0.5rem !important;
}

.notice p {
    font-size: 1rem !important;
    text-align: justify !important;
}

#wishForm button {
    border: none;
    
    cursor: pointer;

    display: inline-block;
    font-family: var(--font-content);
    font-size: 0.8rem;
    border-radius: 1rem;
    text-decoration: none;
    color: var(--color-light);
    background: var(--color-accent);
    padding: 0.5rem 2rem;
    text-shadow: none;
}

.content-messages {
    margin-bottom: 1rem;
}

#messages {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.comment {
    width: 100%;
    padding: 1rem;
}

.comment p,
.comment span {
    font-family: var(--font-content);
    color: var(--color-light);
    text-align: left;
    margin-bottom: 0.5rem !important;
}

.comment .guest-name {
    font-family: var(--font-display) !important;
    font-size: 1.2rem !important;
}

.comment span {
    font-size: 0.8rem !important;
}

.comment .wish-date {
    display: block;
    text-align: left;
}

#pagination {
    display: flex;
    justify-content: center;
    gap: .25rem;
}

#pagination button {
    border: none;
    
    cursor: pointer;

    display: inline-block;
    font-family: var(--font-content);
    font-size: 1rem;
    font-style: italic;
    border-radius: 0.5rem;
    text-decoration: none;
    text-shadow: none;
    padding: 0.5rem;
    background: var(--color-contrast);
    color: var(--color-light);
}
/* Dashboard-driven RSVP fields use the same typography and colors as the form. */
#wish-rsvp [hidden] {
    display: none !important;
}

#wishForm #guestName {
    padding: .75rem;
    background: rgba(0, 0, 0, 0.3);
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

#wishForm .rsvp-questions {
    display: grid;
    gap: 1rem;
}

#wishForm .rsvp-options,
#wishForm .vegetarian-details {
    width: 100%;
}

#wishForm .rsvp-option {
    display: flex;
    align-items: center;
    gap: .5rem;
}

#wishForm .rsvp-option input {
    width: auto;
    padding: 0;
    appearance: auto;
    -webkit-appearance: auto;
    accent-color: var(--color-contrast);
}

#wishForm .rsvp-update-note,
#wishForm .form-group .rsvp-question-note {
    font-size: .9rem;
    margin: .5rem 0;
}

#wishForm .wish-empty-note {
    margin: 1rem 0;
}

#wish-rsvp :disabled {
    opacity: .65;
    cursor: default;
}

#wish-rsvp .wish-text {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

#pagination button[aria-current="page"] {
    outline: 1px solid var(--color-light);
}

#rsvpToast:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 1000;
    inset: auto 1rem max(1rem, env(safe-area-inset-bottom));
    width: fit-content;
    max-width: calc(100% - 2rem);
    align-items: center;
    gap: .75rem;
    margin: auto;
    padding: .65rem .85rem;
    border-radius: .5rem;
    color: var(--color-light);
    background: var(--color-contrast);
    font-family: var(--font-content);
}

#rsvpToast button {
    padding: .25rem .5rem;
    border: 1px solid currentColor;
    border-radius: .25rem;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
