/* ==========================================================================
   Wedding RSVP Form – Styles (matches screenshot design)
   ========================================================================== */

.wedding-rsvp-wrapper {
    padding: 40px 20px;
}

.wedding-rsvp-card {
    background: #fdf8f0;
    border-radius: 0;
    padding: 48px 40px;
    width: 100%;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* ── Heading ────────────────────────────────────────────────────────── */

.wedding-rsvp-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    color: #5c3d2e;
    margin: 0 0 24px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* ── Intro text ─────────────────────────────────────────────────────── */

.wedding-rsvp-intro {
    font-size: 14px;
    color: #5c3d2e;
    margin: 0 0 12px;
    line-height: 1.6;
}

/* ── Required note ──────────────────────────────────────────────────── */

.wedding-rsvp-required-note {
    font-size: 14px;
    color: #5c3d2e;
    margin: 0 0 24px;
    font-weight: 600;
}

/* ── Section heading (Food & Allergies) ─────────────────────────────── */

.wedding-rsvp-section-heading {
    font-size: 20px;
    font-weight: 400;
    color: #5c3d2e;
    margin: 28px 0 16px;
    font-family: 'Georgia', 'Times New Roman', serif;
}

/* ── Fields ─────────────────────────────────────────────────────────── */

.wedding-rsvp-field {
    margin-bottom: 18px;
}

.wedding-rsvp-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #5c3d2e;
    margin-bottom: 6px;
}

/* ── Two-column row (Email + Guests) ────────────────────────────────── */

.wedding-rsvp-row {
    display: flex;
    gap: 20px;
}

.wedding-rsvp-col-email {
    flex: 1 1 55%;
}

.wedding-rsvp-col-guests {
    flex: 1 1 45%;
}

/* ── Inputs & textareas ─────────────────────────────────────────────── */

.wedding-rsvp-field input[type="text"],
.wedding-rsvp-field input[type="email"],
.wedding-rsvp-field input[type="number"],
.wedding-rsvp-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: #3e2a1e;
    background: #fff;
    border: 2px solid #c9a96e;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.wedding-rsvp-field input:focus,
.wedding-rsvp-field textarea:focus {
    border-color: #8b6914;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.25);
}

.wedding-rsvp-field input::placeholder,
.wedding-rsvp-field textarea::placeholder {
    color: #b8a48e;
}

.wedding-rsvp-field textarea {
    resize: vertical;
    min-height: 90px;
}

/* ── Radio Group ────────────────────────────────────────────────────── */

.wedding-rsvp-radio-group .wedding-rsvp-radios {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.wedding-rsvp-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #5c3d2e;
    font-weight: 400;
}

.wedding-rsvp-radio-label input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #5c3d2e;
    border-radius: 50%;
    background: #fff;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    outline: none;
}

.wedding-rsvp-radio-label input[type="radio"]:checked {
    border-color: #5c3d2e;
    background: #5c3d2e;
    box-shadow: inset 0 0 0 3px #fff;
}

/* ── Submit Button ──────────────────────────────────────────────────── */

.wedding-rsvp-submit-wrap {
    text-align: left;
    margin-top: 24px;
}

.wedding-rsvp-submit {
    display: inline-block;
    padding: 14px 40px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    color: #fff;
    background: #5c3d2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.15s ease;
}

.wedding-rsvp-submit:hover {
    background: #7a5440;
}

.wedding-rsvp-submit:active {
    transform: scale(0.97);
}

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

/* ── Loading spinner ────────────────────────────────────────────────── */

.wedding-rsvp-submit.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.wedding-rsvp-submit.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wrsvp-spin 0.6s linear infinite;
}

@keyframes wrsvp-spin {
    to { transform: rotate(360deg); }
}

/* ── Messages ───────────────────────────────────────────────────────── */

.wedding-rsvp-message {
    text-align: center;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 20px;
    line-height: 1.5;
}

.wedding-rsvp-success {
    background: #eaf7ec;
    color: #276738;
    border: 1px solid #b7e4c7;
}

.wedding-rsvp-error {
    background: #fdecea;
    color: #9a2c2c;
    border: 1px solid #f5c6cb;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .wedding-rsvp-card {
        padding: 28px 16px;
    }

    .wedding-rsvp-heading {
        font-size: 22px;
    }

    .wedding-rsvp-row {
        flex-direction: column;
        gap: 0;
    }

    .wedding-rsvp-radio-group .wedding-rsvp-radios {
        flex-direction: column;
        gap: 10px;
    }

    .wedding-rsvp-submit {
        width: 100%;
    }
}
