/* RSVP Section */
.rsvp-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    height: auto;
    min-height: auto;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background-color: var(--bg1);
}

html.is-safari-ios .rsvp-section {
    min-height: auto;
}

.rsvp-section[hidden] {
    display: none;
}

.rsvp-title {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0.12em;
    text-align: center;
    color: #333;
}

.rsvp-section .section-title {
    color: var(--oliveGreen);
    font-size: 3.3rem;
}

/* Guest list */
.guest-list {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
}

.guest-row.has-error {
    border-color: #b3261e;
    background: #fff8f8;
}

.guest-name {
    font-size: 1rem;
    color: var(--oliveGreen);
    font-family: "Inter", sans-serif;
    font-weight: 300;
    flex: 1;
    margin-right: 16px;
}

.guest-choices {
    display: flex;
    gap: 20px;
}

.guest-choice {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--oliveGreen);
    font-family: "Inter", sans-serif;
    font-weight: 300;
}

.guest-choice input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--oliveGreen);
    border-radius: 0;
    background-color: rgba(65, 75, 38, 0.08);
    display: inline-grid;
    place-content: center;
}

.guest-choice input[type="radio"]::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: var(--oliveGreen);
    transform: scale(0);
    transition: transform 0.15s ease-in-out;
}

.guest-choice input[type="radio"]:checked::before {
    transform: scale(1);
}

/* Submit */
.rsvp-submit {
    width: auto;
    max-width: none;
    padding: 12px 32px;
    background-color: var(--oliveGreen);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 300;
    font-family: "Inter", sans-serif;
    letter-spacing: normal;
    text-transform: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
    text-align: center;
}

.rsvp-submit:hover,
.rsvp-submit:focus {
    opacity: 0.9;
    outline: none;
}

.rsvp-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rsvp-divider {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 8px;
}

.wedding-list-note {
    font-size: 1rem;
    color: var(--oliveGreen);
    font-family: "Inter", sans-serif;
    font-weight: 300;
    text-align: center;
    line-height: 1.4;
}

.wedding-list-details {
    font-size: 1rem;
    color: var(--oliveGreen);
    font-family: "Inter", sans-serif;
    font-weight: 300;
    text-align: center;
    line-height: 1.4;
    margin-top: 1.4em;
}

.wedding-list-label {
    font-weight: 600;
}

.submit-status {
    min-height: 1.2em;
    color: #b3261e;
    font-size: 0.9rem;
    text-align: center;
}

/* Thank you screen */
.thank-you-screen {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 24px;
    background-color: var(--bg2);
    position: relative;
}

.thank-you-screen .transition-message,
.thank-you-screen .section-placeholder.transition-note {
    color: var(--oliveGreen);
}
