







.hh-form { background: var(--soft, #f4f6f9); padding-bottom: 56px; font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.hh-form .hh-bc ol { max-width: 820px; }


.hh-form > section:first-of-type { padding: 30px 0 76px; }
.hh-form > section:first-of-type h1 { font-size: clamp(1.9rem, 4.4vw, 2.75rem); margin: 6px auto 12px; }
.hh-form > section:first-of-type p { margin-bottom: 6px; }


.hh-form > .container.bg-white {
  position: relative; z-index: 1;
  margin-top: -48px !important; max-width: 820px !important;
  border: 1px solid var(--line, #e3e8ef); border-radius: var(--r, 16px) !important;
  box-shadow: 0 18px 50px rgba(5, 28, 44, .10) !important;
  padding: 30px 30px 26px !important;
}
@media (max-width: 576px) {
  .hh-form > .container.bg-white { width: auto; margin: -36px 12px 0 !important; padding: 20px 16px 18px !important; }
}


.hh-form .step-indicator { gap: 6px; margin-bottom: 26px; }
.hh-form .step-indicator div { border-bottom: 3px solid var(--line, #e3e8ef); color: var(--muted, #5b6474); font-weight: 700; padding: 10px 4px; }
.hh-form .step-indicator .active { border-color: var(--accent, #2a5bd4); color: var(--accent, #2a5bd4); }


.hh-form h2, .hh-form h3, .hh-form h4 { color: var(--navy, #051c2c); font-weight: 800; }
.hh-form .form-label, .hh-form .field-label { color: var(--navy, #051c2c); font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.hh-form .form-text, .hh-form small.text-muted { color: var(--muted, #5b6474) !important; }


.hh-form .form-control,
.hh-form .form-select,
.hh-form select,
.hh-form textarea {
  border: 1.5px solid #cfd8e3; border-radius: 10px; min-height: 46px;
  font-size: 16px; padding: 10px 14px; background-color: #fff; color: var(--ink, #1e293b);
  transition: border-color .15s, box-shadow .15s;
}
.hh-form textarea { min-height: 112px; line-height: 1.55; }
.hh-form input[type="file"].form-control { padding: 9px 12px; }
.hh-form .form-control:focus,
.hh-form .form-select:focus,
.hh-form select:focus,
.hh-form textarea:focus { border-color: var(--accent, #2a5bd4); box-shadow: 0 0 0 3px rgba(42, 91, 212, .18); outline: 0; }
.hh-form .form-control.is-invalid, .hh-form .form-select.is-invalid { border-color: #dc3545; }
.hh-form .form-check-input { width: 1.15em; height: 1.15em; border: 1.5px solid #9aa9bd; }
.hh-form .form-check-input:checked { background-color: var(--accent, #2a5bd4); border-color: var(--accent, #2a5bd4); }
.hh-form .form-check-input:focus { box-shadow: 0 0 0 3px rgba(42, 91, 212, .18); border-color: var(--accent, #2a5bd4); }


.hh-form #profileImageWrapper { border: 2px dashed #b9c6d8 !important; background: var(--soft, #f4f6f9) !important; }


.hh-form .wizard-nav { border-top: 1px solid var(--line, #e3e8ef); padding-top: 18px; margin-top: 24px; gap: 10px; }
.hh-form .btn { border-radius: 10px; font-weight: 700; padding: 12px 22px; }
.hh-form .btn-primary,
.hh-form .btn-success {
  background: var(--accent, #2a5bd4); border-color: var(--accent, #2a5bd4); color: #fff;
  box-shadow: 0 8px 22px rgba(42, 91, 212, .28);
}
.hh-form .btn-primary:hover, .hh-form .btn-primary:focus-visible,
.hh-form .btn-success:hover, .hh-form .btn-success:focus-visible { background: var(--accent-2, #244fbd); border-color: var(--accent-2, #244fbd); color: #fff; }
.hh-form .btn-outline-secondary { border: 1.5px solid #cfd8e3; color: var(--navy, #051c2c); background: #fff; }
.hh-form .btn-outline-secondary:hover { background: var(--soft, #f4f6f9); color: var(--navy, #051c2c); border-color: #b9c6d8; }
.hh-form .btn-outline-primary { border: 1.5px solid var(--accent, #2a5bd4); color: var(--accent, #2a5bd4); background: #fff; }
.hh-form .btn-outline-primary:hover { background: var(--accent-soft, #e8eefc); color: var(--accent-2, #244fbd); }


.hh-form .alert { border-radius: 12px; }


.hh-form .nw-card { border: 1px solid var(--line, #e3e8ef); border-radius: var(--r, 16px); box-shadow: 0 18px 50px rgba(5, 28, 44, .10); }

.hh-form .nw-card h2 { font-size: 1.05rem; margin: 22px 0 12px; letter-spacing: 0; line-height: 1.3; }
.hh-form .nw-cvbox h2 { margin-top: 0; }
.hh-form .nw-btn { background: var(--accent, #2a5bd4); box-shadow: 0 8px 22px rgba(42, 91, 212, .28); }
.hh-form .nw-btn:hover, .hh-form .nw-btn:focus-visible { background: var(--accent-2, #244fbd); }
.hh-form > section.nw-hero { text-align: center; padding-left: 16px; padding-right: 16px; }
.hh-form > section.nw-hero .nw-meta { color: #d6e0ee; }


.hh-pg-hallitus2 { padding-top: 8px; min-height: calc(100vh - 128px); }
.hh-pg-hallitus2 .wizard-container { margin: 28px auto 40px; padding: 0 12px; }
.hh-pg-hallitus2 .step-card { border: 1px solid var(--line, #e3e8ef); border-radius: var(--r, 16px); box-shadow: 0 18px 50px rgba(5, 28, 44, .10); padding: 26px; }
@media (max-width: 576px) { .hh-pg-hallitus2 .step-card { padding: 18px 14px; } }
.hh-pg-hallitus2 .step-card > h1 { color: var(--navy, #051c2c); font-weight: 800; }
.hh-pg-hallitus2 .wizard-progress .step-dot.active, .hh-pg-hallitus2 .wizard-progress .line.active { background: var(--accent, #2a5bd4); }
.hh-pg-hallitus2 .wizard-progress .step-label { color: var(--muted, #5b6474); font-weight: 600; }



.hh-tp { --navy: #051c2c; --navy-mid: #0b2a42; --blue: #2a5bd4; --blue-light: #e8eefc; --blue-pale: #f3f6fd; }
.hh-tp .btn-next { background: var(--blue); border-radius: 10px; box-shadow: 0 8px 22px rgba(42, 91, 212, .28); }
.hh-tp .btn-next:hover { background: #244fbd; box-shadow: 0 10px 26px rgba(42, 91, 212, .34); }
.hh-tp .btn-next:disabled { background: var(--border); box-shadow: none; }
.hh-tp .site-header { background: #051c2c; }



.hh-form .container { scroll-margin-top: 76px; }
.hh-form .form-step { scroll-margin-top: 190px; }
@media (max-width: 400px) {
  .hh-form .step-indicator { gap: 3px; }
  .hh-form .step-indicator div { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
}



.hh-form .hh-rep-count { font-size: 13px; font-weight: 700; color: var(--ok, #1f9d68); margin: 2px 0 8px; }
.hh-form .hh-rep-cards { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hh-form .hh-rep-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line, #e3e8ef); border-left: 4px solid var(--accent, #2a5bd4); border-radius: 12px; padding: 10px 12px; }
.hh-form .hh-rep-card.is-current { border-left-color: var(--ok, #1f9d68); }
.hh-form .hh-rep-card-main { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; flex: 1 1 220px; font-size: 14px; }
.hh-form .hh-rep-card-text { min-width: 0; overflow-wrap: anywhere; }
.hh-form .hh-rep-card-acts { display: flex; gap: 4px; flex-wrap: wrap; }
.hh-form .hh-rep-link { background: none; border: 1px solid transparent; color: var(--accent, #2a5bd4); font: inherit; font-size: 13px; font-weight: 700;
  padding: 6px 8px; border-radius: 8px; cursor: pointer; min-height: 36px; }
.hh-form .hh-rep-link:hover, .hh-form .hh-rep-link:focus-visible { background: var(--accent-soft, #e8eefc); }
.hh-form .hh-rep-link[aria-pressed="true"] { color: var(--ok, #1f9d68); }
.hh-form .hh-rep-del { color: #b42318; }
.hh-form .hh-rep-del:hover, .hh-form .hh-rep-del:focus-visible { background: #fdecea; }
.hh-form .hh-rep-badge { font-size: 11px; font-weight: 800; background: var(--ok, #1f9d68); color: #fff; padding: 2px 8px; border-radius: 999px; }
.hh-form .hh-rep-editor { margin-bottom: 6px; }
.hh-form .hh-rep-editor[hidden], .hh-form .hh-rep-more[hidden], .hh-form .hh-rep-count[hidden], .hh-form .hh-rep-q[hidden], .hh-form .hh-rep-cancel[hidden] { display: none !important; }
.hh-form .hh-rep-editor-title { font-weight: 800; font-size: 14px; margin: 0 0 6px; color: var(--ink, #1e293b); }
.hh-form .hh-rep-radios { border: 0; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hh-form .hh-rep-radios legend { font-size: 14px; margin: 0 0 4px; width: 100%; float: none; padding: 0; }
.hh-form .hh-rep-radio, .hh-form .hh-lang-level { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.hh-form .hh-rep-radio input, .hh-form .hh-lang-level input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hh-form .hh-rep-radio span, .hh-form .hh-lang-level span { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 14px;
  border: 1.5px solid var(--line, #e3e8ef); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--ink, #1e293b); text-align: center; line-height: 1.2; }
.hh-form .hh-rep-radio input:checked + span, .hh-form .hh-lang-level input:checked + span { background: var(--accent, #2a5bd4); border-color: var(--accent, #2a5bd4); color: #fff; }
.hh-form .hh-rep-radio input:focus-visible + span, .hh-form .hh-lang-level input:focus-visible + span { outline: 3px solid rgba(42,91,212,.35); outline-offset: 2px; }
.hh-form .hh-rep-error { color: #b42318; font-weight: 700; font-size: 13px; margin: 8px 0 0; }
.hh-form .hh-rep-error[hidden] { display: none !important; }
.hh-form .hh-rep-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.hh-form .hh-rep-cancel { background: none; border: 0; color: var(--muted, #5b6474); font: inherit; font-weight: 700; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.hh-form .hh-rep-cancel:hover, .hh-form .hh-rep-cancel:focus-visible { background: var(--soft, #f4f6f9); }
.hh-form .hh-rep-more { border: 1.5px dashed var(--line, #c9d3e1); border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.hh-form .hh-rep-q { margin: 0; color: var(--muted, #5b6474); font-size: 14px; }
.hh-form .hh-rep-add { background: var(--accent-soft, #e8eefc); color: var(--accent, #2a5bd4); border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 800; cursor: pointer; min-height: 40px; }
.hh-form .hh-rep-add:hover, .hh-form .hh-rep-add:focus-visible { background: #d7e2fb; }
.hh-form .hh-lang-intro { font-size: 13px; color: var(--muted, #5b6474); margin: 0 0 8px; }
.hh-form .hh-lang-rows { display: flex; flex-direction: column; gap: 8px; }
.hh-form .hh-lang-row { display: flex; align-items: flex-start; gap: 8px; justify-content: space-between; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line, #e3e8ef); border-radius: 12px; padding: 10px 12px; }
.hh-form .hh-lang-row.is-set { border-color: var(--accent, #2a5bd4); }
.hh-form .hh-lang-row fieldset { border: 0; margin: 0; padding: 0; min-width: 0; flex: 1 1 auto; }
.hh-form .hh-lang-name { font-weight: 800; font-size: 15px; margin: 0 0 6px; float: none; width: auto; padding: 0; }
.hh-form .hh-lang-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.hh-form .hh-lang-level span { min-height: 36px; padding: 5px 11px; font-size: 13px; }
.hh-form .hh-lang-add { margin-top: 10px; }
.hh-form .hh-lang-add label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 4px; }
@media (max-width: 400px) {
  .hh-form .hh-lang-level span { padding: 5px 9px; font-size: 12.5px; }
  .hh-form .hh-rep-card-acts { width: 100%; justify-content: flex-end; }
}
.hh-form .hh-rep-card .nf-edu-level, .hh-form .hh-rep-card .nf-tag-level { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent, #2a5bd4); background: var(--accent-soft, #e8eefc); padding: 2px 8px; border-radius: 999px; }
