/* Event Registration Pro – Public Form Styles */

.erp-widget { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1e293b; }

/* ── Event card ────────────────────────────────────────────────────────────── */
.erp-event-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.erp-event-thumb img { width: 100%; height: 260px; object-fit: cover; display: block; }
.erp-event-info { padding: 24px 28px; }
.erp-event-title { font-size: 22px; font-weight: 800; margin: 0 0 12px; color: #0f172a; }

.erp-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.erp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid #e2e8f0;
}
.erp-spots-low { background: #fff7ed; border-color: #fed7aa; color: #c2410c; font-weight: 700; }
.erp-event-desc { font-size: 14px; color: #475569; line-height: 1.6; }

/* ── Notices ────────────────────────────────────────────────────────────────── */
.erp-notice {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}
.erp-notice-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.erp-notice-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.erp-notice-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── Form ───────────────────────────────────────────────────────────────────── */
.erp-form-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.erp-form-title { font-size: 18px; font-weight: 700; margin: 0 0 20px; color: #0f172a; }

.erp-row { margin-bottom: 16px; }
.erp-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.erp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}
.erp-req { color: #ef4444; }
.erp-price-hint { font-weight: 400; color: #64748b; font-size: 12px; }

.erp-field input,
.erp-field select,
.erp-field textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
}
.erp-field input:focus,
.erp-field select:focus,
.erp-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.erp-field textarea { resize: vertical; min-height: 80px; }
.erp-field-sm { max-width: 200px; }

.erp-qty { text-align: center; font-size: 16px; font-weight: 700; }

/* ── Total box ──────────────────────────────────────────────────────────────── */
.erp-total-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 14px 18px;
    margin: 4px 0 16px;
}
.erp-total-label { font-size: 13px; font-weight: 700; color: #16a34a; text-transform: uppercase; letter-spacing: .05em; }
.erp-total-value { font-size: 24px; font-weight: 800; color: #15803d; }

/* ── Submit button ──────────────────────────────────────────────────────────── */
.erp-btn-submit {
    display: block;
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    letter-spacing: .02em;
}
.erp-btn-submit:hover   { opacity: .92; }
.erp-btn-submit:active  { transform: scale(.99); }
.erp-btn-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Messages ───────────────────────────────────────────────────────────────── */
#erp-messages-wrap { margin-bottom: 16px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .erp-row-2 { grid-template-columns: 1fr; }
    .erp-event-info { padding: 16px; }
    .erp-form-wrap  { padding: 18px; }
    .erp-field-sm   { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   Events Listing  [events_list]
════════════════════════════════════════════════════════════════ */

.erp-events-list { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* ── Grid ─────────────────────────────────────────────────────── */
.erp-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ── Card ─────────────────────────────────────────────────────── */
.erp-el-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .2s, box-shadow .2s;
}
.erp-el-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}
.erp-el-card-past { opacity: .7; }

/* ── Thumbnail ────────────────────────────────────────────────── */
.erp-el-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
}
.erp-el-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s;
}
.erp-el-card:hover .erp-el-thumb img { transform: scale(1.04); }

.erp-el-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.erp-el-thumb-icon { font-size: 48px; opacity: .5; }

/* ── Status badge ─────────────────────────────────────────────── */
.erp-el-status {
    position: absolute;
    top: 12px; right: 12px;
    padding: 3px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    backdrop-filter: blur(4px);
}
.erp-el-status-green  { background: rgba(220,252,231,.92); color: #15803d; }
.erp-el-status-orange { background: rgba(255,237,213,.92); color: #c2410c; }
.erp-el-status-red    { background: rgba(254,226,226,.92); color: #b91c1c; }
.erp-el-status-gray   { background: rgba(241,245,249,.92); color: #475569; }

/* ── Body ─────────────────────────────────────────────────────── */
.erp-el-body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.erp-el-date {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.erp-el-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.3;
}

.erp-el-location {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.erp-el-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
}

/* ── Footer row ───────────────────────────────────────────────── */
.erp-el-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.erp-el-price { display: flex; align-items: baseline; gap: 3px; }
.erp-el-price-free   { font-size: 15px; font-weight: 800; color: #15803d; }
.erp-el-price-amount { font-size: 18px; font-weight: 800; color: #0f172a; }
.erp-el-price-per    { font-size: 11px; color: #94a3b8; }

.erp-el-spots {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.erp-el-spots-low { color: #c2410c; }

/* ── Register button ──────────────────────────────────────────── */
.erp-el-btn {
    display: block;
    width: 100%;
    padding: 11px;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity .15s;
    box-sizing: border-box;
    cursor: pointer;
    border: none;
}
.erp-el-btn:hover { opacity: .9; }
.erp-el-btn-disabled {
    background: #f1f5f9;
    color: #94a3b8 !important;
    cursor: default;
    font-size: 13px;
}
.erp-el-btn-disabled:hover { opacity: 1; }

/* ── Empty state ──────────────────────────────────────────────── */
.erp-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
}
.erp-no-events-icon { font-size: 40px; display: block; margin-bottom: 12px; }
.erp-no-events p    { font-size: 15px; margin: 0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .erp-events-grid { grid-template-columns: 1fr; gap: 16px; }
    .erp-el-thumb    { height: 160px; }
}
