:root {
  color-scheme: only light;
  --fh-bg: #f8f8f6;
  --fh-warm: #f0efeb;
  --fh-black: #1a1a1a;
  --fh-dark: #2a2a2a;
  --fh-mid: #6b6b6b;
  --fh-light: #9a9a9a;
  --fh-faint: #d4d4d4;
  --fh-amber: #d4a849;
  --fh-space: #070708;
  --white: #fff;
  --error: #9c3025;
  --success: #397156;
  --sidebar: 360px;
  font-family: Inter, Arial, sans-serif;
  color: var(--fh-black);
  background: var(--fh-bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--fh-bg); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.topbar {
  height: 68px;
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  color: var(--white);
  background: var(--fh-space);
  border-bottom: 1px solid #252525;
}
.logo { color: inherit; text-decoration: none; font-size: 21px; letter-spacing: -.02em; }
.logo b { font-weight: 900; }
.logo span { font-weight: 400; }
.header-meta { display: flex; align-items: center; gap: 9px; color: #aaa; font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fh-amber); box-shadow: 0 0 0 4px rgba(212, 168, 73, .12); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.language-switcher { display: flex; padding: 3px; background: #202020; border: 1px solid #373737; }
.language-switcher button { min-width: 66px; height: 28px; padding: 0 10px; color: #8f8f8f; background: transparent; border: 0; font-size: 10px; font-weight: 600; cursor: pointer; }
.language-switcher button.is-active { color: var(--fh-space); background: var(--fh-amber); }


.shell { min-height: 100vh; padding-top: 68px; }
.sidebar {
  position: fixed;
  inset: 68px auto 0 0;
  width: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 54px 38px 28px;
  background: var(--fh-warm);
  border-right: 1px solid var(--fh-faint);
  overflow-y: auto;
}
.kicker { margin: 0 0 18px; color: var(--fh-light); font-size: 10px; font-weight: 700; letter-spacing: .27em; text-transform: uppercase; }
.sidebar-intro h1 { margin: 0; font: 500 34px/1.12 "Playfair Display", Georgia, serif; letter-spacing: -.02em; }
.sidebar-intro h1 em { color: var(--fh-mid); font-weight: 400; }
.sidebar-intro > p:last-child { margin: 20px 0 0; color: var(--fh-mid); font-size: 12px; font-weight: 400; line-height: 1.7; }
.steps { display: grid; margin: 46px 0 30px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 13px;
  align-items: start;
  width: 100%;
  padding: 14px 0;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--fh-faint);
  cursor: pointer;
}
.step:last-child { border-bottom: 1px solid var(--fh-faint); }
.step > span:first-child { color: var(--fh-light); font-size: 10px; font-weight: 700; letter-spacing: .12em; transition: color .2s; }
.step > span:last-child { display: grid; gap: 4px; }
.step strong { font-size: 12px; font-weight: 600; }
.step small { color: var(--fh-light); font-size: 10px; }
.step::before { content: ""; position: absolute; left: -38px; top: 0; bottom: 0; width: 3px; background: transparent; }
.step.is-active::before { background: var(--fh-amber); }
.step.is-active > span:first-child { color: var(--fh-amber); }
.step.is-complete > span:first-child { color: var(--success); }
.save-state { margin-top: auto; padding-top: 20px; color: var(--fh-light); font-size: 10px; letter-spacing: .05em; }
.save-state::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--success); vertical-align: 1px; }

