/* Public job hiring flow — design handoff tokens */
:root {
    --jh-bg: #f5f4f1;
    --jh-surface: #ffffff;
    --jh-hero: #eaf3ef;
    --jh-ink: #1f1f1f;
    --jh-body: #3f3d38;
    --jh-body-muted: #55524b;
    --jh-muted: #726f68;
    --jh-meta: #8a877e;
    --jh-nav: #4d4a44;
    --jh-border: #e6e2d8;
    --jh-border-input: #d8d4c8;
    --jh-border-dashed: #c9c5b8;
    --jh-brand: #1f6f54;
    --jh-error: #b3452f;
    --jh-draft-bg: #fafaf8;
    --jh-step-upcoming: #a8a59c;
    /* follows the system font setting (app.font_family); the literal stack
       stays as the fallback for any context that does not emit --hr-font */
    --jh-font: var(--hr-font, 'IBM Plex Sans Arabic', sans-serif);
}

*, *::before, *::after { box-sizing: border-box; }

body.jh-body {
    margin: 0;
    font-family: var(--jh-font);
    background: var(--jh-bg);
    min-height: 100vh;
    color: var(--jh-ink);
    display: flex;
    flex-direction: column;
}

.jh-header {
    background: var(--jh-surface);
    border-bottom: 1px solid var(--jh-border);
}

.jh-header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.jh-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.jh-logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--jh-brand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.jh-logo-img {
    height: 40px;
    width: auto;
    max-width: 148px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.jh-company-name {
    font-weight: 700;
    font-size: 18px;
}

.jh-nav {
    display: flex;
    gap: 28px;
    font-size: 15px;
    color: var(--jh-nav);
}

.jh-nav a {
    color: inherit;
    text-decoration: none;
}

.jh-nav a.is-active,
.jh-nav span.is-active {
    color: var(--jh-brand);
    font-weight: 600;
}

.jh-back-link {
    background: none;
    border: none;
    color: var(--jh-brand);
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.jh-hero {
    background: var(--jh-hero);
    padding: 22px 32px;
}

.jh-hero--apply {
    padding: 20px 32px;
}

.jh-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.jh-hero-inner--narrow {
    max-width: 1180px;
}

.jh-hero-inner--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.jh-hero-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.jh-eyebrow {
    font-size: 13px;
    color: var(--jh-brand);
    font-weight: 600;
    margin-bottom: 4px;
}

.jh-eyebrow--code {
    font-size: 12px;
    margin-bottom: 4px;
}

.jh-hero-title {
    font-size: 28px;
    margin: 0 0 4px;
    font-weight: 700;
    text-wrap: pretty;
}

.jh-hero-title--apply {
    font-size: 24px;
    margin: 0 0 6px;
}

.jh-hero-sub {
    font-size: 14px;
    color: var(--jh-body-muted);
    max-width: 640px;
    margin: 0;
    line-height: 1.5;
}

.jh-hero-inner--split .jh-search {
    padding: 12px 16px;
}

.jh-hero-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--jh-body-muted);
    flex-wrap: wrap;
    align-items: center;
}

.jh-search-wrap {
    position: relative;
    flex: 0 1 420px;
    width: 100%;
    max-width: 420px;
}

.jh-search {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--jh-border-input);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jh-search:focus {
    border-color: var(--jh-brand);
    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.12);
}

.jh-search:disabled {
    opacity: 0.7;
    cursor: wait;
}

.jh-search-wrap.has-value .jh-search {
    padding-left: 44px;
}

