/* ============================================================
   EzyEd Schools Enquiry Form — main form styles
   Component: com_rep  |  View: schoolenquiry
   ============================================================ */
:root {
    --sef-green:        #16a34a;
    --sef-green-dark:   #15803d;
    --sef-green-light:  #f0fdf4;
    --sef-green-border: #bbf7d0;
    --sef-dark:         #0f172a;
    --sef-red:          #dc2626;
    --sef-card-border:  #e2e8f0;
    --sef-input-border: #cbd5e1;
    --sef-text:         #1e293b;
    --sef-muted:        #64748b;
    --sef-faint:        #94a3b8;
}

/* ---- Page wrapper ---- */
.sef-wrap {
    background: #f1f5f9;
    padding: 28px 0 56px;
    position: relative;
    left: 50%;
    right: 50%;
    width: 100vw;
    margin-left: -50vw;
    margin-right: -50vw;
}
.sef {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--sef-text);
    font-size: 15px;
    line-height: 1.55;
}

/* ---- Hero ---- */
.sef-hero {
    text-align: center;
    padding: 4px 0 22px;
}
.sef h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    color: var(--sef-dark);
    line-height: 1.2;
}
.sef-intro {
    font-size: 15px;
    color: var(--sef-muted);
    margin: 0;
    line-height: 1.7;
}

