/* BBV Event Manager – Frontend Styles (theme-neutral) */

/* ---- Container ---- */
.bbv-em-form-wrap {
    max-width: 640px;
    margin: 0 auto;
}

/* ---- Event Meta Header ---- */
.bbv-em-event-header {
    background: #f5f7fa;
    border-left: 4px solid #3b5ba5;
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 0 4px 4px 0;
}

.bbv-em-event-title {
    margin: 0 0 8px;
    font-size: 1.15em;
    color: #1d2327;
}

.bbv-em-event-meta {
    margin: 4px 0;
    font-size: 0.95em;
}

/* ---- Form Layout ---- */
.bbv-em-form .bbv-em-form__row {
    margin-bottom: 18px;
}

.bbv-em-form .bbv-em-form__row--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .bbv-em-form .bbv-em-form__row--two-col {
        grid-template-columns: 1fr;
    }
}

/* ---- Form Fields ---- */
.bbv-em-form__field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bbv-em-form__field label,
.bbv-em-form__field legend {
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
}

.bbv-em-form__field fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

.bbv-em-form input[type="text"],
.bbv-em-form input[type="email"],
.bbv-em-form input[type="tel"],
.bbv-em-form select,
.bbv-em-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    transition: border-color .15s;
}

.bbv-em-form input:focus,
.bbv-em-form select:focus,
.bbv-em-form textarea:focus {
    border-color: #3b5ba5;
    outline: 2px solid rgba(59,91,165,.25);
    outline-offset: 0;
}

/* ---- Radio & Checkbox ---- */
.bbv-em-radio,
.bbv-em-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95em;
}

.bbv-em-radio + .bbv-em-radio {
    margin-top: 6px;
}

.bbv-em-required {
    color: #c0392b;
}

/* ---- Button ---- */
.bbv-em-btn {
    display: inline-block;
    padding: 11px 28px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}

.bbv-em-btn--primary {
    background: #3b5ba5;
    color: #fff;
}

.bbv-em-btn--primary:hover {
    background: #2d4a8e;
}

.bbv-em-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ---- Spinner ---- */
.bbv-em-spinner[hidden] {
    display: none !important;
}

.bbv-em-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(59,91,165,.3);
    border-top-color: #3b5ba5;
    border-radius: 50%;
    animation: bbv-spin .7s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes bbv-spin {
    to { transform: rotate(360deg); }
}

/* ---- Messages ---- */
.bbv-em-form__messages {
    padding: 0;
}

.bbv-em-form__messages p {
    margin: 0;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 0.95em;
}

.bbv-em-form__messages .bbv-em-msg--error {
    background: #fde8e8;
    color: #c0392b;
    border: 1px solid #f5c6c6;
}

.bbv-em-form__messages .bbv-em-msg--success {
    background: #eafaf1;
    color: #1e7e34;
    border: 1px solid #b7dfc7;
}

/* ---- Success Banner ---- */
.bbv-em-success {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #eafaf1;
    border: 1px solid #b7dfc7;
    border-radius: 6px;
    padding: 20px 24px;
    color: #155724;
}

.bbv-em-success__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    color: #28a745;
}

/* ---- Error / Notice ---- */
.bbv-em-error {
    color: #c0392b;
    padding: 10px 14px;
    background: #fde8e8;
    border-radius: 4px;
}

.bbv-em-notice {
    color: #856404;
    padding: 10px 14px;
    background: #fff3cd;
    border-radius: 4px;
}
