/* V3RTECH Events Manager — Public Styles */
:root {
    --vem-primary:   #1e40af;
    --vem-secondary: #f59e0b;
    --vem-font:      inherit;
    --vem-radius:    8px;
    --vem-border:    #e5e7eb;
    --vem-shadow:    0 2px 8px rgba(0,0,0,.08);
    --vem-bg:        #f9fafb;
    --vem-card-bg:   #fff;
    --vem-text:      #111827;
    --vem-muted:     #6b7280;
}

/* ── Wrapper ── */
.vem-registration-wrap {
    font-family: var(--vem-font);
    color: var(--vem-text);
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ── Logo ── */
.vem-event-logo { text-align: center; margin-bottom: 20px; }
.vem-event-logo img { max-height: 100px; max-width: 300px; }

/* ── Event info bar ── */
.vem-event-info-bar {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--vem-bg);
    border: 1px solid var(--vem-border);
    border-radius: var(--vem-radius);
    margin-bottom: 24px;
    font-size: 14px;
}
.vem-info-item { display: flex; align-items: center; gap: 6px; color: var(--vem-muted); }
.vem-info-item .dashicons { color: var(--vem-primary); font-size: 16px; width: 16px; height: 16px; }
.vem-info-item a { color: var(--vem-primary); }

/* ── Pricing tiers ── */
.vem-pricing-tiers {
    background: var(--vem-card-bg);
    border: 1px solid var(--vem-border);
    border-radius: var(--vem-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--vem-shadow);
}
.vem-pricing-tiers h3 { margin: 0 0 12px; font-size: 16px; color: var(--vem-primary); }
.vem-pricing-tiers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vem-tier-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border: 1px solid var(--vem-border);
    border-radius: 999px;
    font-size: 13px;
    background: var(--vem-bg);
    transition: all .2s;
}
.vem-tier-item.active {
    border-color: var(--vem-primary);
    background: var(--vem-primary);
    color: #fff;
}
.vem-tier-item.active .vem-tier-price { color: #fff; }
.vem-tier-label { font-weight: 500; }
.vem-tier-price { font-weight: 700; color: var(--vem-primary); }

/* ── Form sections ── */
.vem-form-wrapper { /* inherits */ }

.vem-responsible-section,
.vem-attendees-section {
    background: var(--vem-card-bg);
    border: 1px solid var(--vem-border);
    border-radius: var(--vem-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--vem-shadow);
}
.vem-responsible-section h3,
.vem-attendees-section h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--vem-primary);
}

