/* RSVP modal — tukar warna di sini */
.rsvp-modal {
    --rsvp-ink: #2d3a32;
    --rsvp-muted: #6a756e;
    --rsvp-accent: #5d7562;
    --rsvp-accent-dark: #475c4c;
    --rsvp-line: #d9dfda;
    --rsvp-bg: #ffffff;
    --rsvp-error: #a63d3d;
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: inherit;
    color: var(--rsvp-ink);
}
.rsvp-modal[hidden] { display: none; }
.rsvp-backdrop { position: absolute; inset: 0; background: rgba(20, 28, 23, .55); }
.rsvp-sheet {
    position: relative;
    width: min(100%, 440px);
    max-height: 92vh;
    overflow-y: auto;
    background: var(--rsvp-bg);
    border-radius: 18px 18px 0 0;
    padding: 28px 24px 24px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, .25);
    animation: rsvp-up .28s ease-out;
}
@keyframes rsvp-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 560px) {
    .rsvp-modal { align-items: center; }
    .rsvp-sheet { border-radius: 18px; }
}
.rsvp-x {
    position: absolute; top: 10px; right: 12px;
    border: 0; background: none; font-size: 28px; line-height: 1;
    color: var(--rsvp-muted); cursor: pointer; padding: 6px 10px;
}
.rsvp-sheet h2 { margin: 0 0 4px; font-size: 1.5rem; text-align: center; color: var(--rsvp-ink); }
.rsvp-sub { margin: 0 0 20px; text-align: center; color: var(--rsvp-muted); font-size: .92rem; }

.rsvp-sheet label { display: block; margin-bottom: 14px; font-size: .9rem; color: var(--rsvp-ink); text-align: left; }
.rsvp-sheet input[type=text], .rsvp-sheet input[type=tel], .rsvp-sheet textarea {
    display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
    border: 1px solid var(--rsvp-line); border-radius: 10px;
    font: inherit; font-size: 1rem; color: var(--rsvp-ink); background: #fff; box-sizing: border-box;
}
.rsvp-sheet textarea { resize: vertical; min-height: 64px; }
.rsvp-sheet input:focus-visible, .rsvp-sheet textarea:focus-visible,
.rsvp-sheet button:focus-visible, .rsvp-choice input:focus-visible + span {
    outline: 2px solid var(--rsvp-accent); outline-offset: 2px;
}

.rsvp-sheet fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.rsvp-sheet legend { font-size: .9rem; padding: 0; margin-bottom: 6px; }
.rsvp-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rsvp-sheet .rsvp-choice { margin: 0; position: relative; }
.rsvp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.rsvp-choice span {
    display: block; text-align: center; padding: 12px 8px;
    border: 1px solid var(--rsvp-line); border-radius: 10px; cursor: pointer; font-size: .98rem;
}
.rsvp-choice input:checked + span { background: var(--rsvp-accent); border-color: var(--rsvp-accent); color: #fff; }

.rsvp-pax { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.rsvp-pax[hidden] { display: none; }
.rsvp-pax .rsvp-pax-label { font-size: .9rem; }
.rsvp-stepper { display: flex; align-items: center; gap: 4px; }
.rsvp-stepper button {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--rsvp-line);
    background: #fff; font-size: 1.2rem; color: var(--rsvp-ink); cursor: pointer;
}
.rsvp-stepper output { min-width: 36px; text-align: center; font-size: 1.1rem; font-weight: 600; }

.rsvp-hp { position: absolute !important; left: -9999px; height: 0; width: 0; opacity: 0; }
.rsvp-error { color: var(--rsvp-error); font-size: .88rem; min-height: 1.2em; margin: 0 0 10px; text-align: center; }

.rsvp-btn {
    display: block; width: 100%; padding: 13px; border: 0; border-radius: 10px;
    background: var(--rsvp-accent); color: #fff; font: inherit; font-size: 1rem; cursor: pointer;
}
.rsvp-btn:hover { background: var(--rsvp-accent-dark); }
.rsvp-btn[disabled] { opacity: .6; cursor: wait; }
.rsvp-btn.ghost { background: none; color: var(--rsvp-accent-dark); border: 1px solid var(--rsvp-line); margin-top: 10px; }
.rsvp-btn.ghost:hover { background: #f3f6f4; }

.rsvp-done { text-align: center; padding: 8px 0 4px; }
.rsvp-done[hidden], #rsvp-form-view[hidden] { display: none; }
.rsvp-done .rsvp-tick {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
    background: var(--rsvp-accent); color: #fff; display: grid; place-items: center; font-size: 28px;
}
.rsvp-done p { margin: 0 0 6px; color: var(--rsvp-muted); }
.rsvp-done h3 { margin: 0 0 8px; font-size: 1.25rem; }

@media (prefers-reduced-motion: reduce) { .rsvp-sheet { animation: none; } }
