/* ═══════════════════════════════════════════════════════════════
   HR Apply Pro — Modern Application Form  (v1.7)
   Clean, wide, current SaaS look. Brand color is injected from admin.
   ═══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --hrapp-brand:   #c0392b;
    --hrapp-brand-2: color-mix(in srgb, var(--hrapp-brand) 78%, #000);
    --hrapp-ink:     #0f172a;
    --hrapp-body:    #334155;
    --hrapp-muted:   #64748b;
    --hrapp-line:    #e2e8f0;
    --hrapp-line-2:  #cbd5e1;
    --hrapp-soft:    #f8fafc;
    --hrapp-ok:      #16a34a;
    --hrapp-err:     #ef4444;
    --hrapp-radius:  14px;
    --ui-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Outer wrapper — wide, modern card ───────────────────────── */
.hrapp-wrap {
    max-width: 1060px;
    margin: 32px auto;
    font-family: var(--ui-font);
    color: var(--hrapp-ink);
    background: #fff;
    border: 1px solid var(--hrapp-line);
    box-shadow: 0 12px 40px -12px rgba(15,23,42,.18), 0 4px 12px -8px rgba(15,23,42,.1);
    border-radius: 22px;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Header (brand gradient bar) ─────────────────────────────── */
.hrapp-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    background: linear-gradient(135deg, var(--hrapp-brand), var(--hrapp-brand-2));
    padding: 30px 44px;
    color: #fff;
}
.hrapp-logo {
    max-height: 58px; max-width: 170px; object-fit: contain;
    background: #fff; padding: 8px 12px; border-radius: 12px;
    box-shadow: 0 6px 18px -6px rgba(0,0,0,.35);
}
.hrapp-logo-text { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hrapp-header-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; margin-left: auto; flex: 0 0 auto; }
.hrapp-header-info { color: rgba(255,255,255,.9); font-size: 12.5px; line-height: 1.7; text-align: right; }
.hrapp-header-info strong { color: #fff; font-size: 17px; font-weight: 700; display: block; letter-spacing: -.01em; }
.hrapp-header-lead { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hrapp-header-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 15px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.hrapp-header-icon svg { width: 28px; height: 28px; }
.hrapp-header-copy { display: flex; flex-direction: column; min-width: 0; }
.hrapp-header-eyebrow { margin-bottom: 3px; color: rgba(255,255,255,.78); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.hrapp-header-title { color: #fff; font-size: clamp(22px, 3vw, 29px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.hrapp-header-subtitle { margin-top: 5px; color: rgba(255,255,255,.84); font-size: 13px; }

/* Language toggle (EN / ES) */
.hrapp-lang { display: inline-flex; gap: 2px; background: rgba(0,0,0,.2); border-radius: 999px; padding: 3px; }
.hrapp-lang a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; transition: all .15s; letter-spacing: .03em; }
.hrapp-lang a:hover { color: #fff; }
.hrapp-lang a.active { background: #fff; color: var(--hrapp-brand); }

/* ── Progress steps — modern numbered rail ───────────────────── */
.hrapp-progress {
    display: flex;
    background: var(--hrapp-soft);
    border-bottom: 1px solid var(--hrapp-line);
    padding: 18px 44px;
    gap: 6px;
}
.hrapp-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hrapp-muted);
    position: relative;
    transition: color .2s;
}
.hrapp-step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--hrapp-line-2);
    font-size: 14px;
    line-height: 1;
    transition: all .25s;
}
.hrapp-step-circle svg { width: 17px; height: 17px; }
.hrapp-step.active { color: var(--hrapp-brand); }
.hrapp-step.active .hrapp-step-circle {
    background: var(--hrapp-brand);
    border-color: var(--hrapp-brand);
    color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--hrapp-brand) 18%, transparent);
    transform: scale(1.06);
}
.hrapp-step.done { color: var(--hrapp-ok); }
.hrapp-step.done .hrapp-step-circle { background: var(--hrapp-ok); border-color: var(--hrapp-ok); color: #fff; }

/* ── Panels ──────────────────────────────────────────────────── */
.hrapp-panel { display: none; }
.hrapp-panel.active { display: block; animation: hrapp-fade .3s ease; }
@keyframes hrapp-fade { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.hrapp-doc-page { padding: 40px 44px 8px; }

.hrapp-doc-title { font-size: 30px; font-weight: 800; color: var(--hrapp-ink); margin: 0 0 6px; letter-spacing: -.025em; }

/* ── Policy / info box ───────────────────────────────────────── */
.hrapp-policy-box {
    background: color-mix(in srgb, var(--hrapp-brand) 6%, #fff);
    border: 1px solid color-mix(in srgb, var(--hrapp-brand) 22%, #fff);
    border-left: 4px solid var(--hrapp-brand);
    padding: 14px 18px; margin: 18px 0 26px;
    font-size: 13.5px; color: var(--hrapp-body); line-height: 1.6; border-radius: 10px;
}

/* ── Employer / position summary ─────────────────────────────── */
.hrapp-emp-header {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
    margin-bottom: 26px;
}
.hrapp-emp-header-cell {
    background: var(--hrapp-soft);
    border: 1px solid var(--hrapp-line);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--hrapp-muted);
}
.hrapp-emp-header-cell:first-child { border-right: 1px solid var(--hrapp-line); }
.hrapp-emp-header-val { display: block; font-weight: 700; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--hrapp-ink); margin-top: 6px; min-height: 22px; }

/* ── Open position chooser and role details ─────────────────── */
.hrapp-position-chooser {
    display: grid; grid-template-columns: minmax(230px,.8fr) minmax(320px,1.4fr); gap: 18px; align-items: center;
    margin: 0 0 14px; padding: 18px; border: 1px solid color-mix(in srgb, var(--hrapp-brand) 25%, #fff);
    border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--hrapp-brand) 7%, #fff), #fff 64%);
    box-shadow: 0 10px 28px -22px var(--hrapp-brand);
}
.hrapp-position-company { display: flex; align-items: center; gap: 12px; padding-right: 18px; border-right: 1px solid var(--hrapp-line); }
.hrapp-position-company-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: var(--hrapp-brand); color: #fff; font-size: 15px; box-shadow: 0 7px 16px -8px var(--hrapp-brand); }
.hrapp-position-company strong { display: block; margin-top: 3px; color: var(--hrapp-ink); font-size: 15px; line-height: 1.3; }
.hrapp-position-kicker { display: block; color: var(--hrapp-muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hrapp-position-select-field { margin: 0; }
.hrapp-position-select-field label { color: var(--hrapp-ink); font-size: 13px; }
.hrapp-position-select-field select { min-height: 48px; border-color: color-mix(in srgb, var(--hrapp-brand) 38%, #fff); font-weight: 650; }
.hrapp-position-details { margin: 0 0 28px; padding: 20px 22px; border: 1px solid var(--hrapp-line); border-left: 4px solid var(--hrapp-brand); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px -28px rgba(15,23,42,.55); animation: hrapp-role-in .25s ease; }
.hrapp-position-details[hidden] { display: none !important; }
@keyframes hrapp-role-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.hrapp-position-details-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.hrapp-position-details h3 { margin: 4px 0 0; color: var(--hrapp-ink); font-size: 20px; letter-spacing: -.015em; }
.hrapp-position-details > p { margin: 14px 0 0; color: var(--hrapp-body); font-size: 13.5px; line-height: 1.65; }
.hrapp-position-meta { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hrapp-position-meta > span { min-width: 100px; padding: 8px 11px; border-radius: 10px; background: var(--hrapp-soft); border: 1px solid var(--hrapp-line); }
.hrapp-position-meta small { display: block; margin-bottom: 2px; color: var(--hrapp-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.hrapp-position-meta strong { display: block; color: var(--hrapp-ink); font-size: 11.5px; }
.hrapp-position-requirements { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hrapp-line); }
.hrapp-position-requirements > strong { color: var(--hrapp-ink); font-size: 12px; }
.hrapp-position-requirements ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 20px; margin: 10px 0 0; padding: 0; list-style: none; }
.hrapp-position-requirements li { position: relative; padding-left: 20px; color: var(--hrapp-body); font-size: 12.5px; line-height: 1.45; }
.hrapp-position-requirements li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--hrapp-ok); font-weight: 800; }

/* ── Section titles ──────────────────────────────────────────── */
.hrapp-section-title {
    font-size: 18px; font-weight: 700; color: var(--hrapp-ink);
    margin: 30px 0 14px; padding-left: 14px;
    border-left: 4px solid var(--hrapp-brand);
    display: flex; align-items: baseline; gap: 10px;
}
.hrapp-section-title small { font-size: 12px; font-weight: 500; color: var(--hrapp-muted); }

/* ── Field grid ──────────────────────────────────────────────── */
.hrapp-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; align-items: start; margin-bottom: 4px; }
.hrapp-col-1{grid-column:span 2}.hrapp-col-2{grid-column:span 3}.hrapp-col-3{grid-column:span 4}
.hrapp-col-4{grid-column:span 4}.hrapp-col-6{grid-column:span 6}.hrapp-col-8{grid-column:span 8}.hrapp-col-12{grid-column:span 12}

/* ── Modern filled/outlined fields ───────────────────────────── */
.hrapp-field { display: flex; flex-direction: column; margin-bottom: 6px; }
.hrapp-field label {
    font-size: 12.5px; font-weight: 600; color: var(--hrapp-body);
    margin-bottom: 7px; line-height: 1.3;
}
.hrapp-field input[type="text"],
.hrapp-field input[type="email"],
.hrapp-field input[type="tel"],
.hrapp-field input[type="number"],
.hrapp-field input[type="date"],
.hrapp-field input[type="month"],
.hrapp-field select,
.hrapp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--hrapp-line);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--ui-font);
    color: var(--hrapp-ink);
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    line-height: 1.35;
}
.hrapp-field textarea { resize: vertical; min-height: 92px; }
.hrapp-field select {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.hrapp-field input::placeholder, .hrapp-field textarea::placeholder { color: #94a3b8; }
.hrapp-field input:focus,
.hrapp-field select:focus,
.hrapp-field textarea:focus {
    border-color: var(--hrapp-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hrapp-brand) 16%, transparent);
}
.hrapp-field input[readonly] { background: var(--hrapp-soft); color: var(--hrapp-muted); cursor: not-allowed; }
.req { color: var(--hrapp-brand); font-weight: 700; }
.hrapp-row-divider { border: none; border-top: 1px solid var(--hrapp-line); margin: 10px 0; grid-column: span 12; }

/* ── Radios / checkboxes as pill groups ──────────────────────── */
.hrapp-check-group {
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    padding: 14px 16px; margin-bottom: 12px;
    background: var(--hrapp-soft);
    border: 1px solid var(--hrapp-line);
    border-radius: 12px;
}
.hrapp-label-inline { font-size: 14px; font-weight: 600; color: var(--hrapp-ink); flex: 1; min-width: 220px; line-height: 1.4; }
.hrapp-radio {
    display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer;
    padding: 7px 14px; background: #fff; border: 1.5px solid var(--hrapp-line); border-radius: 999px; transition: all .15s;
}
.hrapp-radio:hover { border-color: var(--hrapp-line-2); }
.hrapp-radio:has(input:checked) { border-color: var(--hrapp-brand); background: color-mix(in srgb, var(--hrapp-brand) 8%, #fff); color: var(--hrapp-brand); font-weight: 600; }
.hrapp-radio input[type="radio"] { accent-color: var(--hrapp-brand); width: 16px; height: 16px; cursor: pointer; }
.hrapp-checkboxes { display: flex; gap: 10px; flex-wrap: wrap; }
.hrapp-checkboxes label {
    display: inline-flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer;
    padding: 7px 13px; background: #fff; border: 1.5px solid var(--hrapp-line); border-radius: 999px; transition: all .15s;
}
.hrapp-checkboxes label:has(input:checked) { border-color: var(--hrapp-brand); background: color-mix(in srgb, var(--hrapp-brand) 8%, #fff); color: var(--hrapp-brand); font-weight: 600; }
.hrapp-checkboxes input[type="checkbox"] { accent-color: var(--hrapp-brand); width: 15px; height: 15px; }

.hrapp-hidden { display: none !important; }

/* ── Repeatable blocks (employment / licenses) ───────────────── */
.hrapp-employer-block, .hrapp-license-row {
    background: var(--hrapp-soft);
    border: 1px solid var(--hrapp-line);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.hrapp-employer-num {
    font-size: 11px; font-weight: 700; color: var(--hrapp-brand);
    text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px;
    display: inline-block; padding: 3px 10px; background: color-mix(in srgb, var(--hrapp-brand) 10%, #fff); border-radius: 999px;
}
.hrapp-license-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Tables (education) ──────────────────────────────────────── */
.hrapp-table-wrap { overflow-x: auto; margin: 12px 0 20px; border: 1px solid var(--hrapp-line); border-radius: 12px; }
.hrapp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hrapp-table th { background: var(--hrapp-soft); color: var(--hrapp-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 11px 12px; border-bottom: 1px solid var(--hrapp-line); text-align: left; }
.hrapp-table td { padding: 8px 10px; border-bottom: 1px solid var(--hrapp-line); vertical-align: middle; }
.hrapp-table tr:last-child td { border-bottom: none; }
.hrapp-table td:first-child { font-weight: 600; white-space: nowrap; }
.hrapp-table input[type="text"] { width: 100%; padding: 8px 10px; border: 1.5px solid var(--hrapp-line); border-radius: 8px; font-size: 13.5px; font-family: var(--ui-font); background: #fff; outline: none; }
.hrapp-table input[type="text"]:focus { border-color: var(--hrapp-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hrapp-brand) 14%, transparent); }

/* ── File upload dropzone ────────────────────────────────────── */
.hrapp-file-drop {
    border: 2px dashed var(--hrapp-line-2); border-radius: 14px; padding: 26px;
    text-align: center; background: var(--hrapp-soft); cursor: pointer;
    transition: border-color .2s, background .2s; font-size: 14px; color: var(--hrapp-muted); margin-top: 8px;
}
.hrapp-file-drop:hover, .hrapp-file-drop.dragover { border-color: var(--hrapp-brand); background: color-mix(in srgb, var(--hrapp-brand) 5%, #fff); }
.hrapp-icon { display: block; margin-bottom: 8px; }
.hrapp-icon svg { width: 32px; height: 32px; stroke: var(--hrapp-brand); }
.hrapp-file-link { color: var(--hrapp-brand); font-weight: 700; text-decoration: underline; cursor: pointer; }
.hrapp-file-name { margin-top: 10px; font-size: 13px; color: var(--hrapp-ok); font-weight: 600; }

/* ── Authorization text ──────────────────────────────────────── */
.hrapp-auth-text {
    font-size: 13.5px; color: var(--hrapp-body); line-height: 1.7;
    background: var(--hrapp-soft); border: 1px solid var(--hrapp-line); border-left: 4px solid var(--hrapp-brand);
    padding: 16px 18px; border-radius: 12px; margin-bottom: 22px;
}

/* ── Signature ───────────────────────────────────────────────── */
.hrapp-signature-wrap { border: 1.5px solid var(--hrapp-line-2); border-radius: 14px; overflow: hidden; background: #fff; }
#hrapp-sig-canvas { display: block; width: 100%; height: 160px; cursor: crosshair; touch-action: none; background: repeating-linear-gradient(0deg, #fff, #fff 31px, #f1f5f9 32px); }
.hrapp-sig-actions { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--hrapp-soft); border-top: 1px solid var(--hrapp-line); }
.hrapp-sig-hint { font-size: 12px; color: var(--hrapp-muted); }
.hrapp-btn-ghost { background: #fff; border: 1.5px solid var(--hrapp-line-2); padding: 8px 16px; border-radius: 8px; font-size: 12.5px; cursor: pointer; color: var(--hrapp-body); font-family: var(--ui-font); font-weight: 600; transition: background .15s; }
.hrapp-btn-ghost:hover { background: var(--hrapp-soft); }

/* ── Navigation bar ──────────────────────────────────────────── */
.hrapp-nav { display: flex; justify-content: space-between; align-items: center; padding: 22px 44px; border-top: 1px solid var(--hrapp-line); background: var(--hrapp-soft); }
.hrapp-btn-prev, .hrapp-btn-next, .hrapp-btn-submit {
    padding: 13px 30px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--ui-font);
    border: none; transition: transform .12s, box-shadow .15s, opacity .15s;
}
.hrapp-btn-prev { background: #fff; color: var(--hrapp-body); border: 1.5px solid var(--hrapp-line-2); }
.hrapp-btn-prev:hover { background: #fff; border-color: var(--hrapp-muted); }
.hrapp-btn-next { background: linear-gradient(135deg, var(--hrapp-brand), var(--hrapp-brand-2)); color: #fff; box-shadow: 0 8px 20px -8px var(--hrapp-brand); }
.hrapp-btn-next:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px var(--hrapp-brand); }
.hrapp-btn-submit { background: linear-gradient(135deg, var(--hrapp-ok), #15803d); color: #fff; display: inline-flex; align-items: center; gap: 9px; box-shadow: 0 8px 20px -8px var(--hrapp-ok); }
.hrapp-btn-submit:hover { transform: translateY(-1px); }
.hrapp-btn-submit:disabled { opacity: .7; cursor: default; transform: none; }

/* ── Inline messages ─────────────────────────────────────────── */
.hrapp-message { padding: 15px 20px; border-radius: 12px; font-size: 14.5px; display: flex; align-items: center; gap: 10px; margin: 16px 44px; font-weight: 500; }
.hrapp-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* validation */
.hrapp-field-error input, .hrapp-field-error select, .hrapp-field-error textarea { border-color: var(--hrapp-err) !important; box-shadow: 0 0 0 3px rgba(239,68,68,.14) !important; }
.hrapp-error-msg { font-size: 12px; color: var(--hrapp-err); margin-top: 5px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   THANK-YOU / SUCCESS SCREEN
   ═══════════════════════════════════════════════════════════════ */
.hrapp-thankyou { text-align: center; padding: 64px 40px; animation: hrapp-fade .4s ease; }
.hrapp-ty-check {
    width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%;
    background: linear-gradient(135deg, var(--hrapp-ok), #15803d);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 16px 40px -12px var(--hrapp-ok);
    animation: hrapp-pop .5s cubic-bezier(.17,.89,.32,1.28) .1s both;
}
.hrapp-ty-check svg { width: 48px; height: 48px; stroke: #fff; stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hrapp-ty-check svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: hrapp-draw .45s ease .4s forwards; }
@keyframes hrapp-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes hrapp-draw { to { stroke-dashoffset: 0; } }
.hrapp-ty-title { font-size: 30px; font-weight: 800; color: var(--hrapp-ink); margin: 0 0 10px; letter-spacing: -.02em; }
.hrapp-ty-sub { font-size: 16px; color: var(--hrapp-body); max-width: 480px; margin: 0 auto 28px; line-height: 1.6; }
.hrapp-ty-card { max-width: 440px; margin: 0 auto 28px; text-align: left; background: var(--hrapp-soft); border: 1px solid var(--hrapp-line); border-radius: 16px; padding: 22px 26px; }
.hrapp-ty-card h4 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--hrapp-brand); text-transform: uppercase; letter-spacing: .05em; }
.hrapp-ty-card ul { margin: 0; padding-left: 4px; list-style: none; }
.hrapp-ty-card li { position: relative; padding: 6px 0 6px 28px; font-size: 14.5px; color: var(--hrapp-body); }
.hrapp-ty-card li::before { content: '✓'; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; background: var(--hrapp-ok); color: #fff; border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.hrapp-ty-btn {
    display: inline-block; padding: 13px 30px; border-radius: 12px; font-size: 15px; font-weight: 700;
    background: linear-gradient(135deg, var(--hrapp-brand), var(--hrapp-brand-2)); color: #fff; text-decoration: none; cursor: pointer; border: none;
    box-shadow: 0 8px 20px -8px var(--hrapp-brand); transition: transform .12s;
}
.hrapp-ty-btn:hover { transform: translateY(-1px); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 720px) {
    .hrapp-wrap { margin: 16px; border-radius: 18px; }
    .hrapp-header { padding: 24px 22px; flex-wrap: wrap; gap: 18px; }
    .hrapp-header-lead { width: 100%; align-items: flex-start; }
    .hrapp-header-title { font-size: 23px; }
    .hrapp-header-side { width: 100%; margin-left: 0; align-items: flex-start; }
    .hrapp-header-info { text-align: left; }
    .hrapp-progress { padding: 14px 16px; }
    .hrapp-step span:not(.hrapp-step-circle) { display: none; }
    .hrapp-doc-page { padding: 26px 20px 4px; }
    .hrapp-nav { padding: 16px 20px; }
    .hrapp-message { margin: 12px 20px; }
    .hrapp-doc-title { font-size: 23px; }
    .hrapp-col-1,.hrapp-col-2,.hrapp-col-3,.hrapp-col-4,.hrapp-col-6,.hrapp-col-8 { grid-column: span 12; }
    .hrapp-license-row { grid-template-columns: 1fr; }
    .hrapp-emp-header { grid-template-columns: 1fr; }
    .hrapp-emp-header-cell:first-child { border-right: 1px solid var(--hrapp-line); }
    .hrapp-position-chooser { grid-template-columns: 1fr; padding: 16px; }
    .hrapp-position-company { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--hrapp-line); }
    .hrapp-position-details-top { flex-direction: column; }
    .hrapp-position-meta { justify-content: flex-start; }
    .hrapp-position-requirements ul { grid-template-columns: 1fr; }
    .hrapp-label-inline { min-width: unset; width: 100%; }
    .hrapp-check-group { flex-direction: column; align-items: flex-start; }
}