.jh-search-clear {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--jh-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.jh-search-wrap.has-value:not(.is-loading):not(.is-filtering) .jh-search-clear {
    display: inline-flex;
}

.jh-search-wrap.is-loading .jh-search,
.jh-search-wrap.is-filtering .jh-search {
    padding-left: 44px;
}

.jh-search-clear:hover {
    background: var(--jh-hero);
    color: var(--jh-brand);
}

.jh-search-spinner {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border: 2px solid var(--jh-border-input);
    border-top-color: var(--jh-brand);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.jh-search-wrap.is-loading .jh-search-spinner,
.jh-search-wrap.is-filtering .jh-search-spinner {
    opacity: 1;
    animation: jh-spin 0.7s linear infinite;
}

@keyframes jh-spin {
    to { transform: rotate(360deg); }
}

.jh-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 32px 90px;
}

.jh-main--apply {
    max-width: 1180px;
    width: 100%;
    padding: 24px 32px 40px;
}

.jh-counter {
    font-size: 15px;
    color: var(--jh-muted);
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.jh-counter #jobCount {
    display: inline-block;
    min-width: 1.2em;
    font-weight: 700;
    color: var(--jh-brand);
    transition: transform 0.25s ease;
}

.jh-counter #jobCount.is-updating {
    transform: scale(1.15);
}

.jh-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.jh-card {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--jh-border);
    border-radius: 16px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.jh-card.is-entering {
    opacity: 0;
    transform: translateY(10px);
}

.jh-card.is-entering.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.35s ease var(--jh-enter-delay, 0ms),
        transform 0.35s ease var(--jh-enter-delay, 0ms),
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.jh-card:not(.jh-card--skeleton):hover {
    border-color: rgba(31, 111, 84, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 31, 31, 0.06);
}

.jh-card--skeleton {
    pointer-events: none;
    gap: 12px;
}

.jh-skel {
    display: block;
    border-radius: 8px;
    background: linear-gradient(90deg, #eeebe3 25%, #f7f5ef 50%, #eeebe3 75%);
    background-size: 200% 100%;
    animation: jh-shimmer 1.2s ease-in-out infinite;
}

.jh-skel-title { height: 22px; width: 68%; }
.jh-skel-code { height: 14px; width: 34%; }
.jh-skel-line { height: 14px; width: 100%; }
.jh-skel-line--short { width: 72%; }
.jh-skel-meta { height: 36px; width: 140px; }
.jh-skel-btn { height: 44px; width: 96px; border-radius: 10px; }

.jh-skel-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
}

@keyframes jh-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.jh-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.jh-card-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}

.jh-card-code {
    font-size: 13px;
    color: var(--jh-muted);
}

.jh-pill {
    background: var(--jh-hero);
    color: var(--jh-brand);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.jh-card-desc {
    font-size: 14px;
    color: var(--jh-body-muted);
    line-height: 1.7;
    min-height: 48px;
    flex: 1 1 auto;
}

.jh-card-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding-top: 4px;
}

.jh-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: var(--jh-meta);
}

.jh-card-footer .jh-btn-primary {
    align-self: flex-end;
    margin-top: 0;
    flex-shrink: 0;
}

.jh-btn-primary {
    align-self: flex-start;
    margin-top: 6px;
    background: var(--jh-brand);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.jh-btn-primary:hover {
    color: #fff;
    opacity: 0.92;
    transform: translateY(-1px);
}

.jh-btn-primary:active {
    transform: translateY(0);
}

.jh-btn-primary:disabled,
.jh-btn-primary.is-busy {
    opacity: 0.75;
    cursor: wait;
    pointer-events: none;
}

.jh-btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: jh-spin 0.7s linear infinite;
}

.jh-btn-outline {
    background: none;
    border: 1px solid var(--jh-border-input);
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    color: var(--jh-ink);
}

.jh-btn-dashed {
    background: none;
    border: 1px dashed var(--jh-brand);
    color: var(--jh-brand);
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.jh-btn-sm {
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
}

.jh-empty {
    text-align: center;
    padding: 90px 20px;
    color: var(--jh-meta);
    font-size: 15px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.jh-empty.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.jh-empty-state {
    background: #fff;
    border: 1px dashed var(--jh-border);
    border-radius: 16px;
    padding: 48px 24px;
    text-align: center;
}

.jh-footer {
    margin-top: auto;
    background: var(--jh-surface);
    border-top: 1px solid var(--jh-border);
    padding: 22px 32px;
}

.jh-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--jh-meta);
    flex-wrap: wrap;
    gap: 14px;
}

