/* ELRO semiQ Frontend Styles */

.elro-semiq-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: 6px;
}

.elro-semiq-search input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

.elro-semiq-search input[type="text"]:focus {
    border-color: #005081;
}

.elro-semiq-count {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* Buttons */
.elro-semiq-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #97C11F;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

.elro-semiq-btn:hover {
    background-color: #82a81a;
    color: #fff;
}

.elro-semiq-btn-book {
    background-color: #97C11F;
}

/* Container Layout */
.elro-semiq-container {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.elro-semiq-results {
    flex: 0 0 70%;
    max-width: 70%;
}

.elro-semiq-sidebar {
    flex: 0 0 28%;
    max-width: 28%;
    background-color: #005081;
    color: #fff;
    padding: 24px;
    border-radius: 6px;
    align-self: flex-start;
}

.elro-semiq-sidebar h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

.elro-semiq-sidebar label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
    color: #ccc;
}

.elro-semiq-sidebar input[type="date"],
.elro-semiq-sidebar select {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #3a7aab;
    border-radius: 4px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.elro-semiq-filter-group {
    margin-bottom: 16px;
}

.elro-semiq-sidebar .elro-semiq-btn {
    width: 100%;
    margin-top: 8px;
    background-color: #97C11F;
}

/* Event Cards */
.elro-semiq-event-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}

.elro-semiq-event-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.elro-semiq-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 12px 8px;
    background: #005081;
    color: #fff;
    border-radius: 6px;
    text-align: center;
    flex-shrink: 0;
}

.elro-semiq-day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.elro-semiq-month {
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 4px;
}

.elro-semiq-event-content {
    flex: 1;
}

.elro-semiq-event-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #005081;
}

.elro-semiq-event-subtitle {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.elro-semiq-event-text {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.elro-semiq-event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.elro-semiq-event-actions {
    display: flex;
    gap: 10px;
}

.elro-semiq-event-actions .elro-semiq-btn {
    padding: 8px 16px;
    font-size: 13px;
}

/* Traffic Light */
.elro-semiq-traffic-light {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

.elro-semiq-traffic-light.green {
    background-color: #97C11F;
}

.elro-semiq-traffic-light.yellow {
    background-color: #f0ad4e;
}

.elro-semiq-traffic-light.red {
    background-color: #cf2e2e;
}

/* Paging */
.elro-semiq-paging {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 24px;
    padding: 16px 0;
}

.elro-semiq-page-num,
.elro-semiq-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #005081;
    border-radius: 4px;
    font-size: 14px;
    color: #005081;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.elro-semiq-page-num:hover,
.elro-semiq-page-btn:hover {
    background-color: #005081;
    color: #fff;
}

.elro-semiq-page-num.active {
    background-color: #005081;
    color: #fff;
    font-weight: 700;
}

/* Detail Page */
.elro-semiq-detail {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.elro-semiq-detail-content {
    flex: 0 0 64%;
    max-width: 64%;
}

.elro-semiq-detail-content h1 {
    color: #005081;
    margin-bottom: 8px;
}

.elro-semiq-detail-content h2 {
    color: #666;
    font-size: 18px;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 24px;
}

.elro-semiq-detail-description {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.elro-semiq-detail-info {
    flex: 0 0 32%;
    max-width: 32%;
}

.elro-semiq-info-box {
    border: 2px solid #005081;
    border-radius: 6px;
    padding: 24px;
    position: sticky;
    top: 120px;
}

.elro-semiq-info-box h3 {
    color: #005081;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.elro-semiq-info-box dl {
    margin: 0;
}

.elro-semiq-info-box dt {
    font-weight: 600;
    font-size: 13px;
    color: #666;
    margin-top: 12px;
}

.elro-semiq-info-box dd {
    margin-left: 0;
    font-size: 15px;
    color: #333;
}

.elro-semiq-registration-dates {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
}

.elro-semiq-no-booking {
    color: #cf2e2e;
    font-weight: 600;
    font-size: 14px;
}

/* Booking Form */
.elro-semiq-booking {
    max-width: 800px;
}

.elro-semiq-booking h2 {
    color: #005081;
    margin-bottom: 24px;
}

.elro-semiq-booking fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
}

.elro-semiq-booking legend {
    font-weight: 600;
    color: #005081;
    font-size: 16px;
    padding: 0 8px;
}

.elro-semiq-form-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.elro-semiq-field {
    display: flex;
    flex-direction: column;
}

.elro-semiq-field.long {
    flex: 0 0 100%;
    max-width: 100%;
}

.elro-semiq-field.medium {
    flex: 0 0 calc(49% - 6px);
    max-width: calc(49% - 6px);
}

.elro-semiq-field.small {
    flex: 0 0 calc(23.5% - 9px);
    max-width: calc(23.5% - 9px);
}

.elro-semiq-field label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.elro-semiq-field.mandatory > label::before {
    content: '* ';
    color: #cf2e2e;
}

.elro-semiq-field input[type="text"],
.elro-semiq-field input[type="email"],
.elro-semiq-field input[type="tel"],
.elro-semiq-field input[type="date"],
.elro-semiq-field select,
.elro-semiq-field textarea {
    padding: 10px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.elro-semiq-field input:focus,
.elro-semiq-field select:focus,
.elro-semiq-field textarea:focus {
    border-color: #005081;
}

/* Alert / Validation */
.elro-semiq-field.alert input,
.elro-semiq-field.alert select,
.elro-semiq-field.alert textarea,
input.alert,
select.alert {
    border-color: #cf2e2e;
    background-color: #fff5f5;
}

.elro-semiq-error {
    color: #cf2e2e;
    font-weight: 600;
    padding: 12px 16px;
    background: #fff5f5;
    border: 1px solid #cf2e2e;
    border-radius: 4px;
}

.elro-semiq-success {
    color: #2e7d32;
    font-weight: 600;
    padding: 12px 16px;
    background: #f0fff0;
    border: 1px solid #2e7d32;
    border-radius: 4px;
}

.elro-semiq-no-results {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 16px;
}

/* Checkbox labels */
.elro-semiq-checkbox-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    cursor: pointer;
}

.elro-semiq-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .elro-semiq-container {
        flex-direction: column;
    }

    .elro-semiq-results,
    .elro-semiq-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .elro-semiq-detail {
        flex-direction: column;
    }

    .elro-semiq-detail-content,
    .elro-semiq-detail-info {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .elro-semiq-event-card {
        flex-direction: column;
    }

    .elro-semiq-date-badge {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
    }

    .elro-semiq-field.medium,
    .elro-semiq-field.small {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .elro-semiq-search {
        flex-direction: column;
    }
}
