/*
 * MomentEra Registration — v5.0.0
 * Compact banner, full mobile optimisation, early-bird popup, coupon UI
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #3b1d82;
    --accent:  #f43f5e;
    --shadow:  0 20px 50px rgba(0,0,0,0.08);
    --border:  #e2e8f0;
    --bg-soft: #f8fafc;
    --text:    #1e293b;
    --muted:   #64748b;
    --eb-gold: #f59e0b;
}

/* ── Outer container ─────────────────────────────────────────────── */
.momentera-registration-container {
    max-width: 1000px;
    margin: -1px auto 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow);
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    color: var(--text);
}

/* ── Banner — max 40px vertical padding ─────────────────────────── */
.page-banner-area {
    padding: 28px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    text-align: center;
    min-height: 0;
}
.page-banner-area::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
}
.page-banner-title { position: relative; z-index: 1; }
.page-banner-title h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.2;
}
.page-banner-title .banner-subtitle {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.85;
    margin: 0;
    letter-spacing: 0.5px;
}

/* ── Form section ────────────────────────────────────────────────── */
.momentera-form-section { padding: 28px 28px 40px; background: #fbfcfe; }
.momentera-main-title {
    font-size: 20px; font-weight: 700; color: var(--primary);
    margin: 0 0 20px; text-align: center; line-height: 1.3;
}
.momentera-form-card { background: transparent; padding: 0; box-shadow: none; border: none; }

/* ── Tab pills ───────────────────────────────────────────────────── */
.nav-pills {
    display: flex; flex-wrap: wrap; justify-content: center;
    margin-bottom: 24px; gap: 10px; padding: 0; list-style: none;
}
.nav-pills .nav-link {
    display: inline-block; border-radius: 8px; border: 1px solid var(--border);
    padding: 10px 22px; background: #fff; color: var(--text);
    font-weight: 600; text-transform: uppercase; font-size: 13px;
    transition: all 0.3s; cursor: pointer; text-decoration: none; letter-spacing: 0.5px;
}
.nav-pills .nav-link.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59,29,130,0.2);
}
.nav-pills .nav-link:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ── Grid ────────────────────────────────────────────────────────── */
.momentera-form-section .row,
.momentera-section .row,
.momentera-info-footer.row {
    display: flex; flex-wrap: wrap; margin-left: -10px; margin-right: -10px;
}
.momentera-form-section .col-md-6,
.momentera-section .col-md-6,
.momentera-info-footer .col-md-6 {
    flex: 0 0 50%; max-width: 50%;
    padding-left: 10px; padding-right: 10px; box-sizing: border-box;
}

