/* =============================================================
   MedEqHub Training Registration — front end
   Everything is scoped to .meq / .meq-modal so the theme is untouched.
   Fonts are inherited from the theme.
   ============================================================= */
.meq, .meq-modal {
    --meq-p: #183549;
    --meq-a: #4E9C9D;
    --meq-a-dark: color-mix(in srgb, var(--meq-a) 82%, #000);
    --meq-a-50: color-mix(in srgb, var(--meq-a) 8%, #fff);
    --meq-a-100: color-mix(in srgb, var(--meq-a) 16%, #fff);
    --meq-p-50: color-mix(in srgb, var(--meq-p) 6%, #fff);
    --meq-ink: #1c2b36;
    --meq-muted: #64748b;
    --meq-line: #e3eaee;
    --meq-bg: #f5f8fa;
    --meq-coral: #e2554f;
    --meq-amber: #d98e1f;
    --meq-green: #1f9463;
    --meq-r: 18px;
    --meq-shadow: 0 18px 40px -16px rgba(24, 53, 73, .28);
}
.meq { color: var(--meq-ink); line-height: 1.6; font-size: 16px; }
.meq *, .meq *::before, .meq *::after { box-sizing: border-box; }
.meq [hidden] { display: none !important; }
.meq img { max-width: 100%; height: auto; }
.meq .meq-ic { display: inline-block; vertical-align: -.15em; flex-shrink: 0; }
.meq h2, .meq h3, .meq h4 { color: var(--meq-p); margin: 0; line-height: 1.25; letter-spacing: -.01em; }
.meq p { margin: 0 0 1em; }
.meq button, .meq input, .meq select, .meq textarea { font-family: inherit; font-size: 15px; }

/* ---------- Buttons / chips / badges ---------- */
.meq .meq-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
    background: var(--meq-a); color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 15px; line-height: 1.2;
    border-radius: 999px; padding: 12px 22px; transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--meq-a) 80%, transparent);
}
.meq .meq-btn:hover { background: var(--meq-a-dark); transform: translateY(-1px); }
.meq .meq-btn:disabled { opacity: .7; cursor: wait; transform: none; }
.meq .meq-btn--sm { padding: 9px 15px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.meq .meq-btn--lg { padding: 14px 26px; font-size: 16px; }
.meq .meq-btn--block { width: 100%; }
.meq .meq-btn--ghost { background: transparent; color: var(--meq-p) !important; box-shadow: inset 0 0 0 1.5px var(--meq-p); }
.meq .meq-btn--ghost:hover { background: var(--meq-p); color: #fff !important; }
.meq .meq-btn--muted { background: rgba(255,255,255,.15); color: rgba(255,255,255,.85) !important; box-shadow: none; cursor: default; }
.meq .meq-link { background: none; border: 0; padding: 0; color: var(--meq-a-dark); font-weight: 700; cursor: pointer; text-decoration: none; }
.meq .meq-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.2; background: rgba(255,255,255,.95); color: var(--meq-p); }
.meq .meq-chip--full { background: var(--meq-coral); color: #fff; }
.meq .meq-chip--low { background: var(--meq-amber); color: #fff; }
.meq .meq-chip--star { background: var(--meq-a); color: #fff; }
.meq .meq-chip--glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.meq .meq-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.5; }
.meq .meq-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.meq .meq-badge--success { background: #e3f6ee; color: #18865a; }
.meq .meq-badge--warning { background: #fdf2dc; color: #a86b0c; }
.meq .meq-badge--info { background: #e2f1fb; color: #1f6fa6; }
.meq .meq-badge--danger { background: #fde7e6; color: #c23b35; }
.meq .meq-badge--muted { background: #eef1f4; color: #5b6b78; }
.meq .meq-badge--dark { background: #e5e8ec; color: #26323c; }
.meq .meq-price { font-weight: 800; font-size: 22px; color: var(--meq-p); line-height: 1; }
.meq .meq-price small { display: block; font-size: 12px; font-weight: 600; color: var(--meq-muted); margin-top: 4px; }

/* ---------- Listing ---------- */
.meq-list { margin: 0 0 2em; }
.meq .meq-bar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.meq .meq-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.meq .meq-pill { appearance: none; border: 1px solid var(--meq-line); background: #fff; color: var(--meq-ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; cursor: pointer; line-height: 1.2; transition: all .2s; }
.meq .meq-pill:hover { border-color: var(--meq-a); color: var(--meq-p); }
.meq .meq-pill.is-on { background: var(--meq-p); border-color: var(--meq-p); color: #fff; }
.meq .meq-pill small { opacity: .65; margin-left: 5px; font-size: 12px; }
.meq .meq-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.meq .meq-search { position: relative; flex: 1 1 260px; min-width: 0; margin: 0; }
.meq .meq-search .meq-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--meq-muted); }
.meq .meq-search input, .meq .meq-select { width: 100%; height: 46px; margin: 0; border: 1.5px solid var(--meq-line); border-radius: 12px; background: #fff; color: var(--meq-ink); padding: 0 14px 0 42px; outline: 0; box-shadow: none; }
.meq .meq-select { width: auto; flex: 0 1 220px; padding-left: 14px; cursor: pointer; }
.meq .meq-search input:focus, .meq .meq-select:focus { border-color: var(--meq-a); box-shadow: 0 0 0 4px var(--meq-a-100); }
.meq .meq-count { margin-left: auto; color: var(--meq-muted); font-size: 14px; white-space: nowrap; }
.meq .meq-count b { color: var(--meq-p); }

.meq-list { container-type: inline-size; }
/* Up to --meq-cols cards per row, fewer when the space is narrow (works in any theme column) */
.meq .meq-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 250px), calc((100% - (var(--meq-cols, 3) - 1) * 22px) / var(--meq-cols, 3))), 1fr)); }
@container (max-width: 540px) { .meq .meq-grid { grid-template-columns: 1fr; } }
.meq .meq-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--meq-line); border-radius: var(--meq-r); overflow: hidden; text-decoration: none !important; color: var(--meq-ink) !important; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.meq .meq-card:hover, .meq .meq-card:focus-visible { transform: translateY(-5px); box-shadow: var(--meq-shadow); border-color: transparent; }
.meq .meq-card:focus-visible { outline: 3px solid var(--meq-a-100); outline-offset: 2px; }
.meq .meq-card__thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--meq-p), var(--meq-a)); }
.meq .meq-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.meq .meq-card:hover .meq-card__thumb img { transform: scale(1.06); }
.meq .meq-card__ph { position: absolute; inset: 0; display: grid; place-items: center; opacity: .55; }
.meq .meq-card__ph svg { width: 72%; height: 46%; }
.meq .meq-card__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; }
.meq .meq-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 18px; }
.meq .meq-card__cat { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--meq-a-dark); margin-bottom: 6px; }
.meq .meq-card__title { display: block; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--meq-p); margin-bottom: 8px; }
.meq .meq-card__sum { display: block; font-size: 14px; color: var(--meq-muted); margin-bottom: 14px; }
.meq .meq-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--meq-muted); margin-bottom: 16px; }
.meq .meq-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.meq .meq-card__meta .meq-ic { color: var(--meq-a); }
.meq .meq-card__meta em { font-style: normal; opacity: .75; }
.meq .meq-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--meq-line); }
.meq .meq-card.is-full .meq-btn { background: #e9eef2; color: var(--meq-muted) !important; box-shadow: none; }

.meq .meq-empty { text-align: center; padding: 48px 20px; border: 1.5px dashed var(--meq-line); border-radius: var(--meq-r); color: var(--meq-muted); }
.meq .meq-empty b { display: block; color: var(--meq-p); font-size: 17px; margin-bottom: 4px; }
.meq .meq-empty__ic { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--meq-a-50); color: var(--meq-a); }
.meq .meq-empty .meq-link { margin-top: 10px; }