.workspace { margin-left: var(--sidebar); padding: 62px clamp(34px, 6vw, 96px) 80px; }
.language-note { display: flex; align-items: center; gap: 16px; max-width: 900px; margin: 0 auto 34px; padding: 13px 16px; color: var(--fh-mid); background: #fff; border: 1px solid var(--fh-faint); border-left: 3px solid var(--fh-amber); font-size: 10px; line-height: 1.55; }
.language-note strong { flex: 0 0 auto; color: var(--fh-black); font-size: 10px; }

#handoffForm { max-width: 900px; margin: 0 auto; }
.form-step { display: none; animation: enter .24s ease-out; }
.form-step.is-active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.section-heading { margin-bottom: 42px; padding-bottom: 31px; border-bottom: 1px solid var(--fh-faint); }
.section-heading h2, .success-panel h2 { max-width: 700px; margin: 0 0 14px; font: 500 clamp(31px, 4vw, 47px)/1.06 "Playfair Display", Georgia, serif; letter-spacing: -.025em; }
.section-heading > p:last-child, .success-panel > p { max-width: 660px; margin: 0; color: var(--fh-mid); font-size: 13px; font-weight: 300; line-height: 1.75; }
.section-visual { display: grid; grid-template-columns: 250px 1fr; min-height: 154px; margin: -18px 0 46px; background: var(--fh-space); color: white; border-left: 3px solid var(--fh-amber); }
.section-visual svg { width: 100%; height: 154px; padding: 18px 24px; fill: none; stroke: #777; stroke-width: 1.5; }
.section-visual svg .accent { stroke: var(--fh-amber); }
.section-visual figcaption { display: flex; flex-direction: column; justify-content: center; padding: 24px 28px 24px 4px; }
.section-visual figcaption span { margin-bottom: 10px; color: var(--fh-amber); font-size: 9px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.section-visual figcaption strong { font: 500 19px/1.3 "Playfair Display", Georgia, serif; }
.section-visual figcaption p { margin: 9px 0 0; color: #aaa; font-size: 10px; font-weight: 300; line-height: 1.65; }


.form-alert { position: sticky; z-index: 10; top: 84px; margin: -34px 0 28px; padding: 13px 16px; color: var(--error); background: #fff4f1; border: 1px solid #e9b9b1; font-size: 12px; line-height: 1.5; }
.access-panel { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 0 0 28px; padding: 20px 22px; background: var(--fh-space); color: white; border-left: 3px solid var(--fh-amber); }
.access-panel > div { display: grid; gap: 5px; }
.access-panel strong { font-size: 12px; }
.access-panel span { color: #aaa; font-size: 10px; }
.access-panel input { width: 230px; min-height: 42px; padding: 8px 11px; color: white; background: var(--fh-dark); border: 1px solid #525252; border-radius: 0; }

.field-group { min-width: 0; margin: 0 0 48px; padding: 0; border: 0; }
.field-group > legend, .legend-row legend { margin: 0 0 22px; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.grid { display: grid; gap: 23px 25px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid .full { grid-column: 1 / -1; }
.field { display: grid; align-content: start; gap: 8px; color: var(--fh-mid); font-size: 11px; font-weight: 500; line-height: 1.4; }
.field > span { color: var(--fh-dark); }
.field b { color: var(--fh-amber); }
.field small { color: var(--fh-light); font-size: 9px; font-weight: 400; line-height: 1.5; }
.field-guidance { display: block; margin-top: 2px; padding: 9px 11px; color: var(--fh-mid) !important; background: var(--fh-warm); border-left: 2px solid var(--fh-faint); font-size: 9px !important; font-weight: 400 !important; line-height: 1.6 !important; }
.field-guidance span { color: var(--fh-black); font-weight: 700; }
.field-guidance em { display: block; margin-top: 3px; color: #7d6a3c; font-style: normal; }
.access-panel label { display: grid; gap: 8px; }
.access-panel .field-guidance { width: 230px; margin: 0; color: #aaa !important; background: #202020; border-left-color: var(--fh-amber); }
.access-panel .field-guidance span { color: white; }
.access-panel .field-guidance em { color: #c8a95e; }

input, textarea, select {
  width: 100%;
  min-height: 47px;
  padding: 11px 13px;
  color: #1a1a1a;
  caret-color: #1a1a1a;
  background: #fdfdfc;
  border: 1px solid #c9c9c6;
  border-radius: 0;
  outline: none;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
input:focus, textarea:focus, select:focus { background-color: var(--white); border-color: var(--fh-dark); box-shadow: 0 0 0 3px rgba(26, 26, 26, .07); }
input:user-invalid, textarea:user-invalid, select:user-invalid, .is-invalid { border-color: var(--error); }
::placeholder { color: #aaa; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1a1a1a;
  -webkit-box-shadow: 0 0 0 60px #fdfdfc inset;
}
.access-panel input { color: #fff; caret-color: #fff; background: var(--fh-dark); }
.access-panel input:-webkit-autofill, .access-panel input:-webkit-autofill:hover, .access-panel input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 60px var(--fh-dark) inset;
}

.notice { display: grid; gap: 6px; margin: 0 0 34px; padding: 18px 20px; background: var(--fh-warm); border-left: 3px solid var(--fh-amber); }
.notice strong { font-size: 12px; }
.notice span { color: var(--fh-mid); font-size: 10px; line-height: 1.6; }
.question-list { border-top: 1px solid var(--fh-faint); }
.question-list label { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 30px; align-items: center; min-height: 68px; padding: 10px 0; border-bottom: 1px solid var(--fh-faint); color: var(--fh-dark); font-size: 11px; line-height: 1.55; }
.question-list select { min-height: 41px; }
.question-list label > .field-guidance { grid-column: 1; margin: -20px 0 4px; }
.question-list label > select { grid-column: 2; grid-row: 1 / span 2; }


.difficulty-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; margin-bottom: 45px; border: 1px solid var(--fh-faint); }
.difficulty-grid article { min-height: 190px; padding: 23px; background: rgba(255,255,255,.45); border-right: 1px solid var(--fh-faint); }
.difficulty-grid article:first-child { border-top: 3px solid var(--fh-amber); }
.difficulty-grid article:last-child { border-right: 0; }
.difficulty-grid span { display: block; margin-bottom: 18px; color: var(--fh-light); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.difficulty-grid strong { display: block; font: 500 24px "Playfair Display", Georgia, serif; }
.difficulty-grid p { margin: 13px 0 0; color: var(--fh-mid); font-size: 10px; line-height: 1.7; }
.legend-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.legend-row legend { margin: 0; }
.text-button { padding: 4px 0; color: var(--fh-black); background: none; border: 0; border-bottom: 1px solid var(--fh-black); font-size: 10px; font-weight: 700; cursor: pointer; }
.repeater-list { display: grid; gap: 12px; }
.repeater-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 180px auto; gap: 14px; align-items: end; padding: 16px; background: var(--fh-warm); border-left: 2px solid var(--fh-faint); }
.row-index { align-self: center; color: var(--fh-light); font-size: 10px; font-weight: 700; }
.remove-button { min-height: 42px; padding: 0 6px; color: var(--fh-light); background: none; border: 0; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.remove-button:hover { color: var(--error); }

.employee-list { display: grid; gap: 20px; }
.employee-card { background: rgba(255, 255, 255, .56); border: 1px solid var(--fh-faint); }
.employee-card > header { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 18px; background: var(--fh-warm); border-bottom: 1px solid var(--fh-faint); }
.employee-card > header > div { display: flex; align-items: center; gap: 13px; }
.employee-number { color: var(--fh-amber); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.employee-title { font-size: 11px; font-weight: 600; }
.employee-card > .grid { padding: 23px; }
.review-group { margin-top: 50px; }
.review-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 26px; background: var(--fh-space); color: white; }
.review-summary > div { min-height: 94px; padding: 20px; border-right: 1px solid #333; }
.review-summary > div:last-child { border-right: 0; }
.review-summary span { display: block; margin-bottom: 10px; color: #8f8f8f; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.review-summary strong { font: 500 23px "Playfair Display", Georgia, serif; }
.attestation { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; color: var(--fh-mid); font-size: 10px; line-height: 1.65; cursor: pointer; }
.attestation input { appearance: none; width: 17px; min-height: 17px; height: 17px; margin: 0; padding: 0; background: white; border: 1px solid #aaa; }
.attestation input:checked { background: var(--fh-black); box-shadow: inset 0 0 0 4px white; }
.attestation .field-guidance { grid-column: 2; }


.form-actions { display: flex; align-items: center; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--fh-faint); }
.action-spacer { flex: 1; }
.button { min-height: 46px; padding: 0 24px; border: 1px solid var(--fh-black); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: color .15s, background .15s; }
.button.primary { color: white; background: var(--fh-black); }
.button.primary:hover { color: var(--fh-black); background: var(--fh-amber); border-color: var(--fh-amber); }
.button.secondary { color: var(--fh-black); background: transparent; }
.button.secondary:hover { background: var(--fh-warm); }
.button:disabled { opacity: .5; cursor: wait; }
.mobile-progress { display: none; }

.success-panel { max-width: 670px; margin: 7vh auto 0; padding: 50px; background: white; border-top: 3px solid var(--fh-amber); box-shadow: 0 20px 70px rgba(0,0,0,.07); animation: enter .3s ease-out; }
.success-mark { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 40px; color: white; background: var(--success); border-radius: 50%; font-size: 18px; }
.success-panel > p { margin-bottom: 30px; }
.reference-card { display: grid; grid-template-columns: 1fr auto; gap: 7px 20px; margin: 35px 0 30px; padding: 20px; background: var(--fh-warm); }
.reference-card span { grid-column: 1 / -1; color: var(--fh-light); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.reference-card strong { font-size: 15px; letter-spacing: .04em; }
.reference-card button { color: var(--fh-mid); background: none; border: 0; border-bottom: 1px solid var(--fh-mid); font-size: 9px; cursor: pointer; }
.sr-only { 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; }
html[lang="hi"] body { font-family: "Nirmala UI", Mangal, Inter, Arial, sans-serif; }
html[lang="hi"] .sidebar-intro h1,
html[lang="hi"] .section-heading h2,
html[lang="hi"] .success-panel h2,
html[lang="hi"] .section-visual figcaption strong,
html[lang="hi"] .review-summary strong { font-family: "Nirmala UI", Mangal, sans-serif; font-weight: 600; }
html[lang="hi"] .kicker,
html[lang="hi"] .field-group > legend,
html[lang="hi"] .legend-row legend { letter-spacing: .08em; }


@media (max-width: 920px) {
  :root { --sidebar: 270px; }
  .sidebar { padding: 42px 25px 24px; }
  .step::before { left: -25px; }
  .workspace { padding-inline: 35px; }
  .difficulty-grid { grid-template-columns: 1fr; }
  .difficulty-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--fh-faint); }
  .difficulty-grid article:last-child { border-bottom: 0; }
  .repeater-row { grid-template-columns: 24px 1fr 150px; }
  .repeater-row .remove-button { grid-column: 2 / -1; justify-self: end; min-height: 20px; }
}

@media (max-width: 700px) {
  .topbar { height: 58px; padding: 0 18px; }
  .header-meta { font-size: 9px; }
  .header-actions { gap: 8px; }
  .header-meta { display: none; }
  .language-switcher button { min-width: 58px; padding-inline: 7px; }
  .shell { padding-top: 58px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; padding: 24px 18px 55px; }
  .language-note { align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 30px; }
  .mobile-progress { display: flex; align-items: center; gap: 16px; max-width: 900px; margin: 0 auto 36px; color: var(--fh-light); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .mobile-progress div { position: relative; flex: 1; height: 2px; background: var(--fh-faint); }
  .mobile-progress i { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--fh-amber); transition: width .2s; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 34px; }
  .section-visual { grid-template-columns: 112px 1fr; min-height: 138px; margin-top: -8px; }
  .section-visual svg { height: 138px; padding: 20px 12px; }
  .section-visual figcaption { padding: 20px 16px 20px 4px; }
  .section-visual figcaption strong { font-size: 15px; }
  .section-visual figcaption p { font-size: 9px; }
  .grid.two { grid-template-columns: 1fr; }
  .grid .full { grid-column: auto; }
  .field-group { margin-bottom: 40px; }
  .access-panel { align-items: stretch; flex-direction: column; gap: 14px; }
  .access-panel input { width: 100%; }
  .question-list label { grid-template-columns: 1fr; gap: 8px; padding: 15px 0; }
  .question-list label > .field-guidance { grid-column: 1; grid-row: auto; margin: 0; }
  .question-list label > select { grid-column: 1; grid-row: auto; width: 100%; }
  .repeater-row { grid-template-columns: 22px 1fr; }
  .repeater-row .compact { grid-column: 2; }
  .repeater-row .remove-button { grid-column: 2; }
  .employee-card > .grid { padding: 18px; }
  .review-summary { grid-template-columns: 1fr; }
  .review-summary > div { min-height: 74px; border-right: 0; border-bottom: 1px solid #333; }
  .review-summary > div:last-child { border-bottom: 0; }
  .form-actions { position: sticky; z-index: 5; bottom: 0; margin-inline: -18px; padding: 14px 18px; background: rgba(248,248,246,.96); }
  .button { padding-inline: 17px; }
  .success-panel { margin-top: 2vh; padding: 32px 24px; }
  .reference-card { grid-template-columns: 1fr; }
  .reference-card span { grid-column: auto; }
  .reference-card button { justify-self: start; padding: 0; }
}
