/* The agency nurse cost calculator (28 November 2026). A free tool with no
   Credolex price on it: your numbers on the left, what they come to on the
   right, one column on a phone. Built on the grey tokens in styles.css and
   the blog shell in blog.css. */

.cx {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 0 0 16px;
}

.cx__card {
  background: var(--g-card);
  border: 1px solid var(--g-line);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}

.cx__h {
  font-family: var(--g-head);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--g-ink);
  margin: 0 0 20px;
}

.cx__form { display: grid; gap: 20px; }
.cx__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.cx__f { display: grid; gap: 6px; align-content: start; }
.cx__f label { font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--g-ink); }
.cx__hint { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--g-ink-3); }

.cx__in {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--g-line-h);
  border-radius: 10px;
  background: var(--g-card);
  transition: border-color var(--dur-feedback) var(--ease-feedback);
}
.cx__in:focus-within { border-color: var(--g-navy); outline: 2px solid var(--g-navy); outline-offset: 2px; }
.cx__in span { padding-left: 12px; color: var(--g-ink-3); font: 500 16px var(--g-head); }
.cx__in .cx__after { padding: 0 12px 0 0; font: 400 14.5px var(--sans); white-space: nowrap; }
.cx__in input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--g-ink);
  font: 600 16px var(--g-head);
  font-variant-numeric: tabular-nums;
  padding: 0 12px 0 6px;
  outline: none;
}
.cx__in input:first-child { padding-left: 12px; }

.cx__sel {
  height: 44px;
  width: 100%;
  border: 1px solid var(--g-line-h);
  border-radius: 10px;
  background-color: var(--g-card);
  color: var(--g-ink);
  font: 500 15.5px var(--sans);
  padding: 0 40px 0 12px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%232C4A6E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 5.5 7 9l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 14px;
  transition: border-color var(--dur-feedback) var(--ease-feedback);
}
.cx__sel:focus-visible { border-color: var(--g-navy); outline: 2px solid var(--g-navy); outline-offset: 2px; }

.cx__ans { padding: 0 0 20px; border-bottom: 1px solid var(--g-line); }
.cx__big {
  margin: 0;
  font-family: var(--g-head);
  font-weight: 600;
  font-size: clamp(30px, 1.6vw + 17px, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--g-ink);
  font-variant-numeric: tabular-nums;
}
.cx__under { margin: 6px 0 0; font-size: 14.5px; color: var(--g-ink-3); }
.cx__say { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--g-ink-2); max-width: 52ch; }

.cx__rows { margin: 0; }
.cx__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  border-bottom: 1px solid var(--g-line);
}
.cx__row:last-child { border-bottom: 0; }
.cx__row dt { font-size: 15.5px; color: var(--g-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx__row dd {
  margin: 0;
  font: 600 16px var(--g-head);
  font-variant-numeric: tabular-nums;
  color: var(--g-ink);
  white-space: nowrap;
}
.cx__row--tot dt { color: var(--g-ink); font-weight: 600; }
.cx__row--tot dd { font-size: 17px; }

.cx__more { padding-top: 40px; }

@media (max-width: 900px) {
  .cx { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .cx__card { padding: 20px 16px; }
}

@media (max-width: 420px) {
  .cx__two { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .cx__in, .cx__sel { transition: none; }
}