/* ---------- Modal ---------- */
.meq-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(10, 24, 34, .62); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .22s; }
.meq-modal.is-open { opacity: 1; }
.meq-modal[hidden] { display: none; }
.meq-modal__panel { position: relative; width: min(1140px, 100%); max-height: min(92vh, 1000px); height: 100%; overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 22px; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .55); transform: translateY(16px) scale(.985); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.meq-modal.is-open .meq-modal__panel { transform: none; }
.meq-modal__x { position: sticky; top: 14px; float: right; margin: 14px 14px -56px 0; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--meq-p); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); padding: 0; transition: transform .2s; }
.meq-modal__x:hover { transform: rotate(90deg); }
.meq-modal__body { min-height: 100%; }
.meq .meq-loading { display: grid; place-items: center; min-height: 60vh; }
.meq .meq-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--meq-a-100); border-top-color: var(--meq-a); animation: meq-spin .8s linear infinite; display: inline-block; }
.meq .meq-spin--sm { width: 18px; height: 18px; border-width: 3px; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes meq-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
    .meq-modal { padding: 0; }
    .meq-modal__panel { max-height: 100%; border-radius: 0; }
}

/* ---------- Training details ---------- */
.meq .meq-d { container-type: inline-size; }
.meq .meq-d__hero { position: relative; padding: 36px 36px 100px; color: #fff; overflow: hidden;
    background: radial-gradient(700px 300px at 92% 0%, color-mix(in srgb, var(--meq-a) 45%, transparent), transparent 70%), linear-gradient(160deg, var(--meq-p), color-mix(in srgb, var(--meq-p) 80%, #000)); }
.meq .meq-d__hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.meq .meq-d__hero > * { position: relative; }
.meq .meq-d--single .meq-d__hero { border-radius: 22px; padding-top: 28px; }
.meq .meq-d__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding-right: 50px; }
.meq .meq-d__title { color: #fff; font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; margin: 0 0 8px; padding-right: 50px; }
.meq .meq-d__lead { color: rgba(255,255,255,.8); font-size: 17px; max-width: 760px; margin: 0; }
.meq .meq-d__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.meq .meq-d__meta span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.15); font-weight: 600; font-size: 14px; }
.meq .meq-d__meta .meq-ic { color: #8fe0d9; }
.meq .meq-d__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 0 20px 28px; margin-top: -70px; position: relative; }
.meq .meq-d--single .meq-d__body { padding: 0 16px 10px; }
@container (min-width: 820px) {
    .meq .meq-d__body { grid-template-columns: minmax(0, 1fr) 320px; padding: 0 36px 36px; }
    .meq .meq-d__side { position: sticky; top: 20px; align-self: start; }
}
.meq .meq-d__main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.meq .meq-d__side { display: flex; flex-direction: column; gap: 18px; }
.meq .meq-d__cover { border-radius: 20px; overflow: hidden; aspect-ratio: 21/9; box-shadow: var(--meq-shadow); }
.meq .meq-d__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.meq .meq-panel { background: #fff; border: 1px solid var(--meq-line); border-radius: 20px; padding: 28px; box-shadow: 0 2px 10px rgba(24,53,73,.05); }
.meq .meq-panel--tight { padding: 20px; }
.meq .meq-panel__h { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 700; margin-bottom: 16px; }
.meq .meq-panel__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--meq-a-100); color: var(--meq-a-dark); flex-shrink: 0; }
.meq .meq-rich { color: #3b4a56; }
.meq .meq-rich > :last-child { margin-bottom: 0; }
.meq .meq-rich h3, .meq .meq-rich h4 { margin: 1.1em 0 .4em; font-size: 17px; }
.meq .meq-learn ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px 24px; }
@container (min-width: 600px) { .meq .meq-learn ul { grid-template-columns: 1fr 1fr; } }
.meq .meq-learn li { position: relative; padding-left: 34px; margin: 0; }
.meq .meq-learn li::before { content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--meq-a-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f7d7e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }

