/* Cost estimator (/estimate.html, Views/Home/Estimate.cshtml, js/estimate.js): banner, the four service tabs, the questions
   on the left and the estimate on the right (sticky on desktop, a bar at the bottom on phones).
   Colours: the site's light theme and the logo's two tones only. Picked things are cyan (a tint and a cyan border, or solid
   cyan with white text), the estimate is a white card in a cyan-to-deep-teal border, yellow is the button and the warning. */
body {
  background-image: none;
  background-color: #ffffff;
}
.est-page {
  --est-navy: #0e2a38;
  --est-text: #3e5662;
  --est-cyan: #00c2cb;
  --est-mid: #00a3ab;
  --est-deep: #00838c;
  --est-ink: #00737a;
  --est-tint: #f0fbfc;
  --est-tile: #e6f9fa;
  --est-field: #f7fcfc;
  --est-line: #d4eff1;
  --est-line-strong: #b9e6e9;
  --est-box: #9fb8c0;
  color: var(--est-navy);
}
.est-page [hidden] {
  display: none !important;
}

/* ---------- Banner ---------- */
.est-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image: radial-gradient(ellipse 45% 60% at 50% 20%, rgba(0, 194, 203, 0.12), transparent 70%), linear-gradient(180deg, #f3fbfc 0%, #ffffff 90%);
}
.est-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(0, 194, 203, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 194, 203, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 55% 70% at 50% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 70% at 50% 20%, #000 20%, transparent 75%);
}
.container.est-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-top: 16.8rem;
  padding-bottom: 4rem;
  text-align: center;
}
.est-hero .breadcrumb {
  align-self: flex-start;
  margin: 0;
}
.est-hero__title {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
html[lang=ja] .est-hero__title {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.est-hero__text {
  max-width: 64rem;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.65;
}

/* ---------- Service tabs ---------- */
.est-body {
  padding-bottom: 8rem;
}
/* Each tab: the icon and the name on one row, what it is under them. The tabs share their two rows (subgrid), so every
   description starts at the same height, whether a name takes one line or two. */
.est-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin-bottom: 3.2rem;
}
.est-tab {
  display: grid;
  grid-row: span 2;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: subgrid;
  column-gap: 1.2rem;
  row-gap: 1rem;
  align-content: start;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--est-line);
  border-radius: 1.6rem;
  background: #ffffff;
  font-family: inherit;
  text-align: left;
  color: var(--est-navy);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.est-tab:hover {
  border-color: var(--est-cyan);
}
.est-tab:focus-visible {
  outline: 2px solid var(--est-navy);
  outline-offset: 2px;
}
/* The picked tab: a cyan tint inside a 2px cyan border (1px less padding keeps the size), its icon white on cyan */
.est-tab.is-active {
  padding: calc(1.6rem - 1px) calc(1.8rem - 1px);
  border: 2px solid var(--est-cyan);
  background: var(--est-tile);
}
.est-tab__icon {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 1.2rem;
  background: var(--est-tile);
  color: var(--est-mid);
  transition: background-color 0.2s, color 0.2s;
}
.est-tab.is-active .est-tab__icon {
  background: var(--est-cyan);
  color: #ffffff;
}
.est-tab__name {
  align-self: center;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.3;
}
/* Japanese names break between words (the zero-width spaces in the copy), not inside one */
html[lang=ja] .est-tab__name,
html[lang=ja] .est-dropdown__value,
html[lang=ja] .est-step__title,
html[lang=ja] .est-result__line dt {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.est-tab__desc {
  grid-column: 1 / -1;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--c-muted);
}

/* ---------- Questions and result ---------- */
.est-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38rem;
  gap: 3.2rem;
  align-items: start;
}
.est-config {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}
.est-loading,
.est-error {
  padding: 2.4rem;
  border: 1px dashed var(--est-line-strong);
  border-radius: 1.6rem;
  background: var(--est-tint);
  font-size: var(--fs-body);
  color: var(--c-muted);
}
.est-step {
  padding: 2.4rem;
  border: 1px solid var(--est-line);
  border-radius: 1.6rem;
  background: #ffffff;
}
.est-step__title {
  margin: 0 0 2rem;
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.3;
}
.est-step__body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Fields */
.est-field__label {
  margin-bottom: 1rem;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.4;
}
.est-field__hint {
  margin: 0.8rem 0 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-muted);
}
.est-static {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.est-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.est-choice__item {
  position: relative;
  cursor: pointer;
}
.est-choice__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* Answers: pills like the contact form's; the picked one turns cyan and gets a tick */
.est-choice__item span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 4rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--est-line-strong);
  border-radius: 999px;
  background: #ffffff;
  font-size: var(--fs-small);
  line-height: 1.35;
  transition: border-color 0.2s, background-color 0.2s, gap 0.2s;
}
.est-choice__item span::before {
  content: "";
  flex: none;
  width: 0;
  height: 0.9rem;
  border: solid var(--est-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
  transition: width 0.2s, opacity 0.2s;
}
.est-choice__item:hover span {
  border-color: var(--est-cyan);
}
.est-choice__item input:checked + span {
  gap: 0.9rem;
  padding: calc(0.8rem - 1px) calc(1.6rem - 1px);
  border: 2px solid var(--est-cyan);
  background: var(--est-tile);
}
.est-choice__item input:checked + span::before {
  width: 0.5rem;
  opacity: 1;
}
.est-choice__item input:focus-visible + span {
  outline: 2px solid var(--est-cyan);
  outline-offset: 2px;
}
.est-number-wrap {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.est-number {
  min-height: 4.4rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--est-line-strong);
  border-radius: 1rem;
  background: #ffffff;
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--est-navy);
  caret-color: var(--est-cyan);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.est-number {
  width: 9.6rem;
  text-align: right;
}
.est-number:hover {
  border-color: #a8e3e7;
}
/* Focus as in the contact form: cyan border and a faint cyan ring */
.est-number:focus {
  border-color: var(--est-cyan);
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.15);
}
.est-number__unit {
  font-size: var(--fs-small);
  color: var(--c-muted);
}
.est-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.est-inline__item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--fs-small);
}
.est-toggle {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  cursor: pointer;
  font-size: var(--fs-body);
  line-height: 1.4;
}
.est-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.est-toggle__track {
  position: relative;
  flex: none;
  width: 4.4rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--est-line-strong);
  transition: background-color 0.2s;
}
.est-toggle__track::after {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(14, 42, 56, 0.25);
  transition: transform 0.2s;
}
.est-toggle input:checked + .est-toggle__track {
  background: var(--est-cyan);
}
.est-toggle input:checked + .est-toggle__track::after {
  transform: translateX(1.8rem);
}
.est-toggle input:focus-visible + .est-toggle__track {
  outline: 2px solid var(--est-navy);
  outline-offset: 2px;
}

