/**
 * AMOM Extra Program Fields — CSS
 * Add to your existing plugin CSS file (public/css/amom-apply-public.css or similar)
 */

/* ─── Program Page Wrapper ──────────────────────────── */
.amom-prog-page { font-family: inherit; }

.amom-prog-row  { width: 100%; }
.amom-row-cols  { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; }
.amom-prog-col  { min-width: 0; }

@media (max-width: 768px) {
    .amom-row-cols { flex-direction: column; }
    .amom-prog-col { flex: 1 1 100% !important; }
}

.amom-prog-container {
    max-width: 100%;
    padding: 40px 32px;
}

.amom-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0e8d8;
}

/* ─── Hero ──────────────────────────────────────────── */
.amom-prog-hero {
    background-size: cover;
    background-position: center;
    min-height: 400px;
    position: relative;
}
.amom-hero-overlay {
    background: linear-gradient(135deg, rgba(10,40,20,.85) 0%, rgba(26,80,40,.6) 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 60px 32px;
}
.amom-hero-inner { max-width: 700px; color: #fff; }
.amom-hero-code  { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #a8d8b8; font-weight: 700; }
.amom-hero-title { font-size: 36px; font-weight: 800; margin: 10px 0 18px; line-height: 1.2; }
.amom-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.amom-hero-pills span {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.amom-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.amom-btn-primary {
    background: #c8a84b;
    color: #1a1a00;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
    transition: background .2s, transform .15s;
}
.amom-btn-primary:hover { background: #d4b85a; transform: translateY(-1px); }
.amom-btn-ghost {
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: border-color .2s;
}
.amom-btn-ghost:hover { border-color: #fff; }

/* ─── Description ───────────────────────────────────── */
.amom-section-description .amom-prog-container { background: #fff; }
.amom-prog-desc-body { line-height: 1.8; color: #333; font-size: 15px; }
.amom-prog-desc-body p { margin-bottom: 1em; }

/* ─── Why Choose ────────────────────────────────────── */
.amom-section-why .amom-prog-container { background: #fdf8f0; }
.amom-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}
.amom-why-card {
    background: #fff;
    border: 1px solid #e8ddd0;
    border-radius: 10px;
    padding: 18px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}
.amom-why-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.amom-why-icon { font-size: 32px; flex-shrink: 0; }
.amom-why-text strong { display: block; font-size: 14px; font-weight: 700; color: #1a1a1a; margin-bottom: 4px; }
.amom-why-text p { margin: 0; font-size: 13px; color: #666; line-height: 1.5; }

/* ─── Curriculum ────────────────────────────────────── */
.amom-section-curriculum .amom-prog-container { background: #fff; }
.amom-curriculum-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.amom-curriculum-list li {
    padding: 12px 16px;
    background: #f7f5f0;
    border-radius: 6px;
    border-left: 4px solid #1a7a40;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.amom-curriculum-list li strong { color: #1a5030; }

/* ─── Capacity ──────────────────────────────────────── */
.amom-section-capacity .amom-prog-container {
    background: #f4fff8;
    border-left: 4px solid #1a7a40;
}
.amom-seat-bar-wrap { margin-bottom: 16px; }
.amom-seat-bar {
    height: 10px; background: #e0e0e0; border-radius: 10px; overflow: hidden; margin-bottom: 6px;
}
.amom-seat-fill { height: 100%; border-radius: 10px; transition: width .6s; }
.amom-seat-open    .amom-seat-fill,
.amom-seat-fill.amom-seat-open    { background: #1a7a40; }
.amom-seat-limited .amom-seat-fill,
.amom-seat-fill.amom-seat-limited { background: #e67e22; }
.amom-seat-full    .amom-seat-fill,
.amom-seat-fill.amom-seat-full    { background: #c0392b; }
.amom-seat-label { font-size: 13px; font-weight: 700; }
.amom-seat-label.amom-seat-open    { color: #1a7a40; }
.amom-seat-label.amom-seat-limited { color: #e67e22; }
.amom-seat-label.amom-seat-full    { color: #c0392b; }

.amom-cap-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid #e0f0e8;
    font-size: 14px; color: #333;
}
.amom-cap-row strong { color: #1a1a1a; }
.amom-cap-starts { margin-top: 16px; }
.amom-cap-starts-label { font-size: 12px; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.amom-starts-list { display: flex; flex-wrap: wrap; gap: 8px; }
.amom-start-pill {
    background: #fff;
    border: 2px solid #1a7a40;
    color: #1a5030;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}
.amom-start-pill:hover { background: #1a7a40; color: #fff; }

/* ─── Career Outcomes ───────────────────────────────── */
.amom-section-careers .amom-prog-container { background: #fff; }
.amom-careers-intro { color: #555; font-size: 15px; line-height: 1.7; margin-bottom: 24px; }
.amom-careers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.amom-career-card {
    border: 1px solid #e8ddd0;
    border-radius: 10px;
    padding: 20px 14px;
    text-align: center;
    background: #fdf8f0;
    transition: box-shadow .2s, transform .15s;
    cursor: default;
}
.amom-career-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-2px); }
.amom-career-icon  { font-size: 34px; margin-bottom: 8px; }
.amom-career-label { font-size: 13px; font-weight: 700; color: #1a1a1a; line-height: 1.4; }

/* ─── Schedule ──────────────────────────────────────── */
.amom-section-schedule .amom-prog-container { background: #f4f7f4; }
.amom-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.amom-sch-block {
    background: #fff;
    border: 1px solid #d4ddd4;
    border-radius: 8px;
    padding: 16px;
}
.amom-sch-block.is-inactive { opacity: .5; }
.amom-sch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.amom-sch-name   { font-weight: 700; font-size: 14px; color: #1a1a1a; }
.amom-sch-badge  { background: #1a7a40; color: #fff; font-size: 10px; padding: 2px 8px; border-radius: 20px; }
.amom-sch-table  { width: 100%; border-collapse: collapse; font-size: 13px; }
.amom-sch-table tr:not(:last-child) td { border-bottom: 1px solid #f0f0f0; }
.amom-sch-day  { padding: 5px 0; font-weight: 600; color: #555; width: 40px; }
.amom-sch-time { padding: 5px 0; color: #1a5030; }
.amom-sch-dur  { margin-top: 10px; font-size: 12px; color: #888; font-style: italic; }

/* ─── Gallery ───────────────────────────────────────── */
.amom-section-gallery .amom-prog-container { background: #fff; }
.amom-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.amom-gallery-item img {
    width: 100%; height: 180px;
    object-fit: cover; border-radius: 6px;
    display: block;
    transition: transform .3s;
}
.amom-gallery-item:hover img { transform: scale(1.02); }

/* ─── CTA ───────────────────────────────────────────── */
.amom-section-cta .amom-prog-container {
    background: linear-gradient(135deg, #1a3a2a, #2d6040);
    color: #fff;
}
.amom-cta-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.amom-section-cta h2 { color: #fff; margin: 0 0 8px; font-size: 24px; }
.amom-section-cta p  { color: #a8d8b8; margin: 0; font-size: 14px; line-height: 1.6; }
.amom-cta-actions    { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════
   AMOM PUBLIC CLASSES — TABLE LAYOUT  (v2.1.6)
   ═══════════════════════════════════════════════════════ */

.amom-wrap { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; max-width: 1200px; margin: 0 auto; padding: 0 16px 60px; }

/* ── Pricebar ─────────────────────────────────────────── */
.amom-pricebar {
    display: flex; flex-wrap: wrap; justify-content: space-between;
    align-items: center; gap: 10px;
    background: linear-gradient(135deg, #6B0F0F, #8B1A1A);
    color: #f0d060; padding: 12px 20px; border-radius: 10px;
    margin-bottom: 18px; font-size: 13px; font-weight: 600;
}
.amom-ppill {
    background: rgba(240,208,96,.15); border: 1px solid rgba(240,208,96,.3);
    padding: 5px 14px; border-radius: 20px; font-size: 12px; white-space: nowrap;
}

/* ── Toolbar ──────────────────────────────────────────── */
.amom-toolbar {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 10px; margin-bottom: 14px;
}
.amom-filters { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.amom-tab {
    background: #f4f4f4; border: 1.5px solid #ddd; color: #444;
    padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .15s; white-space: nowrap;
}
.amom-tab:hover  { border-color: #6B0F0F; color: #6B0F0F; background: #fdf6f0; }
.amom-tab.active { background: #6B0F0F; border-color: #6B0F0F; color: #f0d060; }

.amom-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.amom-avail-filter {
    font-size: 12px; padding: 6px 10px; border: 1.5px solid #ddd;
    border-radius: 6px; background: #fff; color: #444; cursor: pointer;
    height: 34px;
}
.amom-search-wrap { position: relative; }
.amom-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; }
.amom-search {
    padding: 6px 12px 6px 32px; border: 1.5px solid #ddd; border-radius: 6px;
    font-size: 13px; width: 200px; height: 34px; box-sizing: border-box; transition: border-color .15s;
}
.amom-search:focus { outline: none; border-color: #6B0F0F; }
.amom-count { font-size: 12px; color: #888; font-weight: 600; white-space: nowrap; }

/* ── Table ────────────────────────────────────────────── */
.amom-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #e8e0d8; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.amom-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.amom-table thead th {
    background: #6B0F0F; color: #f0d060; font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: .04em; padding: 11px 14px;
    text-align: left; white-space: nowrap;
}
.amom-table thead th:first-child { border-radius: 10px 0 0 0; }
.amom-table thead th:last-child  { border-radius: 0 10px 0 0; }
.amom-table tbody tr { border-bottom: 1px solid #f0ece6; transition: background .1s; }
.amom-table tbody tr:last-child  { border-bottom: none; }
.amom-table tbody tr:hover       { background: #fdf9f5; }
.amom-table td { padding: 12px 14px; vertical-align: middle; }

/* Column sizing */
.col-code  { width: 90px; }
.col-name  { min-width: 180px; }
.col-cat   { width: 120px; color: #666; }
.col-ins   { width: 130px; color: #555; }
.col-hrs   { width: 70px; text-align: center; }
.col-del   { width: 110px; }
.col-av    { width: 90px; text-align: center; }
.col-price { width: 110px; }
.col-act   { width: 90px; text-align: right; }

/* Code + CE badge */
.amom-code { font-family: monospace; font-size: 13px; font-weight: 700; color: #6B0F0F; }
.amom-ce-badge { background: #1a7a40; color: #fff; font-size: 9px; font-weight: 800; padding: 1px 5px; border-radius: 3px; margin-left: 4px; vertical-align: middle; letter-spacing: .03em; }

/* Row name */
.amom-row-name { font-weight: 700; color: #1a1a1a; line-height: 1.3; margin-bottom: 2px; }
.amom-row-desc { font-size: 11px; color: #888; line-height: 1.5; }

/* Hours pill */
.amom-hrs-pill { background: #f0f9ff; color: #1d4ed8; border: 1px solid #bfdbfe; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; display: inline-block; }
.amom-sess-sub { font-size: 10px; color: #aaa; margin-top: 2px; }

/* Delivery */
.amom-del-label { font-size: 11px; color: #666; margin-left: 4px; }

/* Availability badges */
.amom-avail { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.amom-avail-open    { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.amom-avail-limited { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.amom-avail-full    { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* Price */
.amom-pval-sm { font-size: 15px; font-weight: 800; color: #1a1a1a; }
.amom-prange  { font-size: 12px; color: #888; font-weight: 600; }
.amom-psub    { font-size: 11px; color: #aaa; margin-top: 2px; }

/* Book button */
.amom-bookbtn {
    background: #6B0F0F; color: #f0d060; border: none; padding: 8px 14px;
    border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer;
    transition: background .15s, transform .1s; white-space: nowrap;
}
.amom-bookbtn:hover       { background: #8B1A1A; transform: translateY(-1px); }
.amom-bookbtn-wait        { background: #64748b; color: #fff; }
.amom-bookbtn-wait:hover  { background: #475569; }

/* No results */
.amom-no-results { text-align: center; padding: 40px; color: #888; font-size: 14px; }
.amom-no-results a { color: #6B0F0F; font-weight: 600; }

/* Empty state inside table */
.amom-empty { text-align: center; padding: 40px; color: #888; }

/* ── Booking Modal (preserved from card layout) ─────── */
.amom-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55);
    z-index: 99999; align-items: center; justify-content: center;
}
.amom-overlay.active { display: flex; }
.amom-modal {
    background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
    max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.3);
    position: relative; animation: amomSlideUp .25s ease;
}
@keyframes amomSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.amom-mhead {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 20px 24px 16px; border-bottom: 1px solid #f0ece6; position: sticky; top: 0; background: #fff; z-index: 1;
}
.amom-mcode  { font-size: 11px; font-weight: 700; color: #6B0F0F; letter-spacing: .05em; text-transform: uppercase; }
.amom-mtitle { font-size: 17px; font-weight: 800; color: #1a1a1a; margin-top: 2px; }
.amom-mclose { background: none; border: none; font-size: 20px; cursor: pointer; color: #888; padding: 4px 8px; border-radius: 6px; }
.amom-mclose:hover { background: #f4f4f4; }
.amom-mbody { padding: 20px 24px; }
.amom-step-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6B0F0F; margin-bottom: 18px; }
.amom-section { margin-bottom: 20px; }
.amom-slabel  { font-size: 12px; font-weight: 700; color: #444; margin-bottom: 10px; }
.amom-delivery-opts { display: flex; gap: 10px; }
.amom-dopt {
    flex: 1; padding: 12px; border: 2px solid #e8e0d8; border-radius: 10px;
    background: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.amom-dopt.active, .amom-dopt:hover { border-color: #6B0F0F; background: #fdf6f0; color: #6B0F0F; }
.amom-sess-counter { font-size: 12px; color: #888; margin-bottom: 10px; }
.amom-counter-note { color: #bbb; }
.amom-slots { display: flex; flex-direction: column; gap: 8px; }
.amom-slot {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border: 2px solid #e8e0d8; border-radius: 10px; cursor: pointer; transition: all .15s;
    background: #fff;
}
.amom-slot:hover   { border-color: #6B0F0F; background: #fdf6f0; }
.amom-slot.checked { border-color: #1a7a40; background: #f0fdf4; }
.amom-slot-cb   { width: 18px; height: 18px; accent-color: #1a7a40; cursor: pointer; }
.amom-slot-lbl  { flex: 1; font-size: 13px; font-weight: 600; color: #1a1a1a; }
.amom-slot-price { font-size: 13px; font-weight: 700; color: #6B0F0F; }
.amom-modal-footer { padding: 16px 24px; border-top: 1px solid #f0ece6; position: sticky; bottom: 0; background: #fff; }
.amom-next-btn {
    width: 100%; padding: 14px; background: #6B0F0F; color: #f0d060; border: none;
    border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.amom-next-btn:hover:not(:disabled) { background: #8B1A1A; }
.amom-next-btn:disabled { opacity: .4; cursor: not-allowed; }
.amom-summary-mini { font-size: 13px; color: #444; background: #f9f5f0; padding: 10px 14px; border-radius: 8px; }
.amom-booking-recap { background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: #166534; margin-bottom: 16px; }
.amom-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.amom-fg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.amom-fg label { font-size: 11px; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: .04em; }
.amom-fg input { padding: 10px 12px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 14px; transition: border-color .15s; }
.amom-fg input:focus { outline: none; border-color: #6B0F0F; }
.amom-notice { background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 10px 14px; font-size: 12px; color: #92400e; margin-bottom: 14px; }
.amom-submit-btn {
    width: 100%; padding: 14px; background: linear-gradient(135deg,#6B0F0F,#8B1A1A); color: #f0d060;
    border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: opacity .15s; margin-bottom: 10px;
}
.amom-submit-btn:hover { opacity: .9; }
.amom-secure { text-align: center; font-size: 11px; color: #aaa; }
.amom-back-btn { font-size: 13px; font-weight: 600; color: #6B0F0F; cursor: pointer; background: none; border: none; padding: 4px 8px; border-radius: 6px; }
.amom-back-btn:hover { background: #fdf6f0; }
.amom-success-body { padding: 40px 32px; text-align: center; }
.amom-success-icon { width: 72px; height: 72px; background: linear-gradient(135deg,#1a7a40,#15803d); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; margin: 0 auto 24px; }
.amom-success-body h3 { font-size: 24px; color: #1a1a1a; margin: 0 0 14px; }
.amom-success-body p  { font-size: 14px; color: #555; margin: 0 0 10px; line-height: 1.6; }
.amom-contact-note { font-size: 12px; color: #888; }
.amom-done-btn { background: #6B0F0F; color: #f0d060; border: none; padding: 12px 36px; border-radius: 50px; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 6px; }

@media (max-width: 768px) {
    .amom-toolbar { flex-direction: column; align-items: stretch; }
    .amom-toolbar-right { justify-content: space-between; }
    .amom-search { width: 100%; }
    .col-ins, .col-cat, .col-del, .col-sess-sub { display: none; }
    .amom-row-cols { flex-direction: column !important; }
    .amom-prog-col { flex: 1 1 100% !important; }
}