.meq .meq-pricecard { position: relative; overflow: hidden; border-radius: 20px; padding: 26px; color: #fff; background: linear-gradient(160deg, var(--meq-p), color-mix(in srgb, var(--meq-p) 80%, #000)); }
.meq .meq-pricecard::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: color-mix(in srgb, var(--meq-a) 45%, transparent); filter: blur(30px); }
.meq .meq-pricecard > * { position: relative; z-index: 1; }
.meq .meq-pricecard__label { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8fe0d9; }
.meq .meq-pricecard__big { font-size: 38px; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.meq .meq-pricecard__big small { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.6); }
.meq .meq-pricecard ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.meq .meq-pricecard li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; margin: 0; }
.meq .meq-pricecard li span { color: rgba(255,255,255,.65); }
.meq .meq-pricecard li b { text-align: right; }
.meq .meq-side__h { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--meq-p); margin-bottom: 10px; }
.meq .meq-side__date { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--meq-line); font-size: 14px; font-weight: 600; color: var(--meq-p); }
.meq .meq-side__date:last-child { border: 0; }
.meq .meq-enq-toggle summary { cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--meq-p); list-style: none; }
.meq .meq-enq-toggle summary::-webkit-details-marker { display: none; }
.meq .meq-enq-toggle summary .meq-ic { color: var(--meq-a); }
.meq .meq-enq-toggle[open] summary { margin-bottom: 14px; }