/* Numbers by level: simple / medium / complex */
.est-triple {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.est-triple__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, 10.4rem);
  gap: 1rem;
  align-items: center;
  font-size: var(--fs-small);
}
.est-triple .est-number {
  width: 100%;
}
/* The column names sit on the line of the inputs' tops, also when one of them takes two lines */
.est-triple__head {
  align-items: end;
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-muted);
}
.est-triple__head div {
  text-align: right;
}
.est-triple__label {
  font-weight: 700;
  line-height: 1.4;
}

/* Picker: two dropdowns (category, then product) and what the chosen product is */
.est-picker {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.est-picker__field .est-field__label {
  display: block;
}
/* A dropdown spans the column. The name shown is a plain line that can wrap; the browser's own select lies see-through
   on top of it, so a click or tap opens the system list. Border and focus as .est-number. */
.est-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4.4rem;
  box-sizing: border-box;
  padding: 0.8rem 4.4rem 0.8rem 1.6rem;
  border: 1px solid var(--est-line-strong);
  border-radius: 1rem;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2a38' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1.6rem center / 1.6rem no-repeat;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.est-dropdown:hover {
  border-color: #a8e3e7;
}
.est-dropdown:focus-within {
  border-color: var(--est-cyan);
  box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.15);
}
.est-dropdown__value {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.4;
  color: var(--est-navy);
}
/* Nothing chosen yet: the hint in grey */
.est-dropdown.is-empty .est-dropdown__value {
  font-weight: 400;
  color: var(--c-muted);
}
.est-dropdown__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  opacity: 0;
  font-family: inherit;
  font-size: var(--fs-body);
  cursor: pointer;
}
/* The same dropdown as a field in a Dedicated Teams row: narrower padding, the value in regular weight as the numbers
   beside it; the position's name stays bold, as the product's in the picker */