.jh-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jh-footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--jh-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.jh-footer-logo-img {
    height: 28px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.jh-footer-copy {
    line-height: 1.5;
}

.jh-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.jh-footer-links a {
    color: inherit;
    text-decoration: none;
}

.jh-footer-links a:hover {
    color: var(--jh-brand);
}

/* Stepper */
.jh-stepper-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 32px 30px;
}

.jh-stepper-wrap--in-card {
    max-width: none;
    margin: 0 0 28px;
    padding: 4px 8px 22px;
    border-bottom: 1px solid var(--jh-border);
    background: linear-gradient(180deg, #f7faf8 0%, transparent 100%);
    border-radius: 12px 12px 0 0;
    margin-inline: -8px;
}

.jh-stepper-wrap--toolbar {
    max-width: none;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.jh-card-header {
    margin: -36px -40px 28px;
    padding: 20px 40px;
    border-bottom: 1px solid var(--jh-border);
    background: linear-gradient(90deg, #f3f8f5 0%, #fbfaf7 42%, #fff 100%);
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.jh-card-header-info {
    min-width: 0;
    flex: 1 1 320px;
}

.jh-card-header-toolbar {
    flex: 1 1 420px;
    max-width: 560px;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 111, 84, 0.12);
}

.jh-card-header-toolbar .jh-stepper-circle {
    width: 30px;
    height: 30px;
    font-size: 13px;
}

.jh-card-header-toolbar .jh-stepper-label {
    font-size: 11px;
}

.jh-card-header-toolbar .jh-stepper-line {
    margin-bottom: 18px;
}

.jh-card-header-code {
    font-size: 12px;
    font-weight: 600;
    color: var(--jh-brand);
    margin-bottom: 6px;
}

.jh-card-header-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
    text-wrap: pretty;
}

.jh-card-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    font-size: 13px;
    color: var(--jh-body-muted);
}

.jh-stepper {
    display: flex;
    align-items: center;
}

.jh-stepper-item {
    display: flex;
    align-items: center;
    flex: 1;
}

.jh-stepper-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    padding: 0;
}

.jh-stepper-node:disabled {
    cursor: default;
}

.jh-stepper-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--jh-border-input);
    background: var(--jh-bg);
    color: var(--jh-step-upcoming);
}

.jh-stepper-circle.is-current {
    background: var(--jh-hero);
    border-color: var(--jh-brand);
    color: var(--jh-brand);
}

.jh-stepper-circle.is-done {
    background: var(--jh-brand);
    border-color: var(--jh-brand);
    color: #fff;
}

.jh-stepper-label {
    font-size: 12px;
    color: var(--jh-step-upcoming);
    font-weight: 600;
    white-space: nowrap;
}

.jh-stepper-label.is-active {
    color: var(--jh-ink);
}

.jh-stepper-line {
    flex: 1;
    height: 2px;
    background: var(--jh-border);
    margin: 0 8px 20px;
}

.jh-stepper-line.is-done {
    background: var(--jh-brand);
}

/* Content card */
.jh-content-card {
    background: #fff;
    border: 1px solid var(--jh-border);
    border-radius: 20px;
    padding: 36px 40px;
    box-shadow: 0 8px 28px rgba(31, 31, 31, 0.04);
}

.jh-section-head {
    margin-bottom: 22px;
}