/* ---------- Forms ---------- */
.meq .meq-form { margin: 0; }
.meq .meq-hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.meq .meq-step { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--meq-muted); }
.meq .meq-step:first-of-type { margin-top: 4px; }
.meq .meq-step::after { content: ''; flex: 1; height: 1px; background: var(--meq-line); }
.meq .meq-step span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--meq-p); color: #fff; font-size: 12px; letter-spacing: 0; }
.meq .meq-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
@container (min-width: 520px) { .meq .meq-fields:not(.meq-fields--one) { grid-template-columns: 1fr 1fr; } }
.meq-enquiry-wrap { container-type: inline-size; }
.meq .meq-field--full { grid-column: 1 / -1; }
.meq .meq-field label, .meq .meq-label { display: block; font-weight: 700; font-size: 14px; color: var(--meq-p); margin: 0 0 6px; }
.meq .meq-field label small { font-weight: 500; color: var(--meq-muted); }
.meq .meq-field input, .meq .meq-field textarea {
    display: block; width: 100%; margin: 0; padding: 12px 14px; border: 1.5px solid var(--meq-line); border-radius: 12px; background: #fff;
    color: var(--meq-ink); font-size: 15px; line-height: 1.4; box-shadow: none; outline: 0; transition: border-color .2s, box-shadow .2s; height: auto; min-height: 0;
}
.meq .meq-field input:focus, .meq .meq-field textarea:focus { border-color: var(--meq-a); box-shadow: 0 0 0 4px var(--meq-a-100); }
.meq .is-invalid { border-color: var(--meq-coral) !important; }
.meq .meq-err { display: block; font-style: normal; font-size: 13px; color: var(--meq-coral); margin-top: 5px; font-weight: 600; }
.meq .meq-err:empty { display: none; }
.meq .meq-form__alert { padding: 12px 16px; border-radius: 12px; background: #fdecea; color: #a8322d; font-weight: 600; font-size: 14px; margin-bottom: 14px; }

.meq .meq-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.meq .meq-date { position: relative; margin: 0; cursor: pointer; display: block; }
.meq .meq-date input { position: absolute; opacity: 0; pointer-events: none; }
.meq .meq-date__box { display: block; height: 100%; padding: 16px; border: 2px solid var(--meq-line); border-radius: 16px; background: #fff; transition: all .2s; }
.meq .meq-date:hover .meq-date__box { border-color: var(--meq-a); }
.meq .meq-date input:checked + .meq-date__box { border-color: var(--meq-a); background: var(--meq-a-50); box-shadow: 0 0 0 4px var(--meq-a-100); }
.meq .meq-date input:focus-visible + .meq-date__box { box-shadow: 0 0 0 4px var(--meq-a-100); }
.meq .meq-date__box b { display: block; color: var(--meq-p); font-size: 16px; padding-right: 26px; }
.meq .meq-date__box small { display: block; color: var(--meq-muted); font-size: 13px; }
.meq .meq-date__check { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--meq-line); display: grid; place-items: center; color: transparent; }
.meq .meq-date input:checked + .meq-date__box .meq-date__check { background: var(--meq-a); border-color: var(--meq-a); color: #fff; }
.meq .meq-date__seats { display: block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--meq-p); }
.meq .meq-bar-mini { display: block; height: 5px; border-radius: 5px; background: var(--meq-line); margin-top: 6px; overflow: hidden; }
.meq .meq-bar-mini i { display: block; height: 100%; background: var(--meq-a); }
.meq .meq-date.is-low .meq-date__seats { color: var(--meq-amber); }
.meq .meq-date.is-low .meq-bar-mini i { background: var(--meq-amber); }
.meq .meq-date.is-full { cursor: not-allowed; }
.meq .meq-date.is-full .meq-date__box { background: repeating-linear-gradient(-45deg, #fafbfc, #fafbfc 8px, #f2f4f6 8px, #f2f4f6 16px); opacity: .85; border-color: var(--meq-line); }
.meq .meq-date.is-full b { color: var(--meq-muted); text-decoration: line-through; }
.meq .meq-date.is-full .meq-date__seats { color: var(--meq-coral); }
.meq .meq-date__full { position: absolute; top: 12px; right: 12px; background: var(--meq-coral); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .06em; }

.meq .meq-pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.meq .meq-pay { position: relative; margin: 0; cursor: pointer; display: block; }
.meq .meq-pay input { position: absolute; opacity: 0; }
.meq .meq-pay__box { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border: 2px solid var(--meq-line); border-radius: 16px; transition: all .2s; }
.meq .meq-pay:hover .meq-pay__box { border-color: var(--meq-a); }
.meq .meq-pay input:checked + .meq-pay__box { border-color: var(--meq-a); background: var(--meq-a-50); box-shadow: 0 0 0 4px var(--meq-a-100); }
.meq .meq-pay.is-disabled { opacity: .5; cursor: not-allowed; }
.meq .meq-pay__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--meq-p-50); color: var(--meq-p); flex-shrink: 0; }
.meq .meq-pay__ic--pp { background: #e8f1ff; color: #0070ba; }
.meq .meq-pay b { display: block; color: var(--meq-p); }
.meq .meq-pay small { color: var(--meq-muted); font-size: 13px; }
.meq .meq-paybox { margin-top: 14px; }
.meq .meq-bank { position: relative; border-radius: 16px; background: var(--meq-p-50); border: 1px dashed color-mix(in srgb, var(--meq-p) 30%, transparent); padding: 18px 20px; color: var(--meq-p); margin-bottom: 16px; font-size: 14.5px; }
.meq .meq-bank > b { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.meq .meq-copy { position: absolute; top: 12px; right: 12px; border: 0; background: #fff; border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; color: var(--meq-p); cursor: pointer; box-shadow: 0 2px 8px rgba(24,53,73,.08); display: inline-flex; align-items: center; gap: 5px; }
.meq .meq-drop { position: relative; display: block; border: 2px dashed var(--meq-line); border-radius: 16px; padding: 24px; text-align: center; cursor: pointer; transition: all .2s; color: var(--meq-a); margin: 0; }
.meq .meq-drop:hover, .meq .meq-drop.is-drag { border-color: var(--meq-a); background: var(--meq-a-50); }
.meq .meq-drop.has-file { border-style: solid; border-color: var(--meq-a); background: var(--meq-a-50); }
.meq .meq-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.meq .meq-drop__name { display: block; font-weight: 700; color: var(--meq-p); margin-top: 6px; word-break: break-all; }
.meq .meq-drop small { color: var(--meq-muted); }
.meq .meq-info { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #eef5ff; color: #0b4f8a; font-size: 14.5px; }
.meq .meq-terms { border: 1px solid var(--meq-line); border-radius: 14px; padding: 12px 16px; margin-bottom: 12px; }
.meq .meq-terms summary { cursor: pointer; font-weight: 700; color: var(--meq-a-dark); font-size: 14px; }
.meq .meq-terms__body { max-height: 260px; overflow: auto; margin-top: 10px; font-size: 14px; padding-right: 6px; }
.meq .meq-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; margin: 0; }
.meq .meq-check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--meq-a); flex-shrink: 0; }
.meq .meq-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--meq-bg); }
.meq .meq-submit small { display: block; color: var(--meq-muted); font-size: 13px; }
.meq .meq-submit .meq-price small { display: inline; }
.meq .meq-submit__date { margin-top: 6px; }