.est-dropdown--field {
  padding: 0.8rem 3.2rem 0.8rem 1.2rem;
  background-position: right 1.1rem center;
  background-size: 1.4rem;
}
.est-dropdown--field .est-dropdown__value {
  font-weight: 400;
  overflow-wrap: anywhere;
}
.est-team-row__role .est-dropdown__value {
  font-weight: 700;
}
.est-picker__info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--est-line);
  border-radius: 1.2rem;
  background: var(--est-tint);
}
.est-picker__text {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--c-muted);
}
.est-picker__price {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 800;
  color: var(--est-ink);
}
/* Between the search and the dropdowns: a quiet line saying they are the other way to choose */
.est-picker__or {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-muted);
}
.est-picker__or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--est-line);
}

/* Search (js/estimate.js searchBox): the field at the top of each tab's first step, and the list of matches that opens over
   the steps under it. Field as the dropdowns; a result is a row that turns to the tint on hover or focus. */
.est-search__field {
  position: relative;
}
.est-search__icon {
  position: absolute;
  top: 50%;
  left: 1.4rem;
  display: flex;
  color: var(--est-ink);
  transform: translateY(-50%);
  pointer-events: none;
}
.est-search__input {
  display: block;
  width: 100%;
  min-height: 4.8rem;
  box-sizing: border-box;
  padding: 0.8rem 4.8rem 0.8rem 4.6rem;
  border: 1px solid var(--est-line-strong);
  border-radius: 1rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background: #ffffff;
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--est-navy);
  caret-color: var(--est-cyan);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.est-search__input::placeholder {
  color: var(--c-muted);
  opacity: 1;
}
/* Empty, there is no clear button: the example words take its room, and end in "…" if they still do not fit */
.est-search__input:placeholder-shown {
  padding-right: 1.4rem;
  text-overflow: ellipsis;
}
.est-search__input::-webkit-search-cancel-button {
  display: none;
  -webkit-appearance: none;
}
.est-search__input:hover {
  border-color: #a8e3e7;
}
.est-search__input:focus {
  border-color: var(--est-cyan);
  box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.15);
}
.est-search__clear {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--est-tile);
  color: var(--est-navy);
  transform: translateY(-50%);
  cursor: pointer;
}
.est-search__clear:hover,
.est-search__clear:focus-visible {
  background: #d2f3f5;
}
.est-search__panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: min(60vh, 52rem);
  overflow: auto;
  padding: 0.6rem;
  border: 1px solid var(--est-line);
  border-radius: 1.4rem;
  background: #ffffff;
  box-shadow: 0 2rem 4rem -2.4rem rgba(14, 42, 56, 0.45);
}
.est-search__head {
  margin: 0;
  padding: 0.6rem 1.2rem 0.6rem;
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.55;
  text-transform: uppercase;
  color: var(--c-muted);
}
html[lang=ja] .est-search__head {
  letter-spacing: 0.04em;
}
/* This tab's matches, then another tab's: a line between */
.est-search__list + .est-search__head {
  margin-top: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--est-line);
}
.est-search__list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.est-search__option {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  padding: 1rem 1.2rem;
  border: 0;
  border-radius: 1rem;
  background: none;
  font-family: inherit;
  text-align: left;
  color: var(--est-navy);
  cursor: pointer;
  transition: background-color 0.15s;
}
.est-search__option:hover,
.est-search__option:focus-visible {
  background: var(--est-tint);
}
.est-search__option:focus-visible {
  outline: 2px solid var(--est-cyan);
  outline-offset: -2px;
}
.est-search__name {
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1.4;
}
.est-search__summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--est-text);
}
.est-search__path {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.45;
  color: var(--est-ink);
}
.est-search__mark {
  padding: 0 0.1rem;
  border-radius: 0.3rem;
  background: #c9f1f4;
  color: inherit;
}
.est-search__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.2rem 1.2rem 1.4rem;
}
.est-search__empty-title {
  font-size: var(--fs-body);
  font-weight: 800;
  line-height: 1.45;
}
.est-search__empty > span {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--est-text);
}
.est-search__ask {
  margin-top: 0.4rem;
}
.est-link-btn {
  padding: 0.4rem 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--est-navy);
  text-decoration: underline;
  text-decoration-color: var(--est-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  cursor: pointer;
}
.est-link-btn:hover,
.est-link-btn:focus-visible {
  color: var(--est-ink);
}