.jh-section-title {
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.jh-section-head .jh-section-sub {
    margin-bottom: 0;
}

.jh-section-sub {
    font-size: 13px;
    color: var(--jh-meta);
    margin: 0 0 22px;
    line-height: 1.6;
}

.jh-req {
    color: var(--jh-brand);
    font-weight: 700;
}

.jh-optional {
    color: var(--jh-meta);
    font-size: 12px;
    font-weight: 500;
}

.jh-text-block {
    font-size: 15px;
    line-height: 1.9;
    color: var(--jh-body);
    margin: 0 0 28px;
    white-space: pre-wrap;
}

.jh-subheading {
    font-size: 16px;
    margin: 0 0 12px;
    font-weight: 700;
}

.jh-list {
    margin: 0 0 28px;
    padding-inline-start: 20px;
    font-size: 14px;
    line-height: 2;
    color: var(--jh-body);
}

.jh-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.jh-tag-skill {
    background: var(--jh-hero);
    color: var(--jh-brand);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
}

.jh-tag-lang {
    background: var(--jh-bg);
    color: var(--jh-body-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
}

.jh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.jh-form-grid + .jh-form-grid {
    margin-top: 18px;
}

.jh-form-grid--3 {
    grid-template-columns: 1.15fr 0.95fr 1.25fr;
    align-items: start;
}

.jh-field--full {
    grid-column: 1 / -1;
}

.jh-option-tabs--compact {
    gap: 8px;
}

.jh-option-tabs--compact .jh-option-tab {
    padding: 11px 10px;
    gap: 8px;
    min-height: 46px;
}

.jh-option-tabs--compact .jh-option-tab-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.jh-option-tabs--compact .jh-option-tab-title {
    font-size: 13px;
}

.jh-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--jh-body);
    display: block;
    margin-bottom: 8px;
}

.jh-birth-wrap {
    position: relative;
}

.jh-birth {
    display: grid;
    grid-template-columns: 0.85fr 1.35fr 1fr;
    min-height: 52px;
    background: #fbfaf7;
    border: 1px solid var(--jh-border-input);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.jh-birth:hover {
    border-color: #c4c0b4;
}

.jh-birth.is-open,
.jh-birth:focus-within {
    background: #fff;
    border-color: var(--jh-brand);
    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.12);
}

.jh-field.is-error .jh-birth {
    border-color: var(--jh-error);
    background: #fff8f6;
    box-shadow: 0 0 0 3px rgba(179, 69, 47, 0.1);
}

.jh-birth-seg {
    appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    margin: 0;
    padding-block: 7px;
    padding-inline-start: 12px;
    padding-inline-end: 28px;
    border: 0;
    background: transparent;
    font-family: inherit;
    text-align: start;
    cursor: pointer;
    color: inherit;
}

.jh-birth-seg + .jh-birth-seg {
    border-inline-start: 1px solid var(--jh-border);
}

.jh-birth-seg:hover,
.jh-birth-seg.is-open {
    background: rgba(31, 111, 84, 0.05);
}

.jh-birth-caption {
    font-size: 10px;
    font-weight: 600;
    color: var(--jh-meta);
    line-height: 1.2;
}

.jh-birth-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--jh-ink);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jh-birth-value.is-placeholder {
    color: #a8a59c;
    font-weight: 500;
}

.jh-birth-caret {
    position: absolute;
    inset-inline-end: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #a8a59c;
    pointer-events: none;
    transition: transform 0.18s ease, color 0.18s ease;
}

.jh-birth-seg.is-open .jh-birth-caret {
    color: var(--jh-brand);
    transform: translateY(-50%) rotate(180deg);
}

.jh-birth-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--jh-border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(31, 31, 31, 0.12);
}

.jh-birth-panel-grid {
    display: grid;
    gap: 6px;
    max-height: 236px;
    overflow-y: auto;
}

.jh-birth-panel-grid.is-days {
    grid-template-columns: repeat(7, 1fr);
}

.jh-birth-panel-grid.is-months {
    grid-template-columns: repeat(3, 1fr);
}