/* ── Form controls ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { font-weight: 600; margin-bottom: 6px; display: block; font-size: 13px; color: #334155; }
.form-control {
    height: 46px; border-radius: 8px; border: 1px solid #cbd5e1;
    padding: 10px 14px; font-size: 14px; transition: all 0.3s;
    width: 100%; box-sizing: border-box; background: #fff;
    color: var(--text); font-family: 'Outfit', sans-serif;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,29,130,0.1); outline: none; }
.note { font-size: 11px; color: var(--muted); display: block; margin-top: 4px; }

/* ── Sections ────────────────────────────────────────────────────── */
.momentera-section {
    margin-top: 24px; background: #fff; padding: 22px 20px;
    border-radius: 12px; border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.momentera-section h3 {
    font-size: 16px; font-weight: 700; margin-top: 0; margin-bottom: 18px;
    color: #334155; border-left: 4px solid var(--primary); padding-left: 12px;
}

/* ── Options grid ────────────────────────────────────────────────── */
.momentera-options-grid,
.momentera-options-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.control-label {
    display: flex; align-items: center; gap: 10px; position: relative;
    padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--border);
    border-radius: 8px; cursor: pointer; transition: all 0.2s;
    user-select: none; margin: 0; min-height: 46px;
}
.control-label:hover { border-color: var(--primary); background: #f1f5f9; }
.control-label input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.control-label .indicator {
    flex-shrink: 0; width: 18px; height: 18px; background: #fff;
    border: 2px solid #cbd5e1; border-radius: 4px; position: relative; transition: all 0.2s;
}
.control-label input:checked ~ .indicator { background: var(--primary); border-color: var(--primary); }
.control-label .indicator::after {
    content: ""; position: absolute; display: none;
    left: 4px; top: 1px; width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.control-label input:checked ~ .indicator::after { display: block; }
.control-label .label { font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.3; flex: 1; }
.control-label:has(input:checked) { border-color: var(--primary); background: #f0eeff; }
.control-label .eb-badge {
    font-size: 10px; font-weight: 700; background: var(--eb-gold); color: #fff;
    padding: 1px 6px; border-radius: 8px; white-space: nowrap; flex-shrink: 0;
}

/* ── Coupon ──────────────────────────────────────────────────────── */
.momentera-coupon-section {
    margin-top: 20px; background: #fff; padding: 18px 20px;
    border-radius: 12px; border: 1px solid var(--border);
}
.momentera-coupon-section h4 { font-size: 14px; font-weight: 700; color: #334155; margin: 0 0 12px; }
.coupon-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.coupon-row input[type=text] {
    flex: 1; min-width: 140px; height: 42px; border-radius: 8px;
    border: 1px solid #cbd5e1; padding: 8px 14px; font-size: 14px;
    font-family: 'Outfit', sans-serif; text-transform: uppercase;
    box-sizing: border-box; color: var(--text);
}
.coupon-row input[type=text]:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(59,29,130,0.1); }
.coupon-apply-btn {
    height: 42px; padding: 0 20px; background: var(--primary); color: #fff;
    border: none; border-radius: 8px; font-weight: 600; font-size: 13px;
    cursor: pointer; transition: background 0.2s; white-space: nowrap; font-family: 'Outfit', sans-serif;
}
.coupon-apply-btn:hover { background: #2e1566; }
.coupon-remove-btn {
    height: 42px; padding: 0 14px; background: transparent; color: #ef4444;
    border: 1px solid #ef4444; border-radius: 8px; font-weight: 600; font-size: 13px;
    cursor: pointer; display: none; font-family: 'Outfit', sans-serif;
}
.coupon-msg { font-size: 13px; margin-top: 8px; padding: 7px 12px; border-radius: 6px; display: none; }
.coupon-msg.ok  { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.coupon-msg.err { background: #fff1f2; color: #991b1b; border: 1px solid #fca5a5; }
.coupon-discount-row {
    justify-content: space-between; align-items: center;
    padding: 8px 0 0; font-size: 14px; font-weight: 600; color: #166534; display: none;
}

/* ── Summary rows ────────────────────────────────────────────────── */
#momentera-summary-selection { margin-top: 24px; }
.momentera-summary-row {
    background: #fff; padding: 14px 16px; border-radius: 10px;
    margin-bottom: 10px; border: 1px solid var(--border);
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.momentera-summary-row .col-md-5 { flex: 0 0 44%; max-width: 44%; padding: 0 6px; box-sizing: border-box; }
.momentera-summary-row .col-md-3 { flex: 0 0 26%; max-width: 26%; padding: 0 6px; box-sizing: border-box; }
.momentera-summary-row .text-right { flex: 0 0 22%; max-width: 22%; padding: 0 6px; text-align: right; box-sizing: border-box; }
.momentera-summary-row .col-md-1  { flex: 0 0 8%;  max-width: 8%;  padding: 0 4px; text-align: center; box-sizing: border-box; }
.summary-name  { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); }
.summary-price { margin: 0; font-size: 16px; font-weight: 700; color: var(--primary); }
.quantity-controls { display: flex; align-items: center; justify-content: center; gap: 8px; }
.quantity-controls button {
    width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cbd5e1;
    background: #fff; cursor: pointer; font-weight: bold;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; font-size: 15px; padding: 0;
}
.quantity-controls button:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-input { width: 32px; text-align: center; border: none; background: transparent; font-weight: 700; font-size: 15px; font-family: 'Outfit', sans-serif; }
.momentera-remove-item { color: #ef4444; cursor: pointer; font-size: 16px; transition: transform 0.2s; }
.momentera-remove-item:hover { transform: scale(1.2); }

/* ── Total row ───────────────────────────────────────────────────── */
.momentera-total-row {
    margin-top: 24px; background: var(--primary); padding: 18px 28px;
    border-radius: 12px; display: flex; justify-content: space-between;
    align-items: center; color: #fff; flex-wrap: wrap; gap: 8px;
}
.total-label  { font-size: 20px; font-weight: 700; }
.total-amount { font-size: 28px; font-weight: 800; }

/* ── Footer + submit ─────────────────────────────────────────────── */
.momentera-footer-note { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.momentera-footer-note a { color: var(--accent); font-weight: 600; text-decoration: none; }
.momentera-footer-note a:hover { text-decoration: underline; }
.momentera-submit-btn {
    display: block; width: 100%; max-width: 360px; margin: 14px auto 0; padding: 16px;
    background: var(--accent); color: #fff; border: none; border-radius: 50px;
    font-weight: 700; font-size: 16px; text-transform: uppercase; cursor: pointer;
    transition: all 0.3s; box-shadow: 0 10px 15px -3px rgba(244,63,94,0.35);
    font-family: 'Outfit', sans-serif; letter-spacing: 0.5px;
}
.momentera-submit-btn:hover:not(:disabled) {
    background: #e11d48; transform: translateY(-2px);
    box-shadow: 0 14px 20px -3px rgba(244,63,94,0.45);
}
.momentera-submit-btn:disabled { background: #94a3b8; cursor: not-allowed; box-shadow: none; transform: none; }

/* ── Info cards ──────────────────────────────────────────────────── */
.momentera-info-footer { margin-top: 32px; }
.card { border-radius: 12px; border: 1px solid var(--border); height: 100%; }
.card-body { padding: 20px; }
.bg-light { background-color: var(--bg-soft) !important; }
.card h4 { font-size: 15px; font-weight: 700; margin-top: 0; margin-bottom: 12px; color: var(--text); }
.card ul { list-style: none; padding: 0; margin: 0; }
.card ul li { padding-left: 20px; position: relative; margin-bottom: 8px; font-size: 13px; color: #475569; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: bold; }
.momentera-success-msg { margin-top: 16px; background: #dcfce7; color: #166534; padding: 12px; border-radius: 8px; border: 1px solid #bbf7d0; text-align: center; }
.momentera-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.momentera-list li { padding-left: 20px !important; position: relative !important; margin-bottom: 8px !important; font-size: 13px !important; color: #475569 !important; }
.momentera-list li::before { content: "✓" !important; position: absolute !important; left: 0 !important; color: #10b981 !important; font-weight: bold !important; }
.momentera-list li::after  { display: none !important; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-5        { margin-top: 2rem; }

/* ════════════════════════════════════════
   EARLY BIRD POPUP
   ════════════════════════════════════════ */
.me-eb-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
    opacity: 0; transition: opacity 0.35s ease; pointer-events: none;
}
.me-eb-overlay.me-eb-visible { opacity: 1; pointer-events: all; }
.me-eb-modal {
    background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto; position: relative;
    transform: translateY(20px); transition: transform 0.35s ease;
    font-family: 'Outfit', sans-serif; box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}
.me-eb-overlay.me-eb-visible .me-eb-modal { transform: translateY(0); }
.me-eb-header {
    background: linear-gradient(135deg, #3b1d82 0%, #6d28d9 100%);
    color: #fff; padding: 22px 24px 18px; border-radius: 16px 16px 0 0;
    text-align: center; position: relative;
}
.me-eb-header .me-eb-badge {
    display: inline-block; background: var(--eb-gold); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.me-eb-header h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; line-height: 1.2; }
.me-eb-header .me-eb-subtitle { font-size: 13px; opacity: 0.85; margin: 0; }
.me-eb-close {
    position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,0.2);
    border: none; color: #fff; width: 28px; height: 28px; border-radius: 50%;
    cursor: pointer; font-size: 16px; display: flex; align-items: center;
    justify-content: center; transition: background 0.2s; font-family: inherit;
}
.me-eb-close:hover { background: rgba(255,255,255,0.35); }
.me-eb-deadline {
    background: #fff7ed; border-bottom: 1px solid #fed7aa; padding: 10px 24px;
    text-align: center; font-size: 13px; color: #92400e; font-weight: 600;
}
.me-eb-deadline span { color: #dc2626; }
.me-eb-body { padding: 18px 20px 20px; }
.me-eb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.me-eb-table thead th {
    background: #f8fafc; padding: 8px 12px; text-align: left;
    font-weight: 700; color: #475569; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border);
}
.me-eb-table thead th:last-child,
.me-eb-table thead th:nth-child(2) { text-align: right; }
.me-eb-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background 0.15s; }
.me-eb-table tbody tr:hover { background: #fafbff; }
.me-eb-table tbody tr:last-child { border-bottom: none; }
.me-eb-table td { padding: 9px 12px; color: var(--text); vertical-align: middle; }
.me-eb-table td:nth-child(2) { text-align: right; color: var(--muted); text-decoration: line-through; font-size: 12px; }
.me-eb-table td:nth-child(3) { text-align: right; font-weight: 700; color: #16a34a; }
.me-eb-table .me-eb-save { font-size: 11px; background: #dcfce7; color: #166534; padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.me-eb-footer { padding: 0 20px 20px; text-align: center; }
.me-eb-cta {
    display: block; width: 100%; padding: 14px;
    background: var(--accent); color: #fff; border: none; border-radius: 50px;
    font-weight: 700; font-size: 15px; cursor: pointer; font-family: 'Outfit', sans-serif;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 8px 15px -3px rgba(244,63,94,0.35);
}
.me-eb-cta:hover { background: #e11d48; transform: translateY(-1px); }
.me-eb-skip {
    display: inline-block; margin-top: 10px; font-size: 12px; color: var(--muted);
    cursor: pointer; text-decoration: underline; background: none; border: none;
    font-family: 'Outfit', sans-serif;
}

/* ════════════════════════════════════════
   MOBILE ≤ 640px
   ════════════════════════════════════════ */
@media (max-width: 640px) {
    .momentera-registration-container { margin: 0; border-radius: 0; }
    .page-banner-area { padding: 18px 14px; }
    .page-banner-title h2 { font-size: 17px; letter-spacing: 1px; }
    .page-banner-title .banner-subtitle { font-size: 11px; }
    .momentera-form-section { padding: 16px 12px 24px; }
    .momentera-main-title { font-size: 15px; margin-bottom: 12px; }
    .nav-pills { gap: 8px; margin-bottom: 14px; }
    .nav-pills .nav-link { padding: 8px 12px; font-size: 11px; }
    .momentera-form-section .col-md-6,
    .momentera-section .col-md-6,
    .momentera-info-footer .col-md-6 { flex: 0 0 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
    .momentera-form-section .row,
    .momentera-section .row,
    .momentera-info-footer.row { margin-left: 0; margin-right: 0; }
    .momentera-info-footer .col-md-6 + .col-md-6 { margin-top: 12px; }
    .momentera-section { padding: 14px 12px; margin-top: 14px; }
    .momentera-section h3 { font-size: 14px; margin-bottom: 12px; }
    .momentera-options-grid,
    .momentera-options-list { grid-template-columns: 1fr; gap: 8px; }
    .control-label { padding: 10px 12px; }
    .control-label .label { font-size: 13px; }
    .momentera-summary-row { padding: 10px 8px; }
    .momentera-summary-row .col-md-5,
    .momentera-summary-row .col-md-3,
    .momentera-summary-row .text-right,
    .momentera-summary-row .col-md-1 { flex: 0 0 100%; max-width: 100%; padding: 0; }
    .momentera-summary-row .col-md-3  { margin: 5px 0; }
    .momentera-summary-row .text-right,
    .momentera-summary-row .col-md-1  { text-align: left; }
    .momentera-total-row { padding: 14px 16px; }
    .total-label  { font-size: 16px; }
    .total-amount { font-size: 22px; }
    .momentera-submit-btn { font-size: 15px; padding: 14px; max-width: 100%; }
    .coupon-row { flex-direction: column; }
    .coupon-row input[type=text],
    .coupon-apply-btn,
    .coupon-remove-btn { width: 100%; }
    .me-eb-modal { border-radius: 12px; max-height: 85vh; }
    .me-eb-header { padding: 16px 14px 12px; }
    .me-eb-header h2 { font-size: 17px; }
    .me-eb-body  { padding: 12px 10px 14px; }
    .me-eb-footer { padding: 0 10px 14px; }
    .me-eb-table { font-size: 11px; }
    .me-eb-table thead th { padding: 5px 6px; }
    .me-eb-table td { padding: 6px 6px; }
}

/* ════════════════════════════════════════
   TABLET 641–900px
   ════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 900px) {
    .page-banner-area { padding: 22px 20px; }
    .page-banner-title h2 { font-size: 22px; }
    .momentera-form-section { padding: 22px 20px 32px; }
    .momentera-options-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════
   THEME SPACING OVERRIDE
   Pulls the plugin banner flush to the
   WordPress page title / theme header
   ════════════════════════════════════════ */
.momentera-registration-container {
    margin-top: 0 !important;
}
/* Target common theme content wrappers */
.entry-content > .momentera-registration-container,
.page-content > .momentera-registration-container,
.post-content > .momentera-registration-container,
article .momentera-registration-container,
.elementor-widget-shortcode .momentera-registration-container {
    margin-top: -20px !important;
}

/* ════════════════════════════════════════
   EARLY BIRD TOGGLE BAR
   ════════════════════════════════════════ */
.me-eb-toggle-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 22px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fef9ee 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 10px;
    text-align: center;
}
.me-eb-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #3b1d82;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.me-eb-toggle-btn:hover { background: #2e1566; transform: translateY(-1px); }
.me-eb-toggle-btn.eb-on { background: #f59e0b; color: #fff; }
.me-eb-toggle-btn.eb-on:hover { background: #d97706; }
.me-eb-btn-icon { font-size: 16px; }
.me-eb-btn-badge {
    display: inline-block;
    background: #f43f5e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.me-eb-deadline-inline {
    font-size: 13px;
    color: #92400e;
    font-weight: 600;
}

/* ════════════════════════════════════════
   PRICE DISPLAY — strikethrough + EB price
   ════════════════════════════════════════ */
.me-price-display {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    font-weight: 700;
}
.me-price-regular {
    color: var(--muted);
    transition: all 0.2s;
}
/* When early bird is ON: regular price gets strikethrough */
.eb-mode-on .control-label.has-early-bird .me-price-regular {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 12px;
}
.me-price-early {
    color: #16a34a;
    font-weight: 700;
    font-size: 14px;
}
/* The EB price sits after the regular price inline */
.control-label.has-early-bird .me-price-display {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════
   BROCHURE FORM
   ════════════════════════════════════════════════════════════════ */
.me-brochure-wrap {
    max-width: 640px;
    margin: 0 auto;
    font-family: 'Outfit', Arial, sans-serif;
}
.me-brochure-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.me-brochure-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.me-brochure-field {
    flex: 1;
    min-width: 200px;
}
.me-brochure-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}
.me-brochure-field label span { color: #f43f5e; }
.me-brochure-field input[type=text],
.me-brochure-field input[type=email],
.me-brochure-field input[type=tel] {
    width: 100%;
    height: 46px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: #1e293b;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.me-brochure-field input:focus {
    border-color: #3b1d82;
    box-shadow: 0 0 0 3px rgba(59,29,130,0.1);
    outline: none;
}
.me-brochure-submit {
    width: 100%;
    height: 52px;
    background: #3b1d82;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.3px;
}
.me-brochure-submit:hover { background: #2e1566; transform: translateY(-1px); }
.me-brochure-error {
    background: #fff1f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}
.me-brochure-success {
    text-align: center;
    padding: 40px 20px;
    background: #f0fdf4;
    border: 2px solid #22c55e;
    border-radius: 12px;
}
.me-brochure-success-icon { font-size: 48px; margin-bottom: 12px; }
.me-brochure-success h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #15803d;
    font-family: inherit;
}
.me-brochure-success-sub {
    font-size: 14px;
    color: #475569;
    margin: 0 0 20px;
    line-height: 1.6;
}
.me-brochure-dl-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #3b1d82;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    font-family: inherit;
    transition: background 0.2s;
}
.me-brochure-dl-btn:hover { background: #2e1566; }

@media (max-width: 640px) {
    .me-brochure-form { padding: 20px 16px; }
    .me-brochure-row { flex-direction: column; gap: 0; margin-bottom: 0; }
    .me-brochure-field { min-width: 100%; margin-bottom: 14px; }
}

/* ════════════════════════════════════════════════════════════════
   SPEAKER GRID + POPUP
   ════════════════════════════════════════════════════════════════ */
.me-speakers-grid {
    display: grid;
    grid-template-columns: repeat(var(--me-sp-cols, 4), 1fr);
    gap: 22px;
    margin: 20px 0;
    font-family: 'Outfit', Arial, sans-serif;
}

/* Speaker Card */
.me-speaker-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px 22px;
    text-align: center;
}
.me-speaker-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.me-speaker-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
    border: 3px solid #eeedfe;
    flex-shrink: 0;
}
.me-speaker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.me-speaker-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #3b1d82;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    font-family: inherit;
}
.me-speaker-photo-placeholder.large { font-size: 52px; }
.me-speaker-info { flex: 1; width: 100%; }
.me-speaker-name {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    font-family: inherit;
}
.me-speaker-role {
    font-size: 13px;
    color: #3b1d82;
    font-weight: 600;
    margin: 0 0 2px;
}
.me-speaker-org {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 6px;
}
.me-speaker-topic {
    font-size: 12px;
    color: #475569;
    margin: 8px 0 0;
    line-height: 1.4;
    font-style: italic;
}
.me-speaker-btn {
    margin-top: 16px;
    padding: 9px 22px;
    background: transparent;
    color: #3b1d82;
    border: 2px solid #3b1d82;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
}
.me-speaker-btn:hover { background: #3b1d82; color: #fff; }

/* Popup overlay */
.me-speaker-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.me-speaker-popup-overlay.me-sp-open {
    opacity: 1;
    pointer-events: all;
}

/* Popup modal */
.me-speaker-popup {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(16px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    font-family: 'Outfit', Arial, sans-serif;
}
.me-speaker-popup-overlay.me-sp-open .me-speaker-popup { transform: translateY(0); }

.me-sp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.1);
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    transition: background 0.2s;
    z-index: 1;
}
.me-sp-close:hover { background: rgba(0,0,0,0.2); }

.me-sp-header {
    display: flex;
    gap: 20px;
    padding: 28px 28px 22px;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}
.me-sp-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid #eeedfe;
}
.me-sp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.me-sp-header-info { flex: 1; padding-top: 4px; }
.me-sp-name {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}
.me-sp-role {
    font-size: 14px;
    color: #3b1d82;
    font-weight: 600;
    margin: 0 0 2px;
}
.me-sp-org {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 8px;
}
.me-sp-topic {
    font-size: 13px;
    color: #475569;
    margin: 8px 0;
    line-height: 1.5;
}
.me-sp-social { display: flex; gap: 10px; margin-top: 10px; }
.me-sp-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #3b1d82;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.me-sp-social-link:hover { background: #2e1566; }

.me-sp-bio { padding: 22px 28px 28px; }
.me-sp-bio h4 {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 12px;
}
.me-sp-bio-content {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.75;
}
.me-sp-bio-content p,
.me-sp-bio-content li,
.me-sp-bio-content span { color: #1a1a1a; }
.me-sp-bio-content p { margin: 0 0 12px; }
.me-sp-bio-content p:last-child { margin: 0; }

@media (max-width: 480px) {
    .me-speakers-grid { grid-template-columns: 1fr; gap: 14px; }
    .me-sp-header { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px 18px; }
    .me-sp-photo { width: 90px; height: 90px; }
    .me-sp-social { justify-content: center; }
    .me-sp-bio { padding: 16px 18px 22px; }
    .me-speaker-popup { border-radius: 12px; }
}
@media (min-width: 481px) and (max-width: 640px) {
    .me-speakers-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .me-sp-header { flex-direction: column; align-items: center; text-align: center; }
    .me-sp-social { justify-content: center; }
}
@media (min-width: 641px) and (max-width: 900px) {
    .me-speakers-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