/* Core package, extra features */
.est-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.est-checklist li {
  position: relative;
  padding-left: 2.6rem;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.est-checklist li::before {
  content: "";
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--est-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
}
.est-included {
  margin: 0;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--est-line);
  border-radius: 1rem;
  background: var(--est-tint);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--est-text);
}
.est-note {
  display: block;
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--c-muted);
}
.est-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 2rem;
}
/* Extra features: the box is the contact form's consent box; a ticked row turns cyan */
.est-check {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--est-line-strong);
  border-radius: 1rem;
  background: #ffffff;
  font-size: var(--fs-small);
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.est-check:hover {
  border-color: var(--est-cyan);
}
.est-check:has(input:checked) {
  border-color: var(--est-cyan);
  background: var(--est-tile);
}
.est-check input {
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  margin: 0.15em 0 0;
  border: 1.5px solid var(--est-box);
  border-radius: 0.5rem;
  background: #ffffff;
  appearance: none;
  cursor: pointer;
}
.est-check input:checked {
  border-color: var(--est-cyan);
  background: var(--est-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 1.2rem no-repeat;
}
.est-check input:focus-visible {
  outline: 2px solid var(--est-cyan);
  outline-offset: 2px;
}

/* Dedicated Teams: one row per position, every row on the same grid so the fields line up from row to row.
   First line: the position, its level, remove. Second line: people, months, allocation (only positions that can be
   part-time have it; the others leave its place empty) and the working language under the level. */
.est-team {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.est-team-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr) 4.4rem;
  gap: 1.2rem;
  padding: 1.6rem;
  border: 1px solid var(--est-line);
  border-radius: 1.2rem;
  background: var(--est-tint);
}
.est-team-row__role {
  grid-column: 1 / 4;
  grid-row: 1;
}
.est-team-row__level {
  grid-column: 4;
  grid-row: 1;
}
.est-team-row__lang {
  grid-column: 4 / -1;
}
.est-team-row > .est-icon-btn {
  grid-column: 5;
  grid-row: 1;
  align-self: end;
}
/* A field: its name, then the control filling the rest of the line's height, so the controls of a line end together */
.est-team-row__field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}
.est-team-row__label {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-muted);
}
.est-team-row__field > .est-dropdown,
.est-team-row__field > .est-number,
.est-team-row__field > .est-team-row__fixed {
  flex: 1 1 auto;
  width: 100%;
}
/* BrSE and Comtor work in Japanese already: a fixed line instead of the language choice */
.est-team-row__fixed {
  display: flex;
  align-items: center;
  min-height: 4.4rem;
  box-sizing: border-box;
  padding: 0.8rem 1.2rem;
  border: 1px dashed var(--est-line-strong);
  border-radius: 1rem;
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--est-text);
}
.est-icon-btn {
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid var(--est-line-strong);
  border-radius: 1rem;
  background: #ffffff;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--c-muted);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.est-icon-btn:not(:disabled):hover {
  border-color: var(--est-cyan);
  color: var(--est-navy);
}
.est-icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.est-add-btn {
  align-self: flex-start;
  padding: 1rem 1.8rem;
  border: 1px dashed var(--est-cyan);
  border-radius: 999px;
  background: #ffffff;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--est-navy);
  cursor: pointer;
  transition: background-color 0.2s;
}
.est-add-btn:hover {
  background: var(--est-tile);
}
.est-add-btn:focus-visible {
  outline: 2px solid var(--est-cyan);
  outline-offset: 2px;
}