.jh-birth-panel-grid.is-months .jh-birth-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.jh-birth-month-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(31, 31, 31, 0.08);
    color: var(--jh-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.jh-birth-chip:hover .jh-birth-month-num {
    background: rgba(31, 111, 84, 0.14);
    color: var(--jh-brand);
}

.jh-birth-chip.is-selected .jh-birth-month-num,
.jh-birth-chip.is-selected:hover .jh-birth-month-num {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.jh-birth-panel-grid.is-years {
    grid-template-columns: repeat(4, 1fr);
}

.jh-birth-chip {
    appearance: none;
    border: 0;
    background: #f5f4f1;
    border-radius: 10px;
    min-height: 40px;
    padding: 8px 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--jh-ink);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.jh-birth-chip:hover {
    background: var(--jh-hero);
    color: var(--jh-brand);
}

.jh-birth-chip.is-selected {
    background: var(--jh-brand);
    color: #fff;
}

.jh-birth-chip.is-selected:hover {
    background: var(--jh-brand);
    color: #fff;
}

.jh-field input,
.jh-field select,
.jh-field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 12px;
    border: 1px solid var(--jh-border-input);
    font-size: 14px;
    font-family: inherit;
    color: var(--jh-ink);
    background: #fbfaf7;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.jh-field input::placeholder {
    color: #a8a59c;
}

.jh-field input:hover,
.jh-field select:hover {
    border-color: #c4c0b4;
}

.jh-field input:focus,
.jh-field select:focus {
    outline: none;
    border-color: var(--jh-brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.12);
}

.jh-field.is-error input,
.jh-field.is-error select {
    border-color: var(--jh-error);
    background: #fff8f6;
    box-shadow: 0 0 0 3px rgba(179, 69, 47, 0.1);
}

.jh-option-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.jh-option-tab {
    appearance: none;
    width: 100%;
    text-align: start;
    border: 1px solid var(--jh-border-input);
    background: #fbfaf7;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    font-family: inherit;
    color: var(--jh-ink);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.jh-option-tab:hover {
    border-color: rgba(31, 111, 84, 0.4);
    background: #fff;
    transform: translateY(-1px);
}

.jh-option-tab.is-selected {
    border-color: var(--jh-brand);
    background: var(--jh-hero);
    box-shadow: 0 0 0 3px rgba(31, 111, 84, 0.12);
    color: var(--jh-brand);
}

.jh-option-tab-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--jh-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--jh-muted);
}

.jh-option-tab.is-selected .jh-option-tab-icon {
    border-color: rgba(31, 111, 84, 0.3);
    color: var(--jh-brand);
    background: #fff;
}

.jh-option-tab-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.jh-option-tab-title {
    font-size: 14px;
    font-weight: 700;
    color: inherit;
}

.jh-option-tab-desc {
    font-size: 11px;
    color: var(--jh-meta);
    line-height: 1.4;
}

.jh-option-tab.is-selected .jh-option-tab-desc {
    color: var(--jh-body-muted);
}

.jh-field.is-error .jh-option-tabs {
    box-shadow: none;
}

.jh-field.is-error .jh-option-tab {
    border-color: rgba(179, 69, 47, 0.35);
}

.jh-field.is-error .jh-option-tab.is-selected {
    border-color: var(--jh-error);
    box-shadow: 0 0 0 3px rgba(179, 69, 47, 0.1);
}

.jh-field-error {
    font-size: 12px;
    color: var(--jh-error);
    margin-top: 6px;
}

.jh-field-hint {
    font-size: 12px;
    color: var(--jh-meta);
    margin-top: 6px;
}

.jh-field.is-error .jh-field-hint {
    display: none;
}

.jh-photo-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid var(--jh-border);
    background: linear-gradient(135deg, #f3f8f5 0%, #fbfaf7 70%);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.jh-photo-panel.is-error {
    border-color: var(--jh-error);
    box-shadow: 0 0 0 3px rgba(179, 69, 47, 0.08);
}

