/* --- IWFS RSVP Public Form Styles --- */
.iwfs-rsvp-container {
    background: #fff;
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 4px;
    max-width: 550px;
    margin: 25px auto;
    text-align: left;
    color: #333;
    font-family: sans-serif;
}

.iwfs-rsvp-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.iwfs-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
}

.iwfs-form-group {
    flex: 1;
    margin-bottom: 12px;
}

.iwfs-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.iwfs-form-group input[type="text"],
.iwfs-form-group input[type="email"],
.iwfs-form-group input[type="tel"],
.iwfs-form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    color: #000;
    background: #fff;
    border-radius: 4px;
    box-sizing: border-box;
}

.iwfs-form-group select {
    height: 38px;
}

.iwfs-checkbox-group {
    margin-bottom: 12px;
}

.iwfs-checkbox-group label {
    font-weight: bold;
    cursor: pointer;
}

.iwfs-policy-box {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    font-size: 13px;
}

.iwfs-policy-box label {
    cursor: pointer;
    display: block;
    margin-bottom: 8px;
}

.iwfs-submit-btn {
    background: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.iwfs-submit-btn:hover {
    background: #005177;
}

/* --- Attendee List Display --- */
.iwfs-attendees-wrapper {
    max-width: 550px;
    margin: 20px auto;
    text-align: left;
    font-family: sans-serif;
}

.iwfs-toggle-btn {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 15px;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.iwfs-attendees-list {
    display: none;
    border: 1px solid #ccc;
    border-top: none;
    background: #fff;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}

/* Notifications */
.iwfs-msg-success {
    background-color: #e6f4ea;
    color: #137333;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.iwfs-msg-error {
    background-color: #fce8e6;
    color: #c5221f;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Registration Window Status Messages */
.iwfs-msg-not-open {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.iwfs-msg-closed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

/* Enhanced Dropdown Menu Styling */
.iwfs-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    background-color: #fff;
    
    
    /* Forces the browser to show a clean down-arrow asset indicator */
    appearance: select !important; 
    -webkit-appearance: select !important;
    -moz-appearance: select !important;
    
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 35px;
    cursor: pointer;
}

/* Outer Container Box */
.iwfs-event-details-box {
    display: block;
    background-color: #f8f9fa;       /* Light grey background background background */
    border-left: 4px solid #94211D;  /* Blue accent bar on the left side edge side */
    padding: 18px;                   /* Spacing inside the container container container */
    margin-bottom: 25px; 
    margin-top: 25px;!important /* Distance between this box and the form list */
    border-radius: 0 4px 4px 0;      /* Slightly rounded corners on the right side side */
    font-family: sans-serif;
}

/* Individual Rows (Date, Time, Location) */
.iwfs-detail-item {
    font-size: 15px;
    color: #333333;                  /* Main text dark charcoal color */
    margin-bottom: 8px;              /* Gap spacing between rows row items */
    line-height: 1.4;
}

/* Remove bottom margin on the last row item to keep padding balanced */
.iwfs-detail-item:last-child {
    margin-bottom: 0;
}

/* Bold Labels (e.g., "Date:", "Time:") */
.iwfs-detail-label {
    font-weight: bold;
    color: #0073aa;                  /* Blue label matching accent bar highlight color */
    display: inline-block;
    width: 80px;                     /* Aligns text evenly in a neat column array */
}

/* Ensure dropdown selections have adequate breathing room and clear visibility */
.iwfs-form-group select,
.iwfs-rsvp-container select {
    height: auto !important;
    line-height: 1.5 !important;
    padding: 8px 32px 8px 12px !important; /* Generous bottom padding to prevent cutoffs */
    font-size: 16px !important; /* Prevents iOS safari zoom issues while remaining readable */
    vertical-align: middle !important;
    display: inline-block !important;
    box-sizing: border-box !important;
}

/* Specifically adjust option elements layout within the dropdown overlay */
.iwfs-form-group select option,
.iwfs-rsvp-container select option {
    padding: 6px 4px !important;
    line-height: 1.4 !important;
}