/* ---------- Result ---------- */
.est-result {
  position: sticky;
  top: 10rem;
}
/* The estimate: a white card in a cyan-to-deep-teal border, like the term sheet on How We Work */
.est-result__card,
.est-result__empty {
  padding: 2.8rem 2.4rem;
  border-radius: 2rem;
  color: var(--est-navy);
}
.est-result__card {
  border: 1.5px solid transparent;
  background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, var(--est-cyan), var(--est-deep)) border-box;
  box-shadow: 0 0 0 0.8rem rgba(0, 194, 203, 0.05), 0 3rem 6rem -4rem rgba(0, 131, 140, 0.7);
}
/* Nothing picked yet: a quiet dashed box */
.est-result__empty {
  border: 1px dashed var(--est-line-strong);
  background: var(--est-tint);
}
.est-result__empty p {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--est-text);
}
.est-result__kicker {
  margin: 0 0 0.8rem;
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--est-ink);
}
.est-result__total {
  margin: 0;
  font-size: var(--fs-figure);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.est-result__per {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--est-text);
}
.est-result__request {
  margin: 0 0 1.2rem;
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.25;
}
.est-result__label {
  margin: 0.4rem 0 2rem;
  font-size: var(--fs-small);
  color: var(--c-muted);
}
.est-result__lines {
  margin: 0 0 1.6rem;
  border-top: 1px solid var(--est-line);
}
.est-result__line {
  display: flex;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--est-line);
  font-size: var(--fs-small);
}
.est-result__line dt {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--est-text);
}
.est-result__line dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.est-result__notes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.est-result__note {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--est-text);
}
.est-details {
  margin-bottom: 1.6rem;
  border: 1px solid var(--est-line);
  border-radius: 1.2rem;
  background: var(--est-tint);
}
.est-details summary {
  padding: 1.2rem 1.4rem;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
}
.est-details summary::marker {
  color: var(--est-mid);
}
.est-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-label);
  color: var(--est-text);
}
.est-table th,
.est-table td {
  padding: 0.7rem 1.4rem;
  text-align: right;
  vertical-align: top;
}
.est-table th:first-child,
.est-table td:first-child {
  text-align: left;
}
.est-table th {
  font-weight: 700;
  color: var(--c-muted);
}
.est-table tbody tr {
  border-top: 1px solid var(--est-line);
}
.est-table td {
  white-space: nowrap;
}
.est-table td:first-child {
  white-space: normal;
}
/* Under the Custom Software breakdown: the effort in person-days and person-months */
.est-details__note {
  margin: 0;
  padding: 1rem 1.4rem 1.2rem;
  border-top: 1px solid var(--est-line);
  font-size: var(--fs-label);
  line-height: 1.5;
  color: var(--c-muted);
}
/* In the narrow estimate column (desktop and phones) the amounts would squeeze the names into a sliver: each line puts
   its name on a row of its own, its figures under the column names on the next */
@media (min-width: 1024px), (max-width: 599px) {
  .est-table {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: 1.6rem;
    width: auto;
    padding: 0 1.4rem 0.4rem;
  }
  .est-table thead,
  .est-table tbody,
  .est-table tr {
    display: contents;
  }
  .est-table th,
  .est-table td {
    padding: 0;
  }
  .est-table th {
    padding: 0.4rem 0 0.8rem;
  }
  .est-table td:first-child {
    grid-column: 1 / -1;
    padding: 0.9rem 0 0.2rem;
    border-top: 1px solid var(--est-line);
    color: var(--est-navy);
  }
  .est-table td:nth-child(2) {
    grid-column: 2;
    padding-bottom: 0.9rem;
  }
  .est-table td:nth-child(3) {
    grid-column: 3;
    padding-bottom: 0.9rem;
  }
}
.est-result__scope {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.est-result__scope p {
  margin: 0;
  color: var(--est-text);
}
.est-result__scope strong {
  color: var(--est-navy);
}
.est-result__actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.est-result__actions .btn-pill {
  width: 100%;
}
/* Priced on request: the card holds only the note and the button, set apart and as wide as on a priced estimate */
.est-result__card > .est-send {
  width: 100%;
  margin-top: 2rem;
}
.est-result__secondary {
  display: flex;
  justify-content: center;
  gap: 2.4rem;
}
.est-result__disclaimer {
  margin: 2rem 0 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--est-line);
  font-size: var(--fs-label);
  line-height: 1.6;
  color: var(--c-muted);
}

/* Phones and tablets: the estimate in a bar at the bottom of the screen */
.est-bar {
  display: none;
}