.jh-photo-trigger {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: #fff;
    border: 2px dashed var(--jh-border-dashed);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    color: var(--jh-muted);
    cursor: pointer;
    text-align: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.jh-photo-trigger:hover {
    border-color: var(--jh-brand);
    color: var(--jh-brand);
    transform: translateY(-1px);
}

.jh-photo-icon {
    display: flex;
    color: inherit;
    opacity: 0.85;
}

.jh-photo-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.jh-photo-trigger.has-preview .jh-photo-icon,
.jh-photo-trigger.has-preview .jh-photo-label {
    display: none;
}

.jh-photo-trigger #photoPreview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    pointer-events: none;
    border-radius: 50%;
    background: #fff;
}

.jh-photo-trigger.has-preview #photoPreview {
    display: block;
}

.jh-photo-trigger.is-error {
    border-color: var(--jh-error);
    color: var(--jh-error);
}

.jh-photo-meta {
    min-width: 0;
}

.jh-photo-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.jh-photo-hint {
    font-size: 12px;
    color: var(--jh-meta);
    line-height: 1.6;
    margin-bottom: 12px;
}

.jh-photo-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31, 111, 84, 0.28);
    background: #fff;
    color: var(--jh-brand);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.jh-photo-action:hover {
    background: var(--jh-hero);
    border-color: var(--jh-brand);
}

.jh-questions-block {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--jh-border);
}

.jh-resume-block {
    position: relative;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--jh-border);
}

.jh-record-card {
    border: 1px solid var(--jh-border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.jh-record-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.jh-record-meta {
    font-size: 13px;
    color: var(--jh-muted);
}

.jh-record-delete {
    background: none;
    border: none;
    color: var(--jh-error);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
}

.jh-draft-form {
    border: 1px solid var(--jh-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    background: var(--jh-draft-bg);
}

.jh-draft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.jh-draft-actions {
    display: flex;
    gap: 10px;
}

.jh-resume-zone {
    border: 1px dashed var(--jh-border-dashed);
    border-radius: 14px;
    padding: 34px 24px;
    text-align: center;
    cursor: pointer;
    color: var(--jh-muted);
    font-size: 14px;
    background: #fbfaf7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.jh-resume-zone:hover {
    border-color: var(--jh-brand);
    background: var(--jh-hero);
    color: var(--jh-brand);
}

.jh-resume-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--jh-border);
    font-size: 16px;
    color: var(--jh-brand);
}

.jh-resume-zone.is-error {
    border-color: var(--jh-error);
    background: #fff8f6;
}

.jh-resume-zone .dropzone {
    border: none !important;
    background: transparent !important;
    min-height: auto !important;
    padding: 0 !important;
}

.jh-resume-zone .dz-message {
    margin: 0 !important;
}

.jh-wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid var(--jh-border);
    gap: 12px;
}

.jh-wizard-footer .jh-btn-primary,
.jh-wizard-footer .jh-btn-outline {
    min-width: 120px;
}

.jh-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}

.jh-fact {
    background: var(--jh-draft-bg);
    border: 1px solid var(--jh-border);
    border-radius: 12px;
    padding: 14px 16px;
}

.jh-fact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--jh-meta);
    margin-bottom: 4px;
}

.jh-fact-value {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--jh-ink);
    line-height: 1.4;
}

.jh-success {
    text-align: center;
    padding: 30px 10px;
}

.jh-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--jh-hero);
    color: var(--jh-brand);
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}

.jh-success-title {
    font-size: 24px;
    margin: 0 0 10px;
    font-weight: 700;
}

.jh-success-text {
    font-size: 15px;
    color: var(--jh-body-muted);
    margin: 0 0 6px;
}

.jh-ref-number {
    font-size: 13px;
    color: var(--jh-meta);
    margin: 0 0 30px;
}

.jh-ref-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--jh-hero);
    border: 1px solid rgba(31, 111, 84, 0.18);
    border-radius: 14px;
    padding: 12px 28px;
    margin: 18px 0 24px;
}

.jh-ref-badge span {
    font-size: 12px;
    font-weight: 600;
    color: var(--jh-muted);
}

.jh-ref-badge strong {
    font-size: 26px;
    letter-spacing: 0.08em;
    color: var(--jh-brand);
    font-variant-numeric: tabular-nums;
}