/* ---- Progress bar ---- */
.sef-progress {
    background: #fff;
    border: 1px solid var(--sef-card-border);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 2px;
}
.sef-prog-step {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    cursor: default;
}
.sef-prog-step.completed { cursor: pointer; }
.sef-prog-step.completed:hover { background: #f0fdf4; border-color: var(--sef-green-border); }
.sef-prog-step.active    { cursor: default; border-color: var(--sef-green); background: var(--sef-green-light); }
.sef-prog-line { flex: 0 0 16px; height: 1px; background: var(--sef-card-border); margin: 0 2px; }
.sef-prog-circle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}
.sef-prog-num   { display: block; }
.sef-prog-check { display: none; }
.sef-prog-step.future    .sef-prog-circle { background: #f1f5f9; color: var(--sef-faint); border: 1.5px solid var(--sef-card-border); }
.sef-prog-step.future    .sef-prog-title  { color: var(--sef-faint); }
.sef-prog-step.future    .sef-prog-sub    { color: #cbd5e1; }
.sef-prog-step.active    .sef-prog-circle { background: var(--sef-green); color: #fff; }
.sef-prog-step.active    .sef-prog-title  { color: var(--sef-dark); font-weight: 700; }
.sef-prog-step.active    .sef-prog-sub    { color: var(--sef-muted); }
.sef-prog-step.completed .sef-prog-circle { background: var(--sef-dark); color: #fff; }
.sef-prog-step.completed .sef-prog-num    { display: none; }
.sef-prog-step.completed .sef-prog-check  { display: block; }
.sef-prog-step.completed .sef-prog-title  { color: #475569; }
.sef-prog-step.completed .sef-prog-sub    { color: var(--sef-faint); }
.sef-prog-labels { min-width: 0; }
.sef-prog-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.sef-prog-sub   { font-size: 11px; color: var(--sef-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Body: main (left) + sidebar (right) ---- */
.sef-body {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 20px;
    align-items: start;
}
.sef-main { min-width: 0; }

/* ---- Step card ---- */
.sef-step-card {
    background: #fff;
    border: 1px solid var(--sef-card-border);
    border-radius: 12px;
    padding: 26px 28px 22px;
    box-shadow: 0 1px 8px rgba(15,23,42,0.05);
}
.sef-step-card-head { margin-bottom: 18px; }
.sef-step-card-head h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--sef-dark);
    margin: 0 0 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}
.sef-step-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--sef-green-light);
    color: var(--sef-green);
    flex-shrink: 0;
}
.sef-step-card-head p { margin: 0; font-size: 13px; color: var(--sef-muted); }
.sef-req { color: var(--sef-red); font-weight: 600; }
.sef-opt { font-weight: 400; color: var(--sef-faint); font-size: 12px; }

/* ---- Step 1: Goal cards ---- */
.sef-goal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}
.sef-goal-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1.5px solid var(--sef-card-border);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    margin: 0;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}
.sef-goal-card:hover { border-color: #94a3b8; }
.sef-goal-card:has(input:checked) { border-color: var(--sef-green); background: var(--sef-green-light); }
.sef-goal-icon-wrap {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 7px;
    background: var(--sef-green-light);
    border: 1px solid var(--sef-green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sef-green);
    flex-shrink: 0;
}
.sef-goal-body { flex: 1; min-width: 0; }
.sef-goal-title { display: block; font-size: 13px; font-weight: 700; color: var(--sef-dark); line-height: 1.35; }
.sef-goal-desc  { display: none; }
.sef-goal-cb { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.sef-goal-chk {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
    margin-top: 2px;
}
.sef-goal-card:has(input:checked) .sef-goal-chk { border-color: var(--sef-green); background: var(--sef-green); }
.sef-goal-chk svg { display: none; }
.sef-goal-card:has(input:checked) .sef-goal-chk svg { display: block; }

/* Trial notice */
.sef-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #2563eb;
    border-radius: 0 10px 10px 0;
    padding: 11px 14px;
    margin: 10px 0 0;
    font-size: 13px;
    color: #1e40af;
    line-height: 1.55;
    display: none;
}
.sef-notice.on { display: block; }
.sef-notice a { color: #1d4ed8; font-weight: 600; text-decoration: underline; }

/* ---- Primary Interest Type ---- */
.sef-pi-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}
.sef-pi-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--sef-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.sef-pi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.sef-pi-option { cursor: pointer; margin: 0; }
.sef-pi-option input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.sef-pi-option > span {
    display: block;
    padding: 10px 13px;
    border: 1.5px solid var(--sef-card-border);
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1.4;
    font-weight: 500;
}
.sef-pi-option > span:hover { border-color: #94a3b8; background: #f8fafc; }
.sef-pi-option:has(input:checked) > span { border-color: var(--sef-dark); background: var(--sef-dark); color: #fff; }

/* ---- Step 2: Contact fields ---- */
.sef-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.sef-row:last-of-type { margin-bottom: 0; }
.sef-col { flex: 1; min-width: 200px; }
.sef-col label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.sef-lbl-icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.sef-col input[type="text"],
.sef-col input[type="email"],
.sef-col input[type="tel"] {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 13px;
    font-size: 14px;
    border: 1px solid var(--sef-input-border);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--sef-dark);
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sef-col input[type="text"]::placeholder,
.sef-col input[type="email"]::placeholder,
.sef-col input[type="tel"]::placeholder { color: var(--sef-faint); }
.sef-col input:hover:not(:disabled)  { border-color: #94a3b8; }
.sef-col input:focus  { border-color: var(--sef-green); outline: none; box-shadow: 0 0 0 3px rgba(22,163,74,0.14); }
.sef-col input.sef-invalid { border-color: var(--sef-red); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

/* ---- Step 3: Course rows ---- */
.sef-course-rows { display: flex; flex-direction: column; gap: 12px; }
.sef-course-row {
    border: 1px solid var(--sef-card-border);
    border-radius: 10px;
    padding: 14px 16px 16px;
    background: #fafbfc;
}
.sef-cr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.sef-cr-num-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--sef-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.sef-cr-header-title { font-size: 13px; font-weight: 700; color: #334155; flex: 1; }
.sef-cr-remove-btn {
    font-size: 12px;
    color: var(--sef-muted);
    background: none;
    border: 1px solid var(--sef-card-border);
    border-radius: 6px;
    padding: 3px 10px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.5;
}
.sef-cr-remove-btn:hover:not(:disabled) { color: var(--sef-red); border-color: #fecaca; background: #fef2f2; }
.sef-cr-remove-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.sef-cr-remove-btn::-moz-focus-inner { border: 0; padding: 0; }

.sef-cr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.55fr;
    gap: 10px;
    align-items: end;
}
.sef-cr-col label { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 5px; }
.sef-cr-col select {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 30px 0 11px;
    font-size: 13px;
    border: 1px solid var(--sef-input-border);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--sef-dark);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 11px center;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sef-cr-col select:focus { border-color: var(--sef-green); outline: none; box-shadow: 0 0 0 3px rgba(22,163,74,0.14); }
.sef-cr-col select:hover:not(:disabled) { border-color: #94a3b8; }
.sef-cr-col select:disabled { background-color: #f1f5f9; color: var(--sef-faint); cursor: not-allowed; }

/* Slider */
.sef-cr-slider-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.sef-cr-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.sef-cr-slider-label { font-size: 12px; font-weight: 600; color: #334155; }
.sef-cr-slider-val   { font-size: 14px; font-weight: 700; color: var(--sef-green); }
.sef-cr-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--sef-green) 0%, var(--sef-green) var(--slider-pct, 4%), #e2e8f0 var(--slider-pct, 4%));
    outline: none;
    cursor: pointer;
    margin: 0;
    border: none;
    display: block;
    box-sizing: border-box;
}
.sef-cr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sef-green);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.22);
    cursor: pointer;
}
.sef-cr-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sef-green);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.22);
    cursor: pointer;
    box-sizing: border-box;
}
.sef-cr-slider-marks {
    position: relative;
    height: 14px;
    margin-top: 6px;
    font-size: 10px;
    color: var(--sef-faint);
}
.sef-cr-slider-marks span {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}
.sef-cr-slider-marks span:first-child { transform: translateX(0); }
.sef-cr-slider-marks span:last-child  { transform: translateX(-100%); }
.sef-add-subject-btn {
    width: 100%;
    padding: 13px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: transparent;
    color: var(--sef-green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
    box-sizing: border-box;
}
.sef-add-subject-btn:hover { border-color: var(--sef-green); background: var(--sef-green-light); }
.sef-add-subject-btn::-moz-focus-inner { border: 0; padding: 0; }

.sef-course-section-hidden { display: none !important; }

/* ---- Step 4: Review & Submit ---- */
.sef-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--sef-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.sef-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.sef-pill-option { cursor: pointer; margin: 0; }
.sef-pill-option input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.sef-pill-option > span {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1.5px solid var(--sef-card-border);
    border-radius: 24px;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    white-space: nowrap;
}
.sef-pill-option > span:hover { border-color: #94a3b8; }
.sef-pill-option:has(input:checked) > span { border-color: var(--sef-green); background: var(--sef-green); color: #fff; }

.sef-field-block { margin-bottom: 20px; }
.sef-field-block:last-of-type { margin-bottom: 0; }
.sef-field-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 7px; }
.sef-field-block textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    margin: 0;
    padding: 11px 13px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid var(--sef-input-border);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--sef-dark);
    background: #fff;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sef-field-block textarea::placeholder { color: var(--sef-faint); }
.sef-field-block textarea:hover { border-color: #94a3b8; }
.sef-field-block textarea:focus { border-color: var(--sef-green); outline: none; box-shadow: 0 0 0 3px rgba(22,163,74,0.14); }

/* Summary card */
.sef-summary-card {
    background: #17494d;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 18px 0 18px;
    color: #e2e8f0;
}
.sef-summary-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.sef-summary-title  { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: #4ade80; text-transform: uppercase; }
.sef-summary-school { font-size: 12px; color: rgba(255,255,255,0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.sef-summary-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.sef-summary-fl     { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 2px; }
.sef-summary-fv     { font-size: 13px; font-weight: 600; color: #fff; }
.sef-summary-courses-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); margin-bottom: 2px; margin-top: 6px; }

/* Consent */
.sef-consent {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1.5px solid var(--sef-green-border);
    border-radius: 10px;
    background: var(--sef-green-light);
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    line-height: 1.55;
    margin: 0;
}
.sef-consent input { width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; accent-color: var(--sef-green); cursor: pointer; }
.sef-consent a { color: var(--sef-green); font-weight: 600; }
.sef-consent.sef-invalid-box { border-color: var(--sef-red); background: #fef2f2; }

/* Validated group error outlines */
.sef-validated-group.sef-invalid-box > .sef-goal-grid,
.sef-validated-group.sef-invalid-box > .sef-pi-grid,
.sef-validated-group.sef-invalid-box > .sef-pill-group {
    outline: 2px solid var(--sef-red);
    outline-offset: 4px;
    border-radius: 8px;
}

/* Error messages */
.sef-err { display: none; color: var(--sef-red); font-size: 12px; line-height: 1.45; }
.sef-err.on { display: block; }
.sef-err-field { margin: 4px 0 0; }
.sef-err-group { margin: 10px 0 0; }

/* Other access text field */
.sef-other-row { margin-top: 12px; }
.sef-other-row input[type="text"] {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0 13px;
    font-size: 14px;
    border: 1px solid var(--sef-input-border);
    border-radius: 8px;
    box-sizing: border-box;
    color: var(--sef-dark);
    background: #fff;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.sef-other-row input:hover  { border-color: #94a3b8; }
.sef-other-row input:focus  { border-color: var(--sef-green); outline: none; box-shadow: 0 0 0 3px rgba(22,163,74,0.14); }
.sef-other-row input.sef-invalid { border-color: var(--sef-red); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

/* ---- Navigation buttons ---- */
.sef-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
    gap: 10px;
}
.sef-nav-row-end { justify-content: flex-end; }
.sef-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 0 18px;
    background: #fff;
    color: #475569;
    border: 1.5px solid var(--sef-card-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}
.sef-btn-back:hover { background: #f8fafc; border-color: #cbd5e1; }
.sef-btn-back::-moz-focus-inner { border: 0; padding: 0; }
.sef-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 0 24px;
    background: var(--sef-green);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: 0 2px 8px rgba(22,163,74,0.28);
    flex-shrink: 0;
}
.sef-btn-next:hover { background: var(--sef-green-dark); }
.sef-btn-next::-moz-focus-inner { border: 0; padding: 0; }
.sef-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 24px;
    background: var(--sef-dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}
.sef-btn-submit:hover:not(:disabled) { background: #1e293b; }
.sef-btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }
.sef-btn-submit::-moz-focus-inner { border: 0; padding: 0; }

/* ---- Combo (searchable course select) ---- */
.sef-combo { position: relative; }
.sef-combo-native {
    position: absolute !important; width: 1px !important; height: 1px !important;
    padding: 0 !important; margin: -1px !important; overflow: hidden !important;
    clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important;
}
.sef-combo-trigger {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; width: 100%; height: 40px; margin: 0; vertical-align: top;
    padding: 0 11px; font-size: 13px; font-family: inherit; text-align: left;
    color: var(--sef-dark); background: #fff; border: 1px solid var(--sef-input-border);
    border-radius: 8px; box-sizing: border-box; cursor: pointer;
    -webkit-appearance: none; appearance: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.sef-combo-trigger::-moz-focus-inner { border: 0; padding: 0; }
.sef-combo-trigger-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sef-combo-trigger.sef-combo-placeholder .sef-combo-trigger-text { color: var(--sef-faint); }
.sef-combo-trigger:hover:not(:disabled) { border-color: #94a3b8; }
.sef-combo-trigger:focus { outline: none; border-color: var(--sef-green); box-shadow: 0 0 0 3px rgba(22,163,74,0.14); }
.sef-combo.open .sef-combo-trigger { border-color: var(--sef-green); box-shadow: 0 0 0 3px rgba(22,163,74,0.14); }
.sef-combo-trigger:disabled { background-color: #f1f5f9; color: var(--sef-faint); cursor: not-allowed; }
.sef-combo-chevron {
    flex-shrink: 0; width: 9px; height: 9px;
    border-right: 2px solid var(--sef-muted); border-bottom: 2px solid var(--sef-muted);
    transform: rotate(45deg) translateY(-2px); transition: transform 0.15s;
}
.sef-combo.open .sef-combo-chevron { transform: rotate(-135deg) translateY(1px); }
.sef-combo-panel {
    position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 40;
    background: #fff; border: 1px solid #d1d9e0; border-radius: 10px;
    box-shadow: 0 10px 24px rgba(15,23,42,0.15); overflow: hidden;
}
.sef-combo-search-wrap { padding: 9px; border-bottom: 1px solid #e2e8f0; }
.sef-combo-search {
    width: 100%; height: 36px; margin: 0; padding: 0 11px; font-size: 13px;
    font-family: inherit; color: var(--sef-dark); background: #f8fafc;
    border: 1px solid var(--sef-input-border); border-radius: 6px; box-sizing: border-box;
}
.sef-combo-search:focus { outline: none; border-color: var(--sef-green); background: #fff; box-shadow: 0 0 0 3px rgba(22,163,74,0.12); }
.sef-combo-list { max-height: 210px; overflow-y: auto; padding: 5px; }
.sef-combo-option { padding: 8px 10px; font-size: 13px; color: #1e293b; border-radius: 6px; cursor: pointer; }
.sef-combo-option:hover, .sef-combo-option.sef-combo-active { background: var(--sef-green-light); color: #1a2e1f; }
.sef-combo-option.sef-combo-selected { font-weight: 600; color: var(--sef-green); }
.sef-combo-empty { padding: 12px 10px; font-size: 13px; color: var(--sef-faint); text-align: center; }

/* ---- Sidebar ---- */
.sef-sidebar {
    background: #17494d;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    position: sticky;
    top: 20px;
}
.sef-sla-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sef-sla-label { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--sef-faint); }
.sef-sla-badge { background: var(--sef-green); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; white-space: nowrap; }
.sef-sb-section { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sef-sb-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sef-sb-label { font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 7px; }
.sef-sb-chips { display: flex; flex-wrap: wrap; gap: 5px; min-height: 22px; }
.sef-sb-chip { background: rgba(255,255,255,0.09); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.12); border-radius: 5px; padding: 2px 7px; font-size: 11px; }
.sef-sb-empty { color: rgba(255,255,255,0.45); font-size: 11px; font-style: italic; }
.sef-sb-subjects-list { list-style: none; margin: 0; padding: 0; min-height: 18px; }
.sef-sb-subjects-list li { font-size: 11px; color: #cbd5e1; padding: 3px 0; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.sef-sb-subj-left  { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1; }
.sef-sb-subj-name  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sef-sb-subj-count { color: #4ade80; font-weight: 700; flex-shrink: 0; text-align: right; }
.sef-sb-subj-product { font-size: 9px; font-weight: 600; color: #fff; background: rgba(255,255,255,0.15); border-radius: 3px; padding: 1px 5px; white-space: nowrap; flex-shrink: 0; }
.sef-sb-total-type  { font-size: 10px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 6px; margin-bottom: 1px; }
.sef-sb-total-count { font-size: 20px; font-weight: 800; color: #4ade80; line-height: 1.2; }
.sef-sb-trust {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 9px 11px;
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 11px;
    color: var(--sef-faint);
    line-height: 1.5;
}
.sef-sb-trust-icon { color: #4ade80; flex-shrink: 0; margin-top: 1px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .sef-body { grid-template-columns: 1fr; }
    .sef-sidebar { position: static; order: -1; }
    .sef-sla-row { flex-wrap: wrap; }
    .sef-sb-total-count { font-size: 16px; }
}
@media (max-width: 767px) {
    .sef { padding: 0 14px; }
    .sef h1 { font-size: 22px; }
    .sef-progress { display: none; }
    .sef-sidebar  { display: none; }
    .sef-step-card { padding: 18px 14px; }
    .sef-goal-grid, .sef-pi-grid { grid-template-columns: 1fr; }
    .sef-row { flex-direction: column; gap: 12px; }
    .sef-cr-grid { grid-template-columns: 1fr 1fr; row-gap: 10px; }
    .sef-cr-col-course { grid-column: 1 / -1; }
    .sef-pill-group { gap: 7px; }
    .sef-summary-grid { grid-template-columns: 1fr; }
    .sef-nav-row { flex-wrap: wrap; }
    .sef-btn-next, .sef-btn-submit { width: 100%; justify-content: center; }
}
