/* Cost simulator only. Shared canvas, header, footer and action tokens are retained. */
.cost-page #main { max-width: 1040px; padding-block: clamp(32px, 5vw, 64px) 64px; }
.cost-page :is(input,button,a) { scroll-margin-block: calc(var(--simulator-header-height) + 16px) 16px; }
.cost-page :is(button,a):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.cost-page :is(form,section) { scroll-margin-top: 96px; }
.cost-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cost-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--content-panel-radius);
  background: var(--content-panel-fill);
}
.cost-form-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cost-form-heading h2 { margin: 0; font-size: 22px; line-height: 1.6; }
.cost-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; margin-top: 24px; }
.cost-spending { display: grid; align-content: start; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cost-spending-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 2px; }
.cost-spending-summary > span { font-size: 15px; color: var(--muted); }
.cost-spending-summary output { font-size: 21px; font-weight: 600; color: #a9e5ed; font-variant-numeric: tabular-nums; text-align: right; }
.cost-recruiting { min-width: 0; }
.cost-labor { margin: 24px 0 0; }
.cost-labor legend { float: left; width: 100%; margin: 0 0 8px; font-size: 20px; }
.cost-labor legend span { margin-left: 12px; font-size: 14px; color: var(--muted); font-weight: 400; }
#cost-labor-scope { clear: both; margin: 0 0 14px; }
.cost-labor-fields { display: grid; clear: both; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.cost-labor .cost-field label { font-size: 14px; }
.cost-labor .cost-input input { height: 54px; font-size: 21px; padding-inline: 12px; }
.cost-labor .cost-input { gap: 8px; }
.cost-field { min-width: 0; }
.cost-field label { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 700; }
.cost-input { display: flex; align-items: center; gap: 12px; }
.cost-input input { font-family: inherit; min-width: 0; width: 100%; height: 62px; padding: 12px 16px; background: #f9fafb; color: #172632; border: 1px solid #b8c7d3; border-radius: 4px; font-size: 24px; font-variant-numeric: tabular-nums; color-scheme: light; }
.cost-input input[aria-invalid='true'], .cost-spending[aria-invalid='true'] input { border-color: #b83334; border-width: 2px; }
.cost-input > span { flex-shrink: 0; white-space: nowrap; font-size: 14px; }
.cost-field-note { color: var(--muted); font-size: 14px; margin: 10px 0 0; line-height: 1.7; }
.cost-field-note:empty { margin: 0; }
.cost-field-error { color: var(--danger); font-size: 14px; margin: 8px 0 0; scroll-margin-block: calc(var(--simulator-header-height) + 16px) 16px; }
.cost-field-error:empty { display: none; }
.cost-page .primary { min-height: 56px; padding: 14px 26px; font-weight: 700; font-size: 16px; }
.cost-page .primary:disabled { opacity: .45; cursor: not-allowed; }
.cost-period { display: inline-flex; padding: 3px; margin: 0; gap: 3px; border: 1px solid var(--line); border-radius: var(--cta-radius); min-width: 0; }
.cost-period label { display: block; position: relative; margin: 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.cost-period input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cost-period span { display: flex; align-items: center; justify-content: center; min-width: 60px; min-height: 44px; padding: 6px 12px; border-radius: 3px; color: var(--muted); }
.cost-period input:checked + span { background: var(--accent); color: #102b34; }
.cost-period input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.cost-period input:not(:checked):hover + span { color: var(--text); }
.cost-period label:hover input:checked + span { background: #a0e6f4; }

.cost-form .submit-area { align-items: center; margin-top: 28px; }
.cost-form .submit-area .primary { width: min(100%, 360px); }
.cost-form .contact-grid input { background: #f9fafb; color: #172632; color-scheme: light; }
@media (max-width: 820px) { .cost-fields { grid-template-columns: 1fr; gap: 28px; } }
@media (min-width: 740px) and (max-width: 820px) {
  .cost-spending { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cost-spending-summary, #cost-spending-error { grid-column: 1 / -1; }
  .cost-spending label { font-size: 16px; }
  .cost-spending .cost-input { gap: 8px; }
  .cost-spending .cost-input input { height: 56px; padding-inline: 8px; font-size: 18px; }
  .cost-recruiting { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; }
  .cost-labor { margin: 0; }
}
@media (max-width: 739px) {
  .cost-spending { gap: 14px; }
  .cost-spending > .cost-field { display: grid; grid-template-columns: minmax(80px, .7fr) minmax(0, 1.3fr); align-items: center; column-gap: 8px; }
  .cost-spending > .cost-field label { margin: 0; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
  .cost-spending > .cost-field .cost-input { gap: 6px; }
  .cost-spending > .cost-field input { height: 54px; padding-inline: 6px; font-size: clamp(16px, 5vw, 21px); }
  .cost-spending > .cost-field .cost-field-error { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .cost-page #main.shell { width: calc(100% - 36px); padding-block: 28px 40px; }
  .cost-page .page-intro { margin-bottom: 24px; }
  .cost-form { padding: 22px 18px; }
  .cost-form-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .cost-form-heading h2 { font-size: 20px; align-self: center; }
  .cost-period span { min-width: 52px; padding-inline: 8px; }
  .cost-labor-fields { gap: 12px; }
  .cost-labor .cost-input input { font-size: 18px; padding-inline: 4px; }
  .cost-input { gap: 8px; }
  .cost-input input { height: 56px; padding-inline: 12px; font-size: 23px; }
  .cost-input > span { font-size: 13px; }
  .cost-field label { font-size: 16px; }
  .cost-period label { font-size: 14px; }
  .cost-form .submit-area .primary { width: 100%; }
}

@media (forced-colors: active) {
.cost-period input:checked + span { border: 2px solid Highlight; }
.cost-period input:focus-visible + span { outline-color: Highlight; }
.cost-page .simulator-footer-brand img { background: #142e46; forced-color-adjust: none; }
}