.meq .meq-notice { text-align: center; padding: 26px 16px; }
.meq .meq-notice b { display: block; font-size: 18px; color: var(--meq-p); margin-bottom: 6px; }
.meq .meq-notice p { color: var(--meq-muted); margin: 0 auto; max-width: 480px; }
.meq .meq-notice__ic { width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--meq-a-50); color: var(--meq-a); }
.meq .meq-notice--danger .meq-notice__ic { background: #fde7e6; color: var(--meq-coral); }
.meq .meq-notice--center { padding: 70px 20px; }
.meq .meq-notice--center .meq-btn { margin-top: 18px; }
.meq .meq-success { text-align: center; padding: 20px 10px; color: var(--meq-p); font-weight: 600; }
.meq .meq-success span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: #e3f6ee; color: var(--meq-green); }
.meq .meq-enquiry__title { font-size: 22px; margin-bottom: 16px; }
.meq .meq-enquiry .meq-btn { margin-top: 16px; }
.meq-enquiry-wrap { background: #fff; border: 1px solid var(--meq-line); border-radius: 20px; padding: 28px; }

/* ---------- Confirmation ---------- */
.meq .meq-ty { max-width: 720px; margin: 0 auto; padding: 28px 16px; }
.meq-single .meq-ty, .meq-modal .meq-ty { padding-top: 40px; }
.meq .meq-ty__top { text-align: center; color: #fff; padding: 44px 28px 36px; border-radius: 24px 24px 0 0; background: linear-gradient(160deg, var(--meq-p), color-mix(in srgb, var(--meq-p) 80%, #000)); }
.meq .meq-ty__top h3 { color: #fff; font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.meq .meq-ty__top p { color: rgba(255,255,255,.78); margin: 0 auto; max-width: 520px; }
.meq .meq-ty__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--meq-a); box-shadow: 0 0 0 12px rgba(255,255,255,.08), 0 0 0 24px rgba(255,255,255,.04); animation: meq-pop .5s cubic-bezier(.2,1.4,.4,1); }
.meq .meq-ty__icon--warn { background: var(--meq-amber); }
.meq .meq-ty__icon--danger { background: var(--meq-coral); }
@keyframes meq-pop { from { transform: scale(0); } to { transform: scale(1); } }
.meq .meq-ty__ref { display: inline-block; margin-top: 14px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.1); letter-spacing: .08em; font-weight: 700; font-size: 14px; }
.meq .meq-ty__note { margin: 0; border-radius: 0; text-align: center; }
.meq .meq-ty__body { background: #fff; border: 1px solid var(--meq-line); border-top: 0; border-radius: 0 0 24px 24px; padding: 18px 28px 28px; }
.meq .meq-kv { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--meq-line); font-size: 15px; }
.meq .meq-kv span { color: var(--meq-muted); }
.meq .meq-kv b { color: var(--meq-p); text-align: right; }
.meq .meq-ty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }

