/* RSVP Forms Unified CSS - Sleek Premium Design */
.rsvp-unified-app {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1d2327;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.rsvp-unified-app h3 {
    text-align: center;
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #1e293b;
}
.rsvp-unified-app p.subtitle {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-bottom: 25px;
}
.rsvp-unified-group {
    margin-bottom: 12px;
}
.rsvp-unified-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
}
.rsvp-unified-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s;
    background: #f8fafc;
}
.rsvp-unified-input:focus {
    border-color: #3b82f6;
    outline: none;
    background: #fff;
}
.rsvp-unified-input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}
.rsvp-submit-btn, .rsvp-verify-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    transition: all 0.3s ease;
}
.rsvp-submit-btn:hover, .rsvp-verify-btn:hover {
    background: linear-gradient(135deg, #334155, #1e293b);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
    transform: translateY(-1px);
}
.rsvp-submit-btn:active, .rsvp-verify-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
}
.rsvp-submit-btn:disabled, .rsvp-verify-btn:disabled {
    background: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}
.rsvp-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    padding: 10px;
    border-radius: 6px;
    display: none;
}
.rsvp-message.error {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}
.rsvp-message.success {
    background: #f0fdf4;
    color: #10b981;
    border: 1px solid #bbf7d0;
}
.rsvp-expanded-area {
    display: none; /* Shown via JS */
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Guest Toggles (Glass Radio Group) */
.guest-response-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.guest-response-name {
    font-weight: 600;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 0;
}
.glass-radio-group {
    --bg: #f1f5f9;
    --text: #64748b;
    display: flex;
    position: relative;
    background: var(--bg);
    border-radius: 30px;
    overflow: hidden;
    width: fit-content;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.glass-radio-group input {
    display: none;
}
.glass-radio-group label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    font-size: 12px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease-in-out;
    margin: 0;
}
.glass-radio-group label:hover {
    color: #1e293b;
}
.glass-radio-group input:checked + label {
    color: #fff;
}
.glass-glider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc(100% / 3);
    border-radius: 30px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.37, 1.95, 0.66, 0.56), background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
/* YES (First) */
.glass-radio-group input:nth-of-type(1):checked ~ .glass-glider {
    transform: translateX(0%);
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
/* NO (Second) */
.glass-radio-group input:nth-of-type(2):checked ~ .glass-glider {
    transform: translateX(100%);
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}
/* MAYBE (Third) */
.glass-radio-group input:nth-of-type(3):checked ~ .glass-glider {
    transform: translateX(200%);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}
@media (max-width: 500px) {
    .guest-response-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .glass-radio-group {
        width: 100%;
    }
    .glass-radio-group label {
        min-width: 0;
    }
}

.g-recaptcha-wrapper {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}
