/* Hide the Name field and Textarea specific to the RSVP form only */
#forminator-module-2718 .forminator-field-name-2,
#forminator-module-2718 .forminator-field-textarea-1 {
    display: none !important;
}

/* Custom UI Container */
.rsvp-search-container {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allows items to wrap to a new line on small screens */
}


#search-name {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#search-btn {
    padding: 12px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#search-btn:hover {
    background: #555;
}

/* --- Modern Guest Cards --- */
.guest-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.guest-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04);
}

/* Header: Name and Checkbox */
.guest-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.guest-name strong {
    font-size: 18px;
    color: #1e293b;
    font-weight: 600;
}

.attending-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.attending-toggle:hover {
    background: #f1f5f9;
}

.attending-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #333; /* Changes checkbox color in modern browsers */
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    user-select: none;
}

/* Options Container (Meals & Allergies) */
.guest-options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.option-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meal-select, .allergy-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 15px;
    color: #334155;
    background-color: #fff;
    transition: border-color 0.2s;
}

.meal-select:focus, .allergy-input:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .guest-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    /* Make the search input and button full width on mobile */
    #search-name, 
    #search-btn {
        width: 100%;
        flex: 1 1 100%;
    }
}


