/* Hourly rate calculator page (/uurtarief-berekenen/, /en/hourly-rate-calculator/). Builds on site.css tokens. */
.hr-page [hidden] { display: none !important; }

.hr-intro { padding-top: 40px; padding-bottom: 28px; }
.hr-intro h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 12px; }
.hr-intro .lead { max-width: 40em; font-size: clamp(17px, 1.6vw, 20px); }

.hr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 490px); gap: 28px; align-items: start; padding-bottom: 80px; }
.hr-form { display: grid; gap: 18px; min-width: 0; }
.hr-example { font-size: 14px; color: var(--muted); }

.hr-group { margin: 0; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px 24px; }
.hr-legend { float: left; width: 100%; padding: 0; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; font: 600 21px/1.2 Outfit, Inter, sans-serif; letter-spacing: -0.01em; color: var(--navy); }
.hr-legend + * { clear: both; }
.hr-step { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: var(--brand-navy); display: grid; place-items: center; font-size: 15px; }

.hr-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px 20px; }
.hr-fields.is-pair { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hr-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-content: start; min-width: 0; }
.hr-field label { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.35; }
.hr-input { display: flex; align-items: center; min-height: 48px; background: var(--white); border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .15s; }
.hr-input:hover { border-color: #B3B8C3; }
.hr-input:focus-within { border-color: var(--navy); outline: 3px solid var(--ring); outline-offset: 1px; }
.hr-input input { flex: 1 1 0; width: 0; min-width: 0; height: 45px; padding: 0 14px; border: 0; background: transparent; color: var(--ink); font: 400 16px Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.hr-input input:focus-visible { outline: none; }
.hr-input.has-prefix input { padding-left: 6px; }
.hr-affix { flex: none; color: var(--muted); font-size: 15px; white-space: nowrap; }
.hr-prefix { padding-left: 14px; }
.hr-suffix { padding-right: 14px; }
.hr-input:has(input[aria-invalid="true"]) { border-color: #b4441f; }
.hr-hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.hr-hint a { color: var(--navy); }
.hr-error { font-size: 13px; line-height: 1.45; font-weight: 600; color: var(--error); }
.hr-error:empty { display: none; }

.hr-seg { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.hr-seg legend { float: left; width: 100%; padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.hr-seg legend + * { clear: both; }
.hr-choices { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.hr-choices.is-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 560px; }
.hr-choice { position: relative; display: block; }
.hr-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.hr-choice > span { display: block; height: 100%; padding: 9px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--muted); text-align: center; cursor: pointer; transition: background .15s, color .15s; }
.hr-choice > span:hover { color: var(--navy); }
.hr-choice input:checked + span { background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgba(20,33,61,.12), 0 0 0 1px var(--line); }
.hr-choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.hr-choice strong { display: block; font-weight: 600; }
.hr-choice small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }

.hr-keep { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 4px 4px 0; }
.hr-remember { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.hr-remember input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); }
.hr-keep .hr-hint { flex-basis: 100%; order: 3; padding-left: 30px; }
.hr-reset { margin-left: auto; cursor: pointer; font-family: inherit; }

.hr-result { position: sticky; top: 84px; background: var(--brand-navy); color: #ECEEF4; border-radius: 22px; padding: 22px 26px 20px; box-shadow: var(--shadow); }
.hr-result-heading { font-size: 19px; color: #fff; }
.hr-rate { margin-top: 6px; font: 600 clamp(44px, 4.2vw, 56px)/1.05 Outfit, Inter, sans-serif; letter-spacing: -0.02em; color: var(--orange); font-variant-numeric: tabular-nums; }
.hr-sub { margin-top: 2px; font-size: 14px; color: #C3CADA; }
.hr-problem { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 15px; }
.hr-breakdown { margin: 20px 0 0; }
.hr-breakdown > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.14); }
.hr-breakdown dt { font-size: 15px; color: #DFDCD6; }
.hr-breakdown dd { margin: 0; text-align: right; font-weight: 600; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hr-breakdown dd small { font-size: 12px; font-weight: 400; color: #C3CADA; }
.hr-breakdown .hr-detail { grid-column: 1 / -1; text-align: left; white-space: normal; font-size: 13px; font-weight: 400; line-height: 1.45; color: #C3CADA; }
.hr-breakdown .hr-sum dt { color: #fff; font-weight: 600; }
.hr-formula { padding-top: 9px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #C3CADA; font-variant-numeric: tabular-nums; }

.hr-note { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.55; }
.hr-note p + p { margin-top: 8px; }
.hr-note-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.hr-note-title svg { flex: none; width: 18px; height: 18px; }
.hr-note-meta { font-size: 13px; color: var(--muted); }
.hr-note a { color: var(--navy); }

.hr-disclaimer { margin-top: 14px; font-size: 14px; font-weight: 600; color: #fff; }
.hr-privacy { margin-top: 4px; font-size: 13px; color: #C3CADA; }

.hr-more { max-width: 820px; display: grid; gap: 64px; padding-bottom: 88px; }
.hr-section h2 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 14px; }
.hr-section-lead { color: var(--muted); }
.hr-steps { list-style: none; counter-reset: hr-step; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.hr-steps li { counter-increment: hr-step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.hr-steps li::before { content: counter(hr-step); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: var(--brand-navy); font: 600 16px Outfit, Inter, sans-serif; display: grid; place-items: center; }
.hr-steps h3 { font-size: 18px; }
.hr-steps p { color: var(--muted); font-size: 16px; }
.hr-faq details:last-child { margin-bottom: 0; }
.hr-sources { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.hr-sources a { color: var(--navy); }
.hr-sources-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hr-cta { padding-top: 28px; border-top: 1px solid var(--line); text-align: center; font-size: 17px; color: var(--muted); }
.hr-cta a { color: var(--navy); font-weight: 600; }

.hr-bar { display: none; }

@media (max-width: 1100px) {
  .hr { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); }
  .hr-result { padding: 22px 22px 20px; }
}
@media (max-width: 920px) {
  .hr { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-bottom: 64px; }
  .hr-result { position: static; }
  .hr-bar:not([hidden]) { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--brand-navy); color: #fff; box-shadow: var(--shadow); font-size: 14px; }
  .hr-bar b { font: 600 22px Outfit, Inter, sans-serif; color: var(--orange); font-variant-numeric: tabular-nums; }
  .hr-bar small { margin-left: auto; font-size: 12px; color: #C3CADA; text-align: right; }
  .hr-page footer.foot { padding-bottom: 104px; }
}
@media (max-width: 560px) {
  .hr-intro { padding-top: 28px; }
  .hr-group { padding: 18px 16px 20px; border-radius: 18px; }
  .hr-choice > span { padding: 8px 10px; }
  .hr-reset { margin-left: 0; }
  .hr-keep .hr-hint { padding-left: 30px; }
  .hr-more { gap: 48px; }
  .hr-steps li { padding: 18px; gap: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hr-input, .hr-choice > span { transition: none; }
}
.hr-checked { margin-top: 4px; font-weight: 400; }