.jh-summary[hidden],
.jh-summary-photo[hidden] {
    display: none !important;
}

.jh-summary {
    text-align: start;
    max-width: 640px;
    margin: 0 auto 28px;
    border: 1px solid var(--jh-border);
    border-radius: 16px;
    padding: 20px;
    background: var(--jh-draft-bg);
}

.jh-summary-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.jh-summary-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--jh-border);
}

.jh-summary-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jh-summary-identity {
    min-width: 0;
}

.jh-summary-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.jh-summary-meta,
.jh-summary-job {
    font-size: 13px;
    color: var(--jh-body-muted);
    line-height: 1.5;
}

.jh-summary-job {
    color: var(--jh-brand);
    font-weight: 600;
    margin-top: 2px;
}

.jh-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.jh-summary-item {
    background: #fff;
    border: 1px solid var(--jh-border);
    border-radius: 10px;
    padding: 10px 12px;
}

.jh-summary-item span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--jh-meta);
    margin-bottom: 3px;
}

.jh-summary-item strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--jh-ink);
    line-height: 1.4;
    word-break: break-word;
}

.jh-success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.jh-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 31, 31, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 16px;
}

.jh-modal-overlay.is-open {
    display: flex;
}

.jh-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    max-width: 380px;
    width: 100%;
    text-align: center;
}

.jh-modal-title {
    font-size: 18px;
    margin: 0 0 12px;
    font-weight: 700;
}

.jh-modal-text {
    font-size: 14px;
    color: var(--jh-body-muted);
    margin: 0 0 24px;
}

.jh-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.jh-step-pane { display: none; }
.jh-step-pane.is-active { display: block; }

/* Keep file inputs in the layout (not display:none) so programmatic / label clicks open the picker */
.jh-hidden-input {
    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;
    opacity: 0 !important;
}

@media (max-width: 992px) {
    .jh-form-grid--3 {
        grid-template-columns: 1fr 1fr;
    }

    .jh-form-grid--3 #fieldBirth {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .jh-grid,
    .jh-form-grid,
    .jh-form-grid--3,
    .jh-draft-grid {
        grid-template-columns: 1fr;
    }

    .jh-form-grid--3 #fieldBirth {
        grid-column: auto;
    }

    .jh-birth-panel-grid.is-years {
        grid-template-columns: repeat(3, 1fr);
    }

    .jh-hero-inner--split {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .jh-search-wrap {
        max-width: none;
        flex-basis: auto;
    }

    .jh-hero-title {
        font-size: 24px;
    }

    .jh-stepper-label {
        display: none;
    }

    .jh-header-inner,
    .jh-hero,
    .jh-main,
    .jh-stepper-wrap,
    .jh-main--apply,
    .jh-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .jh-content-card {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .jh-card-header {
        margin: -22px -16px 22px;
        padding: 14px 16px;
        border-radius: 16px 16px 0 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
        min-height: 0;
    }

    .jh-card-header-info,
    .jh-card-header-toolbar {
        flex: 0 0 auto;
        max-width: none;
        width: 100%;
        min-height: 0;
    }

    .jh-card-header-toolbar {
        padding: 8px 10px;
    }

    .jh-card-header-toolbar .jh-stepper-line {
        margin-bottom: 0;
    }

    .jh-card-header-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .jh-photo-panel {
        flex-direction: column;
        align-items: flex-start;
        text-align: start;
        gap: 14px;
    }

    .jh-option-tabs {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .jh-option-tab {
        padding: 10px;
        gap: 8px;
    }

    .jh-option-tab-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .jh-option-tab-desc {
        display: none;
    }

    .jh-stepper-wrap--in-card {
        margin-inline: 0;
        padding-inline: 0;
    }

    .jh-nav {
        gap: 16px;
        font-size: 14px;
    }

    .jh-summary-grid {
        grid-template-columns: 1fr;
    }

    .jh-facts {
        grid-template-columns: 1fr;
    }
}