/* ── Form grid ── */
.vem-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.vem-form-group { display: flex; flex-direction: column; gap: 4px; }
.vem-form-group label { font-size: 13px; font-weight: 600; color: #374151; }
.vem-required { color: #dc2626; }

.vem-input {
    padding: 8px 12px;
    border: 1px solid var(--vem-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--vem-font);
    width: 100%;
    box-sizing: border-box;
    transition: border-color .2s;
    background: #fff;
    color: var(--vem-text);
}
.vem-input:focus { outline: none; border-color: var(--vem-primary); box-shadow: 0 0 0 3px rgba(30,64,175,.12); }
.vem-input.vem-error { border-color: #dc2626; }
.vem-input.vem-valid { border-color: #16a34a; }
.vem-field-error { font-size: 12px; color: #dc2626; margin-top: 2px; }

/* ── Import ── */
.vem-import-section { margin-bottom: 20px; }
.vem-import-area {
    background: var(--vem-bg);
    border: 2px dashed var(--vem-border);
    border-radius: var(--vem-radius);
    padding: 20px;
    margin-top: 12px;
    text-align: center;
}
.vem-import-area.hidden { display: none; }
.vem-import-hint { margin-bottom: 12px; color: var(--vem-muted); font-size: 13px; }
.vem-file-label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 12px; }
.vem-file-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vem-file-btn {
    background: var(--vem-card-bg);
    border: 1px solid var(--vem-border);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}
.vem-file-btn:hover { background: #f3f4f6; }
.vem-file-name { color: var(--vem-muted); font-size: 13px; }
.vem-import-status { margin-left: 8px; font-size: 13px; }
.vem-import-status.success { color: #16a34a; }
.vem-import-status.error   { color: #dc2626; }

/* ── Attendees ── */
.vem-attendees-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.vem-attendees-header h3 { margin: 0; font-size: 16px; color: var(--vem-primary); }
.vem-attendee-count { color: var(--vem-muted); font-weight: 400; }
.vem-attendees-list { display: flex; flex-direction: column; gap: 16px; }
.vem-attendee-card {
    background: var(--vem-card-bg);
    border: 1px solid var(--vem-border);
    border-radius: var(--vem-radius);
    padding: 16px;
    box-shadow: var(--vem-shadow);
    animation: vemSlideIn .2s ease;
}
@keyframes vemSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.vem-attendee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vem-border);
}
.vem-attendee-header strong { color: var(--vem-primary); }

/* ── Summary ── */
.vem-summary {
    background: var(--vem-card-bg);
    border: 1px solid var(--vem-border);
    border-left: 4px solid var(--vem-primary);
    border-radius: var(--vem-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--vem-shadow);
}
.vem-summary-grid { display: flex; flex-direction: column; gap: 8px; }
.vem-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.vem-summary-total { font-size: 18px; font-weight: 700; padding-top: 10px; border-top: 2px solid var(--vem-border); margin-top: 4px; color: var(--vem-primary); }
.vem-summary-tier { color: var(--vem-muted); font-size: 13px; }

/* ── Buttons ── */
.vem-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--vem-font);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.vem-btn:focus { outline: 2px solid var(--vem-primary); outline-offset: 2px; }
.vem-btn--primary { background: var(--vem-primary); color: #fff; }
.vem-btn--primary:hover:not(:disabled) { background: #1d3a9e; color: #fff; }
.vem-btn--primary:disabled { opacity: .5; cursor: not-allowed; }
.vem-btn--secondary { background: transparent; color: var(--vem-primary); border: 1px solid var(--vem-primary); }
.vem-btn--secondary:hover { background: var(--vem-primary); color: #fff; }
.vem-btn--add { background: transparent; color: var(--vem-primary); border: 1px dashed var(--vem-primary); font-size: 13px; padding: 7px 14px; }
.vem-btn--add:hover { background: rgba(30,64,175,.06); }
.vem-btn--remove { background: transparent; color: #dc2626; border: 1px solid #dc2626; font-size: 12px; padding: 4px 10px; }
.vem-btn--remove:hover { background: #dc2626; color: #fff; }
.vem-btn--lg { font-size: 16px; padding: 14px 28px; width: 100%; justify-content: center; }

/* ── Notices ── */
.vem-notices { margin: 12px 0; }
.vem-notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.vem-notice--error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.vem-notice--success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }
.vem-notice--info    { background: #dbeafe; color: #1e40af; border-left: 4px solid #3b82f6; }
.vem-notice--warning { background: #fef9c3; color: #854d0e; border-left: 4px solid #f59e0b; }

/* ── Thank you ── */
.vem-thankyou-notice {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-left: 4px solid #16a34a;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 15px;
}

/* ── Misc ── */
.vem-link { color: var(--vem-primary); text-decoration: underline; }
.vem-error { color: #dc2626; padding: 12px 0; }
.hidden, [hidden] { display: none !important; }

/* ── Order attendees (admin) ── */
.vem-order-attendees { margin-top: 12px; padding: 10px; background: #f9fafb; border-radius: 6px; font-size: 13px; }
.vem-order-attendees h4 { margin: 0 0 6px; }
.vem-order-attendees ol { margin: 0; padding-left: 18px; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .vem-form-grid { grid-template-columns: 1fr; }
    .vem-pricing-tiers ul { flex-direction: column; }
    .vem-tier-item { border-radius: var(--vem-radius); }
}
