/*
 * Forms, inputs and buttons for pages on the user layout (body.lh-app).
 * Restyles Semantic UI and Bootstrap controls to the LY HAW design without changing their markup or scripts.
 * Sizes follow the site type scale: inputs 16px, labels and buttons 14–15px.
 */

/* ---------- Page and card ---------- */
.lh-form-page { background: var(--lh-cream); padding: 48px 0 72px; min-height: calc(100vh - 380px); }
.lh-form-page, .lh-form-page *:not(.fa):not(.icon):not(.mce-ico) { font-family: 'Inter', 'KantumruyPro', -apple-system, 'Segoe UI', Roboto, sans-serif; }
.lh-form-page a { color: var(--lh-gold-dark) !important; }
.lh-form-page a:hover { color: var(--lh-ink) !important; }
.lh-form-card {
    background: #fff; border: 1px solid var(--lh-line); border-radius: 16px;
    box-shadow: 0 18px 40px rgba(20, 33, 61, .06); padding: 36px 40px;
}
.lh-form-card + .lh-form-card { margin-top: 20px; }
.lh-form-card-sm { max-width: 480px; margin: 0 auto; }
.lh-form-card-md { max-width: 760px; margin: 0 auto; }
@media (max-width: 575px) { .lh-form-card { padding: 26px 20px; border-radius: 14px; } .lh-form-page { padding: 28px 0 48px; } }