@media (max-width: 1199px) {
  .est-layout {
    grid-template-columns: minmax(0, 1fr) 34rem;
  }
}
@media (max-width: 1024px) {
  .container.est-hero__inner {
    padding-top: 13.6rem;
  }
}
/* Under 1024px the questions take the whole width and the estimate follows them */
@media (max-width: 1023px) {
  .est-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .est-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .est-result {
    position: static;
  }
  .est-bar:not([hidden]) {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    left: 1.2rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.4rem 2rem;
    border: 1.5px solid transparent;
    border-radius: 1.6rem;
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, var(--est-cyan), var(--est-deep)) border-box;
    font-family: inherit;
    color: var(--est-navy);
    box-shadow: 0 1.2rem 3rem -0.8rem rgba(14, 42, 56, 0.3);
    cursor: pointer;
  }
  .est-page.is-searching .est-bar {
    display: none;
  }
  .est-bar__label {
    font-size: var(--fs-small);
    color: var(--est-text);
  }
  .est-bar__total {
    font-size: var(--fs-title);
    color: var(--est-navy);
  }
  .est-body {
    padding-bottom: 12rem;
  }
}
/* A wide estimate (tablets): the button keeps its own width, with Download and Copy beside it */
@media (min-width: 600px) and (max-width: 1023px) {
  .est-result__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .est-result__actions .btn-pill,
  .est-result__card > .est-send {
    width: auto;
  }
}
@media (max-width: 767px) {
  .container.est-hero__inner {
    gap: 1.6rem;
    padding-top: 11.2rem;
    padding-bottom: 2.4rem;
  }
  .est-tabs {
    gap: 0.8rem;
    margin-bottom: 2rem;
  }
  /* Two by two: the icon over the name, centred; the names of a row start on one line */
  .est-tab {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.8rem;
    padding: 1.2rem;
    text-align: center;
    justify-items: center;
  }
  .est-tab.is-active {
    padding: calc(1.2rem - 1px);
  }
  .est-tab__icon {
    width: 3.6rem;
    height: 3.6rem;
  }
  .est-tab__name {
    align-self: start;
  }
  .est-tab__desc {
    display: none;
  }
  .est-step {
    padding: 1.8rem 1.6rem;
  }
  /* Dedicated Teams: the rows lose their box, which would narrow the fields, and are set apart by a line.
     The position takes the first line with remove at its end; level, people and months the second; allocation and the
     language the third. */
  .est-team {
    gap: 1.6rem;
  }
  .est-team-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.6rem 0 0;
    border: 0;
    border-top: 1px solid var(--est-line);
    border-radius: 0;
    background: none;
  }
  .est-team-row:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .est-team-row__role {
    grid-column: 1 / -1;
    padding-right: 5.4rem;
  }
  .est-team-row__level {
    grid-column: auto;
    grid-row: auto;
  }
  .est-team-row > .est-icon-btn {
    grid-column: 3;
    justify-self: end;
  }
  .est-team-row__lang {
    grid-column: 1 / -1;
  }
  .est-team-row--part .est-team-row__lang {
    grid-column: 2 / -1;
  }
}
@media (max-width: 599px) {
  .est-checks,
  .est-checklist {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Numbers by level: the name over its three inputs, which share the width under the column names */
  .est-triple {
    gap: 1.2rem;
  }
  .est-triple__row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem 0.8rem;
  }
  .est-triple__label {
    grid-column: 1 / -1;
  }
  .est-triple__head > div:first-child {
    display: none;
  }
}
/* The narrowest phones: two fields a line; the language on a line of its own */
@media (max-width: 359px) {
  .est-team-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .est-team-row > .est-icon-btn {
    grid-column: 2;
  }
  .est-team-row--part .est-team-row__lang {
    grid-column: 1 / -1;
  }
}
/* The trail stays below the corner of the header's logo, which reaches furthest at these widths */
@media (min-width: 1367px) and (max-width: 1480px) {
  .container.est-hero__inner {
    padding-top: 20rem;
  }
}

/* ---------- Print (the "Download PDF" button): the questions and the estimate, without the site around them ---------- */
@media print {
  .header,
  .footer,
  .back-to-top,
  .contact-modal,
  .est-hero::before,
  .est-tabs .est-tab:not(.is-active),
  .est-bar,
  .est-result__actions,
  .est-add-btn,
  .est-icon-btn,
  .est-link-btn,
  .est-search,
  .est-picker__or,
  .breadcrumb {
    display: none !important;
  }
  .container.est-hero__inner {
    padding: 0 0 1.6rem;
  }
  .est-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .est-result {
    position: static;
  }
  .est-result__card {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .est-step,
  .est-result__card {
    break-inside: avoid;
  }
}
