.ml-rsvp {
    --rsvp-accent: var(--gold, var(--accent, var(--warm-brown-dark, var(--wax, #8b2635))));
    --rsvp-text: var(--ink, var(--warm-brown-dark, currentColor));
    --rsvp-muted: var(--muted, var(--warm-brown, var(--ink-soft, #6b4a4a)));
    --rsvp-border: var(--gold, var(--beige-dark, var(--gold-light, rgba(201, 169, 98, 0.45))));
    --rsvp-field: var(--cream, rgba(255, 255, 255, 0.08));
    max-width: 28rem;
    margin: 1.75rem auto 0;
    text-align: start;
}

.ml-rsvp-alert {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.ml-rsvp-alert--ok {
    background: rgba(46, 125, 90, 0.14);
    color: inherit;
    border: 1px solid rgba(46, 125, 90, 0.35);
}

.ml-rsvp-alert--err {
    background: rgba(139, 38, 53, 0.12);
    border: 1px solid rgba(139, 38, 53, 0.3);
}

.ml-rsvp-field {
    margin-bottom: 1rem;
}

.ml-rsvp-field label,
.ml-rsvp-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--rsvp-muted);
}

.ml-rsvp-field input,
.ml-rsvp-field textarea,
.ml-rsvp-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--rsvp-border);
    border-radius: 0.75rem;
    background: var(--rsvp-field);
    color: inherit;
    font: inherit;
    font-size: 1rem;
}

.ml-rsvp-field textarea {
    min-height: 5.5rem;
    resize: vertical;
}

.ml-rsvp-field input:focus,
.ml-rsvp-field textarea:focus,
.ml-rsvp-field select:focus {
    outline: 2px solid var(--rsvp-accent);
    outline-offset: 1px;
}

.ml-rsvp-choices {
    display: grid;
    gap: 0.6rem;
}

.ml-rsvp-choice {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--rsvp-border);
    border-radius: 0.75rem;
    cursor: pointer;
    background: var(--rsvp-field);
}

.ml-rsvp-choice:has(input:checked) {
    border-color: var(--rsvp-accent);
    box-shadow: inset 0 0 0 1px var(--rsvp-accent);
}

.ml-rsvp-choice input {
    width: auto;
    accent-color: var(--rsvp-accent);
}

.ml-rsvp-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ml-rsvp-submit {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.9rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--rsvp-accent);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

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

.ml-rsvp-errors {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #a32d3c;
    text-align: center;
}