.lh-form-head { text-align: center; margin-bottom: 26px; }
.lh-form-head .lh-form-icon {
    width: 54px; height: 54px; border-radius: 14px; margin: 0 auto 14px;
    background: var(--lh-gold-soft); color: var(--lh-gold-dark); display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.lh-form-head h1 { font-size: 26px !important; line-height: 34px !important; font-weight: 700; color: var(--lh-ink); margin: 0 0 6px; letter-spacing: -.3px; }
.lh-form-head p { color: var(--lh-muted); font-size: 15px; margin: 0; }
.lh-form-head-left { text-align: left; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.lh-form-head-left h1 { font-size: 30px !important; line-height: 38px !important; }

.lh-form-section { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; }
.lh-form-section h2 { font-size: 18px !important; line-height: 26px !important; margin: 0; color: var(--lh-ink); font-weight: 700; }
.lh-form-section p { margin: 2px 0 0; color: var(--lh-muted); font-size: 13.5px; }
.lh-step { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--lh-navy); color: #E0B53A; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }

.lh-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.lh-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lh-form-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lh-form-grid .lh-span-2 { grid-column: span 2; }
.lh-form-grid .lh-span-all { grid-column: 1 / -1; }
@media (max-width: 991px) { .lh-form-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lh-form-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .lh-form-grid, .lh-form-grid-3, .lh-form-grid-4 { grid-template-columns: minmax(0, 1fr); } .lh-form-grid .lh-span-2 { grid-column: auto; } }
.lh-form-grid > .field, .lh-form-grid > div { margin: 0 !important; min-width: 0; }

.lh-form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.lh-form-actions-end { justify-content: flex-end; }
.lh-form-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--lh-line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--lh-muted); }
.lh-form-foot a { font-weight: 600; }
.lh-hint { display: block; color: var(--lh-muted); font-size: 12.5px; margin-top: 6px; line-height: 18px; }
.lh-req { color: #D64545; margin-left: 2px; }
.lh-field-error { display: block; color: #C53030; font-size: 13px; margin-top: 6px; }
.lh-field-error[hidden] { display: none; }
.lh-app .form-control.is-invalid, .lh-app .form-control.is-invalid:focus,
.lh-app .ui.form input.is-invalid, .lh-app .ui.form input.is-invalid:focus { border-color: #C53030 !important; box-shadow: 0 0 0 3px rgba(197, 48, 48, .12) !important; }

/* ---------- Labels ---------- */
.lh-app .ui.form .field > label,
.lh-app .lh-label,
.lh-app .form-group > label,
.lh-app .ui.form .field > p:first-child {
    display: block; font-size: 14px !important; line-height: 20px; font-weight: 600 !important;
    color: var(--lh-ink) !important; margin: 0 0 7px !important; text-transform: none;
}

/* ---------- Text inputs, textareas, Bootstrap controls ---------- */
.lh-app .ui.form input:not([type]),
.lh-app .ui.form input[type=text], .lh-app .ui.form input[type=email], .lh-app .ui.form input[type=password],
.lh-app .ui.form input[type=number], .lh-app .ui.form input[type=tel], .lh-app .ui.form input[type=url],
.lh-app .ui.form input[type=date], .lh-app .ui.form input[type=search],
.lh-app .ui.input > input,
.lh-app .ui.form textarea,
.lh-app .form-control,
.lh-app .lh-input {
    width: 100%; min-height: 48px; padding: 12px 15px !important; border: 1px solid #DCD6C8 !important; border-radius: 10px !important;
    background: #fff !important; color: var(--lh-ink) !important; font-size: 16px !important; line-height: 22px !important;
    box-shadow: none !important; transition: border-color .15s, box-shadow .15s; outline: none;
}
.lh-app .ui.form textarea { min-height: 96px; resize: vertical; }
.lh-app .ui.form input:hover, .lh-app .ui.input > input:hover, .lh-app .ui.form textarea:hover, .lh-app .form-control:hover { border-color: #C9BFA6 !important; }
.lh-app .ui.form input:focus, .lh-app .ui.input > input:focus, .lh-app .ui.form textarea:focus, .lh-app .form-control:focus, .lh-app .lh-input:focus {
    border-color: var(--lh-gold) !important; box-shadow: 0 0 0 3px rgba(196, 154, 12, .18) !important;
}
.lh-app .ui.form input::placeholder, .lh-app .ui.input > input::placeholder, .lh-app .ui.form textarea::placeholder, .lh-app .form-control::placeholder { color: #9AA1AD !important; opacity: 1; }
.lh-app .ui.form input:disabled, .lh-app .ui.input > input:disabled, .lh-app .form-control:disabled {
    background: #F4F2EC !important; color: var(--lh-muted) !important; cursor: not-allowed; opacity: 1;
}
.lh-app .ui.input { width: 100%; }
.lh-app .ui.left.icon.input > input { padding-left: 44px !important; }
.lh-app .ui.icon.input > i.icon { color: var(--lh-gold) !important; opacity: 1 !important; width: 44px; }

/* Error state (Semantic form validation adds .field.error) */
.lh-app .ui.form .field.error input:not([type=checkbox]), .lh-app .ui.form .field.error textarea,
.lh-app .ui.form .field.error .ui.selection.dropdown, .lh-app .ui.form .field.error.selection.dropdown {
    border-color: #E07070 !important; background: #FFF7F7 !important; box-shadow: none !important;
}
.lh-app .ui.form .field.error > label, .lh-app .ui.form .field.error > p:first-child { color: #C53030 !important; }

/* ---------- Dropdowns (Semantic UI selection) ---------- */
.lh-app .ui.selection.dropdown {
    min-height: 48px; padding: 13px 40px 13px 15px !important; border: 1px solid #DCD6C8 !important; border-radius: 10px !important;
    background: #fff !important; box-shadow: none !important; font-size: 16px !important; line-height: 20px; color: var(--lh-ink);
}
.lh-app .ui.search.selection.dropdown > input.search { padding: 13px 40px 13px 15px !important; font-size: 16px !important; min-height: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
.lh-app .ui.selection.dropdown:hover { border-color: #C9BFA6 !important; }
.lh-app .ui.selection.active.dropdown, .lh-app .ui.selection.dropdown:focus, .lh-app .ui.selection.visible.dropdown {
    border-color: var(--lh-gold) !important; box-shadow: 0 0 0 3px rgba(196, 154, 12, .18) !important;
}
.lh-app .ui.selection.dropdown > .dropdown.icon { top: 50% !important; transform: translateY(-50%); margin: 0 !important; padding: 0 !important; right: 14px !important; color: var(--lh-gold-dark); opacity: 1; }
.lh-app .ui.selection.dropdown > .text { color: var(--lh-ink); }
.lh-app .ui.selection.dropdown > .default.text, .lh-app .ui.dropdown:not(.button) > .default.text { color: #9AA1AD !important; }
.lh-app .ui.selection.dropdown .menu {
    border: 1px solid var(--lh-gold) !important; border-top-width: 1px !important; border-radius: 0 0 10px 10px !important;
    box-shadow: 0 12px 28px rgba(20, 33, 61, .12) !important; margin: 0 -1px; min-width: calc(100% + 2px); width: calc(100% + 2px);
}
.lh-app .ui.selection.active.dropdown.upward .menu { border-radius: 10px 10px 0 0 !important; }
.lh-app .ui.selection.dropdown .menu > .item { padding: 11px 15px !important; font-size: 15px; border-top: 1px solid #F1EDE3; color: var(--lh-text); }
.lh-app .ui.dropdown .menu > .item:hover { background: var(--lh-gold-soft) !important; color: var(--lh-ink) !important; }
.lh-app .ui.dropdown .menu > .active.item, .lh-app .ui.dropdown .menu > .selected.item { background: #FFF8E6 !important; color: var(--lh-gold-dark) !important; font-weight: 600 !important; }
.lh-app .ui.multiple.dropdown { padding-top: 8px !important; padding-bottom: 8px !important; }
.lh-app .ui.multiple.dropdown > .label {
    background: var(--lh-gold-soft) !important; color: var(--lh-gold-dark) !important; border-radius: 6px !important;
    box-shadow: none !important; font-weight: 600; font-size: 13px; padding: 6px 10px; margin: 3px 4px 3px 0;
}
.lh-app .ui.multiple.search.dropdown > input.search { padding: 6px 0 !important; margin: 3px 0 !important; }

/* Calendar popup (Semantic UI calendar module) */
.lh-app .ui.calendar .ui.popup { border-radius: 12px; border-color: var(--lh-line); box-shadow: 0 12px 28px rgba(20, 33, 61, .12); }
.lh-app .ui.calendar .ui.table tr td.active, .lh-app .ui.calendar .ui.table tr td.range { background: var(--lh-gold) !important; color: #fff !important; }
.lh-app .ui.calendar .ui.table tr .link:hover { background: var(--lh-gold-soft) !important; }

/* ---------- File input ---------- */
.lh-app input[type=file] { font-size: 14px; color: var(--lh-muted); max-width: 100%; }
.lh-app input[type=file]::file-selector-button,
.lh-app input[type=file]::-webkit-file-upload-button {
    border: 1px solid #DCD6C8; background: #fff; color: var(--lh-ink); font-weight: 600; font-family: inherit;
    padding: 10px 16px; border-radius: 8px; margin-right: 12px; cursor: pointer; transition: border-color .15s;
}
.lh-app input[type=file]:hover::file-selector-button { border-color: var(--lh-gold); }

/* ---------- Checkbox ---------- */
.lh-app input[type=checkbox] { accent-color: var(--lh-gold); width: 16px; height: 16px; vertical-align: middle; }

/* ---------- Buttons ---------- */
.lh-app .ui.button {
    font-weight: 600 !important; font-size: 15px !important; line-height: 20px !important; border-radius: 10px !important;
    padding: 13px 24px !important; min-height: 46px; box-shadow: none !important; text-shadow: none !important;
    transition: background-color .15s, border-color .15s, color .15s, transform .1s; margin: 0;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; letter-spacing: 0;
}
.lh-app .ui.button:active { transform: translateY(1px); }
.lh-app .ui.button:focus-visible { outline: 3px solid rgba(196, 154, 12, .35); outline-offset: 2px; }
.lh-app .ui.fluid.button { display: flex; width: 100%; }
.lh-app .ui.button > .icon:not(.button) { margin: 0 !important; height: auto; opacity: 1; }

/* Default (grey) button → white outline */
.lh-app .ui.button:not(.teal):not(.orange):not(.green):not(.primary):not(.positive):not(.blue):not(.facebook):not(.red):not(.negative):not(.basic) {
    background: #fff !important; color: var(--lh-ink) !important; border: 1px solid #DCD6C8 !important;
}
.lh-app .ui.button:not(.teal):not(.orange):not(.green):not(.primary):not(.positive):not(.blue):not(.facebook):not(.red):not(.negative):not(.basic):hover {
    border-color: var(--lh-gold) !important; color: var(--lh-gold-dark) !important;
}

/* Main action → gold */
.lh-app .ui.teal.button, .lh-app .ui.orange.button, .lh-app .ui.green.button,
.lh-app .ui.primary.button, .lh-app .ui.positive.button {
    background: var(--lh-gold) !important; color: #fff !important; border: 1px solid var(--lh-gold) !important;
}
.lh-app .ui.teal.button:hover, .lh-app .ui.orange.button:hover, .lh-app .ui.green.button:hover,
.lh-app .ui.primary.button:hover, .lh-app .ui.positive.button:hover { background: var(--lh-gold-dark) !important; border-color: var(--lh-gold-dark) !important; }

/* Secondary → navy */
.lh-app .ui.blue.button, .lh-app .ui.facebook.button { background: var(--lh-navy) !important; color: #fff !important; border: 1px solid var(--lh-navy) !important; }
.lh-app .ui.blue.button:hover, .lh-app .ui.facebook.button:hover { background: #0B172D !important; }

/* Danger */
.lh-app .ui.red.button, .lh-app .ui.negative.button { background: #fff !important; color: #C53030 !important; border: 1px solid #F0C4C4 !important; }
.lh-app .ui.red.button:hover, .lh-app .ui.negative.button:hover { background: #FFF5F5 !important; border-color: #C53030 !important; }

/* Basic → outline in its colour */
.lh-app .ui.basic.button { background: #fff !important; color: var(--lh-ink) !important; border: 1px solid #DCD6C8 !important; }
.lh-app .ui.basic.button:hover { border-color: var(--lh-gold) !important; color: var(--lh-gold-dark) !important; }

/* Sizes */
.lh-app .ui.mini.button, .lh-app .ui.tiny.button { padding: 7px 14px !important; min-height: 34px; font-size: 13px !important; border-radius: 8px !important; }
.lh-app .ui.small.button { padding: 9px 16px !important; min-height: 38px; font-size: 14px !important; }
.lh-app .ui.big.button, .lh-app .ui.large.button { padding: 15px 28px !important; min-height: 52px; font-size: 16px !important; }
.lh-app .ui.button.lh-btn-wide { min-width: 180px; }

/* Bootstrap buttons, for completeness */
.lh-app .btn-primary { background: var(--lh-gold); border-color: var(--lh-gold); border-radius: 10px; font-weight: 600; }
.lh-app .btn-primary:hover, .lh-app .btn-primary:focus { background: var(--lh-gold-dark); border-color: var(--lh-gold-dark); box-shadow: 0 0 0 3px rgba(196, 154, 12, .25); }

/* ---------- Messages ---------- */
.lh-app .ui.message {
    border-radius: 10px !important; box-shadow: none !important; border: 1px solid var(--lh-line); border-left-width: 4px;
    padding: 13px 16px !important; font-size: 14px; line-height: 21px; background: #fff; color: var(--lh-text);
}
.lh-app .ui.negative.message, .lh-app .ui.error.message { background: #FFF6F6 !important; border-color: #F3CACA !important; border-left-color: #D64545 !important; color: #9B2C2C !important; }
.lh-app .ui.positive.message, .lh-app .ui.success.message { background: #F3FBF5 !important; border-color: #C8E8D1 !important; border-left-color: #2F9E55 !important; color: #1F6B3A !important; }
.lh-app .ui.warning.message { background: #FFFAEB !important; border-color: #F2DFA6 !important; border-left-color: #D69E2E !important; color: #7A5A12 !important; }
.lh-app .ui.info.message { background: #F4F7FC !important; border-color: #D3DDEE !important; border-left-color: var(--lh-navy) !important; color: #24365C !important; }
.lh-app .ui.form .ui.error.message:empty { display: none !important; }
.lh-app .ui.form .error.message ul.list { margin: 0; padding-left: 18px; }

/* ---------- Password field with show/hide ---------- */
.lh-pass { position: relative; }
.lh-pass input { padding-right: 48px !important; }
.lh-pass-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none;
    color: var(--lh-muted); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lh-pass-toggle:hover { color: var(--lh-gold-dark); background: var(--lh-gold-soft); }
.lh-pass-meter { height: 4px; border-radius: 4px; background: #EEE9DD; margin-top: 8px; overflow: hidden; }
.lh-pass-meter span { display: block; height: 100%; width: 0; background: #D64545; transition: width .2s, background-color .2s; }
.lh-match { font-size: 13px; margin-top: 6px; display: block; min-height: 18px; }
.lh-match.is-ok { color: #2F9E55; }
.lh-match.is-bad { color: #C53030; }

/* ---------- Divider with text ---------- */
.lh-or { display: flex; align-items: center; gap: 12px; color: var(--lh-muted); font-size: 13px; margin: 18px 0; }
.lh-or::before, .lh-or::after { content: ""; flex: 1; height: 1px; background: var(--lh-line); }

/* ---------- Logo upload ---------- */
.lh-upload { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 16px; border: 1px dashed #D6CDB5; border-radius: 12px; background: #FFFDF7; }
.lh-upload img { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--lh-line); }
.lh-upload > div { flex: 1; min-width: 200px; }
.lh-upload strong { display: block; color: var(--lh-ink); font-size: 14px; margin-bottom: 8px; }

/* ---------- Change password (details) ---------- */
.lh-app details.lh-details { border: 1px solid var(--lh-line); border-radius: 12px; padding: 0 18px; background: #FFFDF7; }
.lh-app details.lh-details > summary { cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--lh-ink); list-style: none; display: flex; align-items: center; gap: 10px; }
.lh-app details.lh-details > summary::-webkit-details-marker { display: none; }
.lh-app details.lh-details > summary::after { content: "\f107"; font-family: FontAwesome !important; margin-left: auto; color: var(--lh-gold-dark); transition: transform .15s; }
.lh-app details.lh-details[open] > summary::after { transform: rotate(180deg); }
.lh-app details.lh-details[open] { padding-bottom: 18px; }

/* ---------- Tabs, segments, tables (profile pages) ---------- */
.lh-app .ui.tabular.menu { border-bottom: 1px solid var(--lh-line) !important; flex-wrap: wrap; min-height: 0; gap: 4px; }
.lh-app .ui.tabular.menu .item {
    border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0 !important; background: none !important;
    color: var(--lh-muted) !important; font-weight: 600 !important; padding: 13px 16px !important; margin-bottom: -1px !important; font-size: 14.5px;
}
.lh-app .ui.tabular.menu .item:hover { color: var(--lh-ink) !important; }
.lh-app .ui.tabular.menu .active.item { color: var(--lh-gold-dark) !important; border-bottom-color: var(--lh-gold) !important; }
.lh-app .ui.tabular.menu .item .label { background: var(--lh-gold-soft) !important; color: var(--lh-gold-dark) !important; margin-left: 6px; }
.lh-app .ui.attached.segment { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 22px 0 0 !important; background: transparent; }
.lh-app .ui.table { border: 1px solid var(--lh-line) !important; border-radius: 12px !important; overflow: hidden; font-size: 14px; }
.lh-app .ui.table thead th { background: #FBF8F1 !important; color: var(--lh-ink) !important; font-weight: 700 !important; font-size: 13.5px; padding: 13px 14px !important; border-color: var(--lh-line) !important; }
.lh-app .ui.table td { padding: 12px 14px !important; border-color: #F1EDE3 !important; vertical-align: middle; }
.lh-app .ui.table tbody tr:hover td { background: #FFFDF7; }
.lh-app .ui.label { border-radius: 6px; font-weight: 600; }
.lh-app .ui.green.label { background: #E7F6EC !important; color: #1F6B3A !important; border: 0; }
.lh-app .ui.grey.label { background: #EEF0F3 !important; color: #5A6270 !important; border: 0; }
.lh-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lh-table-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* TinyMCE 4 editors (script.js): same frame as the inputs, gold toolbar */
.lh-app .mce-tinymce { border: 1px solid #DCD6C8 !important; border-radius: 10px; overflow: hidden; box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
.lh-app .mce-tinymce.is-focused { border-color: var(--lh-gold) !important; box-shadow: 0 0 0 3px rgba(196, 154, 12, .15) !important; }
.lh-app .mce-tinymce .mce-toolbar-grp { background: #FBF8F1 !important; border-bottom: 1px solid var(--lh-line) !important; padding: 4px 6px !important; }
.lh-app .mce-tinymce .mce-btn { background: transparent !important; border-color: transparent !important; border-radius: 6px !important; }
.lh-app .mce-tinymce .mce-btn:hover, .lh-app .mce-tinymce .mce-btn.mce-active { background: var(--lh-gold-soft) !important; border-color: #E9D9A6 !important; }
.lh-app .mce-tinymce .mce-btn.mce-disabled .mce-ico { opacity: .4; }
.lh-app .mce-tinymce .mce-ico { font-family: 'tinymce' !important; color: var(--lh-gold-dark); }
.lh-app .mce-tinymce .mce-btn-group:not(:first-child) { border-left: 1px solid var(--lh-line) !important; }
.lh-app .mce-tinymce .mce-edit-area { border: 0 !important; }
.lh-label-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.lh-label-row > label { margin: 0 !important; }
.lh-tpl-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid #E9D9A6; border-radius: 999px; background: var(--lh-gold-soft); color: var(--lh-gold-dark); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.lh-tpl-btn:hover, .lh-tpl-btn:focus-visible { background: #fff; border-color: var(--lh-gold); }
.lh-field-hint { color: var(--lh-muted); font-size: 12.5px; margin: -2px 0 8px; }

/* ---------- Khmer ---------- */
.lang-km .lh-form-head h1 { font-size: 1.875rem !important; line-height: 2.5rem !important; }   /* h3 30px */
.lang-km .lh-form-section h2 { font-size: 1.25rem !important; line-height: 1.75rem !important; } /* xl 20px */
.lang-km.lh-app .ui.button { line-height: 1.25rem !important; }
.lang-km.lh-app .ui.form .field > label, .lang-km.lh-app .lh-label { line-height: 1.25rem; }

/* ---------- Post / edit job ---------- */
.lh-form-page .lh-eyebrow { color: var(--lh-gold-dark); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; margin: 0 0 6px; }
.lang-km .lh-form-page .lh-eyebrow { text-transform: none; letter-spacing: 0; }
.lh-form-page form > .lh-form-head-left { margin-bottom: 22px; }
.lh-form-page form > .lh-form-head-left h1 { margin-bottom: 4px; }
.lh-form-page section.lh-form-card { margin-bottom: 20px; }
.lh-form-page section.lh-form-card + section.lh-form-card { margin-top: 0; }
.lh-subhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; padding-top: 20px; border-top: 1px solid var(--lh-line); }
.lh-subhead strong { display: block; color: var(--lh-ink); font-size: 15px; }
/* Same 20px column gap as .lh-form-grid, so language rows line up with the fields above */
.lh-lang-rows { row-gap: 18px; margin-left: -10px; margin-right: -10px; }
.lh-lang-rows > [class*="col-"] { padding-left: 10px; padding-right: 10px; }
.lh-lang-rows > [class*="col-"] .field { margin: 0 !important; }
.lh-sticky-actions {
    position: sticky; bottom: 0; z-index: 20; margin-top: 8px; padding: 14px 18px; background: rgba(255, 255, 255, .96);
    border: 1px solid var(--lh-line); border-radius: 14px; box-shadow: 0 -8px 24px rgba(20, 33, 61, .06); backdrop-filter: blur(6px);
}
@media (max-width: 575px) { .lh-sticky-actions .ui.button { flex: 1; } }

/* ---------- Profile summary (company and job seeker) ---------- */
.lh-co-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center; margin-bottom: 20px; }
.lh-co-summary-main { display: flex; gap: 20px; align-items: center; min-width: 0; }
.lh-co-logo { width: 92px; height: 92px; flex: none; object-fit: contain; border-radius: 16px; border: 1px solid var(--lh-line); background: #fff; padding: 6px; }
.lh-avatar-lg { width: 84px; height: 84px; flex: none; border-radius: 50%; background: var(--lh-navy); color: #E0B53A; font-size: 34px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lh-co-summary h1 { font-size: 26px !important; line-height: 34px !important; margin: 0 0 8px; color: var(--lh-ink); font-weight: 700; overflow-wrap: anywhere; }
.lh-co-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--lh-muted); font-size: 14px; }
.lh-co-meta i { color: var(--lh-gold); width: 16px; }
.lh-co-summary-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.lh-co-address { grid-column: 1 / -1; border-top: 1px solid var(--lh-line); padding-top: 16px; font-size: 14px; color: var(--lh-text); }
.lh-co-address strong { display: block; color: var(--lh-ink); margin-bottom: 4px; }
.lh-co-address p:last-child { margin-bottom: 0; }
.lh-stat-row { display: flex; gap: 12px; flex-wrap: wrap; grid-column: 1 / -1; }
.lh-stat { flex: 1; min-width: 140px; border: 1px solid var(--lh-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; background: #FFFDF7; transition: border-color .15s; }
.lh-stat:hover { border-color: var(--lh-gold); }
.lh-stat strong { color: var(--lh-ink) !important; font-size: 24px; line-height: 30px; font-weight: 700; }
.lh-stat strong .fa-check-circle { color: #2F9E55; }
.lh-stat strong .fa-circle-o { color: #B4B9C2; }
.lh-stat span { color: var(--lh-muted) !important; font-size: 13px; }
@media (max-width: 767px) {
    .lh-co-summary { grid-template-columns: minmax(0, 1fr); }
    .lh-co-summary-actions { justify-content: flex-start; }
    .lh-co-summary-main { align-items: flex-start; }
    .lh-co-logo, .lh-avatar-lg { width: 64px; height: 64px; font-size: 26px; }
}
.lang-km .lh-co-summary h1 { font-size: 1.875rem !important; line-height: 2.5rem !important; }

.lh-empty-box { text-align: center; padding: 36px 16px; color: var(--lh-muted); }
.lh-empty-box > i { font-size: 30px; color: var(--lh-gold); margin-bottom: 10px; display: block; }
.lh-empty-box p { margin-bottom: 16px; }

.lh-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lh-contact-card { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--lh-line); border-radius: 12px; padding: 18px; background: #fff; min-width: 0; }
.lh-contact-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.lh-contact-card > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.lh-contact-card strong { color: var(--lh-ink); font-size: 15px; line-height: 1.35; }
.lh-contact-card > div > span { color: var(--lh-muted); }
.lh-contact-card a:not(.ui) { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: var(--lh-text) !important; }
.lh-contact-card a:not(.ui) span { min-width: 0; overflow-wrap: anywhere; }
.lh-contact-card a:not(.ui) i { color: var(--lh-gold); width: 16px; flex: none; text-align: center; }
.lh-contact-card > .ui.button { flex: none; margin: 0 !important; white-space: nowrap; }
@media (max-width: 767px) { .lh-contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Semantic "two fields" rows line up with single fields */
.lh-app .ui.form .fields { margin: 0 0 1em !important; gap: 18px; flex-wrap: wrap; }
.lh-app .ui.form .fields > .field { padding: 0 !important; flex: 1 1 240px; width: auto !important; margin: 0 !important; }
.lh-app .ui.form .field { margin-bottom: 1.1em; }

/* English titles in Inter (the old stylesheet sets every heading's font with !important) */
.lang-en .lh-form-page h1, .lang-en .lh-form-page h2, .lang-en .lh-form-page h3, .lang-en .lh-form-page h4 { font-family: 'Inter', sans-serif !important; letter-spacing: -.2px; }
.lh-form-grid .ui.button { padding-left: 14px !important; padding-right: 14px !important; }

/* ---------- Profile: edit profile / password ---------- */
.lh-plain-form .field { margin-bottom: 18px; }
.lh-plain-form .lh-form-grid .field { margin-bottom: 0; }
.lh-plain-form .field.is-error .lh-input { border-color: #E07070 !important; background: #FFF7F7 !important; }
.lh-plain-form .field.is-error .lh-label { color: #C53030 !important; }
.lh-password-box { max-width: 520px; }
.lh-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.lh-choice {
    display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; cursor: pointer;
    border: 1px solid #DCD6C8; border-radius: 10px; padding: 11px 16px; background: #fff; font-size: 15px; color: var(--lh-ink);
    transition: border-color .15s, background-color .15s;
}
.lh-choice:hover { border-color: #C9BFA6; }
.lh-choice input { accent-color: var(--lh-gold); margin: 0; width: 16px; height: 16px; }
.lh-choice:has(input:checked) { border-color: var(--lh-gold); background: var(--lh-gold-soft); font-weight: 600; }
.lh-choice:focus-within { box-shadow: 0 0 0 3px rgba(196, 154, 12, .18); }
.lh-app .lh-input:disabled { background: #F4F2EC !important; color: var(--lh-muted) !important; cursor: not-allowed; }

/* ---------- Account pages: sidebar + content ---------- */
.lh-acc { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 24px; align-items: start; }
.lh-acc-main { min-width: 0; }
.lh-acc-main > .lh-form-card:first-child, .lh-acc-main > section:first-child, .lh-acc-main > form > .lh-form-head:first-child { margin-top: 0; }
.lh-acc-side {
    position: sticky; top: 92px; background: #fff; border: 1px solid var(--lh-line); border-radius: 16px;
    box-shadow: 0 18px 40px rgba(20, 33, 61, .06); padding: 16px 12px; max-height: calc(100vh - 110px); overflow-y: auto;
}
.lh-acc-user { display: flex; align-items: center; gap: 12px; padding: 6px 10px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--lh-line); }
.lh-acc-avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--lh-navy); color: #E0B53A; font-weight: 700; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.lh-acc-user div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.lh-acc-user strong { color: var(--lh-ink); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-acc-user small { color: var(--lh-muted); font-size: 12.5px; }
.lh-acc-group { color: var(--lh-muted); font-size: 11px !important; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; margin: 14px 10px 6px !important; line-height: 16px !important; }
.lang-km .lh-acc-group { text-transform: none; letter-spacing: 0; font-size: 12px !important; }
.lh-acc-nav a, .lh-acc-nav button {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; margin-bottom: 2px; border: 0; background: none;
    border-radius: 10px; color: var(--lh-text) !important; font-size: 14.5px; font-weight: 500; text-align: left; cursor: pointer;
    transition: background-color .15s, color .15s;
}
.lh-acc-nav a i, .lh-acc-nav button i { width: 18px; text-align: center; color: var(--lh-gold-dark); }
.lh-acc-nav a:hover, .lh-acc-nav button:hover { background: var(--lh-gold-soft); color: var(--lh-ink) !important; }
.lh-acc-nav a.is-active { background: var(--lh-gold); color: #fff !important; font-weight: 600; box-shadow: 0 6px 16px rgba(196, 154, 12, .28); }
.lh-acc-nav a.is-active i { color: #fff; }
.lh-acc-nav form { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--lh-line); }
.lh-acc-nav .lh-acc-logout, .lh-acc-nav .lh-acc-logout i { color: #C53030 !important; }
.lh-acc-nav .lh-acc-logout:hover { background: #FFF5F5; }

/* Current company (and the switcher when the account belongs to several companies) */
.lh-acc-company { padding: 4px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--lh-line); }
.lh-acc-switch label { display: block; color: var(--lh-muted); font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; margin-bottom: 6px; }
.lang-km .lh-acc-switch label { text-transform: none; letter-spacing: 0; font-size: 12px; }
.lh-acc-switch-row { display: flex; gap: 6px; }
.lh-acc-switch select { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--lh-line); border-radius: 10px; background: #fff; color: var(--lh-ink); font-size: 14px; }
.lh-acc-company-one { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.lh-acc-company-one strong { color: var(--lh-ink); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Team page */
.lh-team-table td, .lh-team-table th { vertical-align: middle !important; }
.lh-team-table form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
/* Role menus look like the site's text inputs (same border, radius, gold focus) with a custom arrow */
.lh-app .ui.form.lh-team-add select, .lh-app .lh-team-table select {
    -webkit-appearance: none; appearance: none; width: 100%; min-height: 48px; margin: 0;
    padding: 12px 40px 12px 15px; border: 1px solid #DCD6C8; border-radius: 10px; color: var(--lh-ink);
    font-size: 16px; line-height: 22px; cursor: pointer; outline: none; box-shadow: none;
    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='none' stroke='%236B7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center;
    transition: border-color .15s, box-shadow .15s;
}
.lh-app .ui.form.lh-team-add select:hover, .lh-app .lh-team-table select:hover { border-color: #C9BFA6; }
.lh-app .ui.form.lh-team-add select:focus, .lh-app .lh-team-table select:focus { border-color: var(--lh-gold); box-shadow: 0 0 0 3px rgba(196, 154, 12, .18); }
.lh-app .lh-team-table select { width: auto; min-width: 120px; min-height: 36px; padding: 6px 34px 6px 12px; font-size: 14px; border-radius: 8px; background-position: right 12px center; }

/* Add a member: username, role and the button on one line, bottoms aligned */
.lh-team-add { display: grid; grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr) auto; gap: 12px; align-items: end; }
.lh-app .ui.form.lh-team-add .field { margin: 0 !important; }
.lh-app .ui.form.lh-team-add > .ui.button { min-height: 48px; margin: 0; padding: 0 22px; white-space: nowrap; }
.lh-team-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.lh-team-roles li { border: 1px solid var(--lh-line); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; }
.lh-team-roles strong { display: block; color: var(--lh-ink); margin-bottom: 2px; }
@media (max-width: 640px) {
    .lh-team-add { grid-template-columns: 1fr; }
    .lh-app .ui.form.lh-team-add > .ui.button { width: 100%; }
    .lh-team-table thead { display: none; }
    .lh-team-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--lh-line); }
    .lh-team-table td { display: block; border: 0 !important; padding: 4px 0 !important; }
}

/* Section heading inside a panel (replaces the old tab bar) */
.lh-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.lh-panel-head h2 { margin: 0; font-size: 20px !important; line-height: 28px !important; color: var(--lh-ink); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.lh-panel-head .ui.label { background: var(--lh-gold-soft) !important; color: var(--lh-gold-dark) !important; }
.lh-acc-main .ui.bottom.attached.segment { padding-top: 0 !important; }
.lh-acc-main .ui.tab.segment:not(.active) { display: none !important; }

/* Phones and tablets: the menu becomes a row of buttons above the page */
@media (max-width: 991px) {
    .lh-acc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .lh-acc-side { position: static; max-height: none; padding: 10px; }
    .lh-acc-user { display: none; }
    .lh-acc-nav { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
    .lh-acc-group { display: none; }
    .lh-acc-nav a, .lh-acc-nav button { width: auto; white-space: nowrap; margin: 0; padding: 9px 12px; border: 1px solid var(--lh-line); }
    .lh-acc-nav form { margin: 0; padding: 0; border: 0; }
}

/* ---------- Profile photo ---------- */
.lh-photo-form { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px; margin-bottom: 22px;
    border: 1px dashed #D6CDB5; border-radius: 14px; background: #FFFDF7; }
.lh-photo-preview { position: relative; width: 96px; height: 96px; flex: none; border-radius: 50%; overflow: hidden;
    background: var(--lh-navy); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--lh-line); }
.lh-photo-initial { color: #E0B53A; font-size: 38px; font-weight: 700; }
.lh-photo-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: #fff; }
.lh-photo-preview img:not([src]), .lh-photo-preview img[src=""] { display: none; }
.lh-photo-body { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.lh-photo-body strong { color: var(--lh-ink); font-size: 15px; }
.lh-photo-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.lh-file-btn { position: relative; overflow: hidden; cursor: pointer; }
.lh-file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; font-size: 0; }
.lh-file-btn:focus-within { outline: 3px solid rgba(196, 154, 12, .35); outline-offset: 2px; }
#image-convert-status { display: block; font-size: 13px; margin-top: 6px; }
/* Photo avatars */
img.lh-avatar-lg, img.lh-acc-avatar, img.lh-account-avatar { object-fit: cover; padding: 0; background: #fff; }
.lh-avatar-img { border: 3px solid #fff; box-shadow: 0 0 0 1px var(--lh-line); }

/* ---------- Job approval workflow on My jobs ---------- */
.lh-app .ui.label.lh-wf-label.yellow { background: #FFF4DB !important; color: #8A6408 !important; border: 0; }
.lh-app .ui.label.lh-wf-label.orange { background: #FFEBDD !important; color: #9A4A10 !important; border: 0; }
.lh-app .ui.label.lh-wf-label.red { background: #FDECEC !important; color: #9B2C2C !important; border: 0; }
.lh-app .ui.label.lh-wf-label.grey { background: #EEF0F3 !important; color: #5A6270 !important; border: 0; }
.lh-wf-comment { margin-top: 6px; max-width: 280px; font-size: 12.5px; color: var(--lh-muted); white-space: pre-line; }
.lh-wf-comment i { color: var(--lh-gold-dark); }
.lh-notify { border: 1px solid #EFE6CF; border-left: 4px solid var(--lh-gold); border-radius: 10px; background: #FFFDF7; padding: 14px 16px; margin-bottom: 18px; }
.lh-notify-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.lh-notify-head strong { color: var(--lh-ink); }
.lh-notify-head i { color: var(--lh-gold-dark); }
.lh-notify-head form { margin: 0; }
.lh-notify ul { list-style: none; margin: 0; padding: 0; }
.lh-notify li { padding: 10px 0; border-top: 1px solid #F1EDE3; font-size: 14px; }
.lh-notify li:first-child { border-top: 0; }
.lh-notify li > span { font-weight: 600; }
.lh-notify li.is-job_approved > span { color: #1F6B3A; }
.lh-notify li.is-job_revision_required > span { color: #9A4A10; }
.lh-notify li.is-job_rejected > span { color: #9B2C2C; }
.lh-notify li.is-company_approved > span { color: #1F6B3A; }
.lh-notify li.is-company_revision_required > span { color: #9A4A10; }
.lh-notify li.is-company_rejected > span { color: #9B2C2C; }
.lh-notify li a { color: var(--lh-ink); font-weight: 600; }
.lh-notify li small { color: var(--lh-muted); margin-left: 8px; }
.lh-notify li p { margin: 4px 0 0; color: var(--lh-text); white-space: pre-line; }

/* ---------- Company registration approval (status page) ---------- */
.lh-app .ui.label.lh-wf-label.green { background: #E6F4EA !important; color: #1F6B3A !important; border: 0; }
.lh-reg-status { text-align: center; }
.lh-reg-status > i { font-size: 34px; display: block; margin-bottom: 10px; color: var(--lh-gold); }
.lh-reg-status.is-red > i { color: #C53030; }
.lh-reg-status.is-orange > i { color: #C46A1A; }
.lh-reg-status.is-green > i { color: #2F9E55; }
.lh-reg-status .lh-wf-label { margin-bottom: 10px; }
.lh-reg-comment { text-align: left; border-left: 4px solid #E0B53A; background: #FFFDF7; border-radius: 8px; padding: 12px 14px; margin: 16px auto; max-width: 560px; }
.lh-reg-status.is-red .lh-reg-comment { border-left-color: #C53030; background: #FFF8F8; }
.lh-reg-comment p { margin: 6px 0 0; white-space: pre-line; }
.lh-reg-history { list-style: none; margin: 0; padding: 0; }
.lh-reg-history li { padding: 10px 0; border-top: 1px solid var(--lh-line); font-size: 14px; }
.lh-reg-history li:first-child { border-top: 0; }
.lh-reg-history small { color: var(--lh-muted); margin-left: 8px; }
.lh-reg-history p { margin: 4px 0 0; white-space: pre-line; }

/* ---------- Login security / forgot password ---------- */
.lh-form-row-end { display: flex; justify-content: flex-end; margin: -6px 0 14px; font-size: 14px; }
.lh-form-row-end a { font-weight: 600; }
.lh-challenge { background: var(--lh-gold-soft); border: 1px solid #EFE2B8; border-radius: 10px; padding: 12px 14px; }
.lh-challenge label { font-weight: 600; color: var(--lh-ink); }
.lh-challenge .form-control, .lh-challenge input { max-width: 140px; }
.lh-otp-input { font-size: 26px !important; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; padding: 10px 12px !important; height: auto !important; }
.lh-otp-input::placeholder { letter-spacing: 6px; color: #C9C3B5; }
.lh-otp-actions { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lh-otp-actions form { margin: 0; }
.lh-otp-actions .lh-hint { margin-top: 0; }
.lh-link-button { background: none; border: 0; padding: 0; color: var(--lh-gold-dark); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: underline; }
.lh-link-button:hover, .lh-link-button:focus-visible { color: var(--lh-ink); }
.lh-pass-rules { margin: 8px 0 0; padding-left: 18px; color: var(--lh-muted); font-size: 12.5px; line-height: 19px; }
@media (max-width: 575px) { .lh-otp-input { font-size: 22px !important; letter-spacing: 6px; } }
