/* ============================================================
   RHB RSVP — Front-end styles
   Whimsical, warm, personal feel.
   ============================================================ */

.rhb-rsvp-wrap {
    max-width: 560px;
    margin: 40px auto;
    padding: 36px 40px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    font-family: Georgia, 'Times New Roman', serif;
    color: #3a2e24;
}

/* Event heading */
.rhb-event-title {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    color: #5a3e2b;
    line-height: 1.2;
}

.rhb-event-desc {
    text-align: center;
    color: #6b5444;
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Flash notices */
.rhb-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 1em;
    text-align: center;
}
.rhb-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.rhb-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Fields */
.rhb-field {
    margin-bottom: 22px;
}

.rhb-field label,
.rhb-field-label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #4a3728;
    font-size: 1em;
}

.rhb-field input[type="text"],
.rhb-field input[type="number"],
.rhb-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #c9b8a8;
    border-radius: 8px;
    font-size: 1em;
    font-family: Georgia, serif;
    color: #3a2e24;
    background: #fdf9f5;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.rhb-field input[type="text"]:focus,
.rhb-field input[type="number"]:focus,
.rhb-field textarea:focus {
    border-color: #8b6347;
    outline: none;
    background: #fff;
}

.rhb-field input[type="number"] {
    max-width: 120px;
}

.rhb-field textarea {
    resize: vertical;
    min-height: 100px;
}

/* Radio group */
.rhb-field--radio .rhb-radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.rhb-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border: 2px solid #c9b8a8;
    border-radius: 30px;
    background: #fdf9f5;
    font-family: Georgia, serif;
    font-size: 1em;
    color: #4a3728;
    transition: all 0.2s ease;
    user-select: none;
}

.rhb-radio-label:hover {
    border-color: #8b6347;
    background: #f5ece3;
}

.rhb-radio-label input[type="radio"] {
    accent-color: #8b6347;
}

/* Checkbox extra fields */
.rhb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 1em;
    line-height: 1.4;
    color: #4a3728;
}

.rhb-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #8b6347;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Submit button */
.rhb-submit-btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    margin-top: 28px;
    background: #8b6347;
    color: #fff;
    font-size: 1.1em;
    font-family: Georgia, serif;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, transform 0.1s ease;
}

.rhb-submit-btn:hover {
    background: #6e4c35;
}

.rhb-submit-btn:active {
    transform: scale(0.98);
}

/* Honeypot — visually hidden from real users */
.rhb-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* Responsive */
@media ( max-width: 600px ) {
    .rhb-rsvp-wrap {
        padding: 24px 20px;
        margin: 20px 12px;
    }

    .rhb-event-title {
        font-size: 1.5em;
    }

    .rhb-radio-label {
        padding: 8px 14px;
    }
}

/* ============================================================
   Success overlay
   ============================================================ */

/* Greyed-out form beneath the overlay */
.rhb-form-greyed {
    opacity: 0.35;
    pointer-events: none;
    user-select: none;
    filter: blur(1px);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Overlay sits inside .rhb-rsvp-wrap and covers it */
.rhb-rsvp-wrap {
    position: relative;
}

.rhb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(2px);
    animation: rhb-fade-in 0.25s ease;
}

@keyframes rhb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.rhb-overlay-box {
    background: #fff;
    border: 2px solid #c9b8a8;
    border-radius: 14px;
    padding: 32px 36px;
    text-align: center;
    max-width: 340px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: rhb-pop-in 0.25s ease;
}

@keyframes rhb-pop-in {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.rhb-overlay-msg {
    font-family: Georgia, serif;
    font-size: 1.1em;
    color: #3a2e24;
    margin: 0 0 8px;
    line-height: 1.5;
}

.rhb-overlay-sub {
    font-size: 0.95em;
    color: #7a6555;
    font-style: italic;
    margin-bottom: 24px;
}

.rhb-overlay-dismiss {
    display: inline-block;
    padding: 10px 28px;
    background: #8b6347;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.rhb-overlay-dismiss:hover {
    background: #6e4c35;
}