/* ---------- My trainings / login ---------- */
.meq-my, .meq-login { margin: 0 0 2em; }
.meq .meq-my__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.meq .meq-my__head h3 { font-size: 24px; margin-bottom: 4px; }
.meq .meq-my__head p { color: var(--meq-muted); margin: 0; }
.meq .meq-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 12px; margin-bottom: 22px; }
.meq .meq-stats div { background: #fff; border: 1px solid var(--meq-line); border-radius: 16px; padding: 16px; }
.meq .meq-stats b { display: block; font-size: 26px; color: var(--meq-p); line-height: 1.1; }
.meq .meq-stats span { color: var(--meq-muted); font-size: 13px; font-weight: 600; }
.meq .meq-reg { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--meq-line); border-radius: 18px; background: #fff; margin-bottom: 12px; flex-wrap: wrap; }
.meq .meq-reg__date { width: 62px; text-align: center; border-radius: 14px; overflow: hidden; background: var(--meq-p-50); flex-shrink: 0; }
.meq .meq-reg__date span { display: block; background: var(--meq-p); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 0; letter-spacing: .08em; }
.meq .meq-reg__date b { display: block; font-size: 24px; color: var(--meq-p); padding: 4px 0; line-height: 1.2; }
.meq .meq-reg__main { flex: 1 1 260px; min-width: 0; }
.meq .meq-reg__main > b { display: block; color: var(--meq-p); }
.meq .meq-reg__main small { color: var(--meq-muted); }
.meq .meq-reg__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.meq .meq-reg__side { display: flex; align-items: center; gap: 14px; }
.meq .meq-login__card { max-width: 460px; background: #fff; border: 1px solid var(--meq-line); border-radius: 22px; padding: 30px; box-shadow: var(--meq-shadow); }
.meq .meq-login__card h3 { font-size: 22px; margin-bottom: 6px; }
.meq .meq-login__card > p { color: var(--meq-muted); }
.meq #loginform p { margin: 0 0 14px; }
.meq #loginform label { display: block; font-weight: 700; font-size: 14px; color: var(--meq-p); margin-bottom: 6px; }
.meq #loginform input[type=text], .meq #loginform input[type=password] { width: 100%; padding: 12px 14px; border: 1.5px solid var(--meq-line); border-radius: 12px; font-size: 15px; }
.meq #loginform .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.meq #loginform input[type=submit] { background: var(--meq-a); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font-weight: 700; cursor: pointer; font-size: 15px; }
.meq .meq-login__links { font-size: 14px; }
.meq .meq-login__note { font-size: 13px; color: var(--meq-muted); margin: 0; }

@media (max-width: 640px) {
    .meq .meq-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .meq .meq-pills::-webkit-scrollbar { display: none; }
    .meq .meq-pill { flex: 0 0 auto; }
    .meq .meq-select { flex: 1 1 140px; }
    .meq .meq-count { margin-left: 0; width: 100%; }
    .meq .meq-d__hero { padding: 26px 20px 90px; }
    .meq .meq-d__body { padding: 0 12px 20px; }
    .meq .meq-panel { padding: 20px; }
    .meq .meq-ty__body { padding: 12px 18px 22px; }
    .meq .meq-kv { flex-direction: column; gap: 2px; }
    .meq .meq-kv b { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .meq *, .meq-modal * { transition: none !important; animation: none !important; } }

/* ---------- Closed registration ---------- */
.meq .meq-chip--closed { background: #5b6b78; color: #fff; }
.meq .meq-date__full--closed { background: #5b6b78; }
.meq .meq-date.is-closed .meq-date__seats { color: var(--meq-muted); }
.meq .meq-notice--closed .meq-notice__ic { background: #eef1f4; color: #5b6b78; }

/* ---------- Never wider than the screen, whatever the theme does ---------- */
.meq-list, .meq-single, .meq-my, .meq-login, .meq-enquiry-wrap { max-width: 100%; min-width: 0; box-sizing: border-box; overflow-x: clip; }
.meq .meq-d, .meq .meq-d__main, .meq .meq-d__side, .meq .meq-panel, .meq .meq-card, .meq .meq-form, .meq .meq-field { min-width: 0; max-width: 100%; }
.meq .meq-field input, .meq .meq-field textarea, .meq .meq-search input, .meq .meq-select { min-width: 0 !important; max-width: 100%; }
.meq .meq-rich, .meq .meq-kv b, .meq .meq-bank__text, .meq .meq-d__lead, .meq .meq-card__sum, .meq .meq-card__title { overflow-wrap: anywhere; }
.meq .meq-rich img, .meq .meq-rich video, .meq .meq-rich iframe, .meq .meq-rich embed, .meq .meq-rich object { max-width: 100% !important; height: auto; }
.meq .meq-rich table { display: block; max-width: 100%; width: auto !important; overflow-x: auto; }
.meq .meq-rich pre { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }
.meq .meq-d__meta span, .meq .meq-d__cats .meq-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.meq .meq-card__meta span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
    .meq.alignwide, .meq.alignfull { margin-left: 0 !important; margin-right: 0 !important; width: auto !important; max-width: 100% !important; }
}
.meq input, .meq select, .meq textarea, .meq button { min-width: 0 !important; max-width: 100%; }
.meq input[type=radio], .meq input[type=checkbox] { width: auto; }
.meq .meq-check input { width: 19px !important; flex: 0 0 19px; }
.meq .meq-check span { min-width: 0; flex: 1; }
/* Wide layout: centred and capped at the theme's wide width, never negative margins */
.meq.alignwide { margin-left: auto !important; margin-right: auto !important; width: 100% !important; max-width: min(var(--wp--style--global--wide-size, 1200px), 100%) !important; }
