/* BOMA Events Single & RSVP Styles (bomaevents-rsvp-style.css) */

:root {
    --boma-deep-blue: #003B5C;
    --boma-medium-blue: #0073AA;
    --boma-lime-green: #98D734;
    --boma-text-gray: #555;
    --boma-light-gray: #f4f4f4;
    --boma-border-gray: #ddd;
}

/* Single Event Layout */
.bomaevent-single-header .entry-title {
    color: var(--boma-deep-blue);
    border-bottom: 2px solid var(--boma-deep-blue);
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

.bomaevent-single-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.bomaevent-single-content {
    flex: 2; /* Takes 2/3 width */
    min-width: 300px;
}

.bomaevent-single-sidebar {
    flex: 1; /* Takes 1/3 width */
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bomaevent-single-image {
    margin-bottom: 1.5em;
    border-radius: 8px;
    overflow: hidden;
}

.bomaevent-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bomaevent-single-description {
    line-height: 1.7;
    color: var(--boma-text-gray);
}
.bomaevent-single-description p {
    margin-bottom: 1.5em;
}

/* Sidebar Widgets */
.bomaevent-sidebar-widget {
    background: #fff;
    border: 1px solid var(--boma-border-gray);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* To contain map radius */
}

.bomaevent-sidebar-widget .bomaevent-widget-title,
.bomaevents-rsvp-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    background: var(--boma-deep-blue);
    padding: 15px 20px;
    margin: 0;
}

.bomaevent-details-widget ul {
    list-style: none;
    margin: 0;
    padding: 20px;
}

.bomaevent-details-widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--boma-light-gray);
    font-size: 0.95em;
}
.bomaevent-details-widget li:last-child {
    border-bottom: none;
}
.bomaevent-details-widget li strong {
    display: block;
    color: var(--boma-text-gray);
    font-weight: 600;
    margin-bottom: 4px;
}
.bomaevent-details-widget li span {
    color: var(--boma-deep-blue);
    font-weight: 500;
}

/* Map Widget */
#bomaevent-map {
    border-radius: 0 0 8px 8px; /* Rounded bottom corners if it's the only item */
}

.bomaevent-map-widget #bomaevent-map {
     border-radius: 0; /* Reset if part of a widget */
}


/* RSVP Form */
.bomaevents-rsvp-container {
    background: #fff; /* Already part of widget */
}

.bomaevents-rsvp-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bomaevents-rsvp-field {
    display: flex;
    flex-direction: column;
}

.bomaevents-rsvp-field label {
    font-weight: 600;
    color: var(--boma-text-gray);
    margin-bottom: 5px;
    font-size: 0.9em;
}

.bomaevents-rsvp-field input[type="text"],
.bomaevents-rsvp-field input[type="email"],
.bomaevents-rsvp-field input[type="number"] {
    padding: 12px;
    border: 1px solid var(--boma-border-gray);
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bomaevents-rsvp-field input:focus {
    outline: none;
    border-color: var(--boma-medium-blue);
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.bomaevents-rsvp-submit {
    background-color: var(--boma-deep-blue);
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.bomaevents-rsvp-submit:hover {
    background-color: var(--boma-lime-green);
    color: var(--boma-deep-blue);
    transform: translateY(-2px);
}

/* Success Message */
.bomaevents-notice-success {
    background: var(--boma-lime-green);
    color: var(--boma-deep-blue);
    border: 1px solid #7cb52a;
    padding: 1em 1.5em;
    border-radius: 8px;
    margin-bottom: 1.5em;
}
.bomaevents-notice-success p {
    margin: 0;
    font-weight: 600;
}


/* Responsive */
@media (max-width: 768px) {
    .bomaevent-single-layout {
        flex-direction: column;
    }
    
    .bomaevent-single-sidebar {
        /* This will make the sidebar appear after content on mobile */
        order: 2;
    }
    
    .bomaevent-single-content {
        order: 1;
    }
}

/* Styles for new RSVP Section in Main Content */
.bomaevent-single-rsvp-section {
    margin-top: 2.5em; /* Add space above the form */
}

/* Style the RSVP container to look like a widget */
.bomaevents-rsvp-container {
    background: #fff;
    border: 1px solid var(--boma-border-gray);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Style the title bar for the RSVP form */
.bomaevents-rsvp-title {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    background: var(--boma-deep-blue);
    padding: 15px 20px;
    margin: 0;
}
