/* =============================================================
   TiCi Technologies — Project Cost Estimator
   Same palette as the site: navy/near-black, purple #a680f1 / #7c4dff, lime #c8f560
   ============================================================= */
.tc-est { position: relative; color: #fff; }
.tc-est__intro { max-width: 760px; margin: 0 0 40px; }
.tc-est__intro h2 { margin: 0 0 16px; }
.tc-est__intro p { color: rgba(255, 255, 255, 0.72); font-size: 16px; line-height: 1.7; margin: 0; }

.tc-est__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.tc-est__card {
  position: relative;
  min-width: 0;
  padding: 32px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
}
.tc-est__off { text-align: center; padding: 48px 24px; }
.tc-est__off p { color: rgba(255, 255, 255, 0.7); margin: 10px 0 22px; }

/* ---------- progress ---------- */
.tc-est__progress {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  counter-reset: none;
}
.tc-est__progress li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  position: relative;
}
.tc-est__progress li::after {
  content: "";
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  order: 3;
}
.tc-est__progress li.is-current,
.tc-est__progress li.is-done { color: #fff; }
.tc-est__progress li.is-current::after { background: linear-gradient(90deg, #7c4dff, #a680f1); }
.tc-est__progress li.is-done::after { background: #c8f560; }
.tc-est__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.tc-est__progress li.is-current .tc-est__dot { background: #7c4dff; border-color: #a680f1; }
.tc-est__progress li.is-done .tc-est__dot { background: #c8f560; border-color: #c8f560; color: #14112b; }
.tc-est__plabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- steps ---------- */
.tc-est__step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.tc-est__step.is-active { display: block; animation: tcEstIn 0.35s ease; }
@keyframes tcEstIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tc-est__step legend {
  float: none;
  width: 100%;
  font-size: 26px;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 18px;
  padding: 0;
}
.tc-est__subhead { font-size: 18px; margin: 30px 0 14px; color: #fff; }
.tc-est__hint { color: rgba(255, 255, 255, 0.62); font-size: 14.5px; margin: -6px 0 18px; }

.tc-est__grid { display: grid; gap: 14px; }
.tc-est__grid--types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-est__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tc-est__grid--features { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* option cards (radio) */
.tc-est__option {
  position: relative;
  display: block;
  cursor: pointer;
  margin: 0;
}
.tc-est__option input,
.tc-est__feature input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.tc-est__option-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.tc-est__option-icon { font-size: 22px; color: #a680f1; margin-bottom: 6px; }
.tc-est__option strong { font-size: 15.5px; font-weight: 600; color: #fff; }
.tc-est__option small { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
.tc-est__option:hover .tc-est__option-body { border-color: rgba(166, 128, 241, 0.5); transform: translateY(-2px); }
.tc-est__option input:checked + .tc-est__option-body {
  border-color: #a680f1;
  background: rgba(124, 77, 255, 0.16);
  box-shadow: 0 0 0 1px #a680f1 inset, 0 12px 30px rgba(124, 77, 255, 0.18);
}
.tc-est__option input:focus-visible + .tc-est__option-body { outline: 2px solid #c8f560; outline-offset: 2px; }
.tc-est__tick {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #c8f560;
  font-size: 18px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.tc-est__option input:checked ~ .tc-est__tick { opacity: 1; transform: none; }
.tc-est__option--compact .tc-est__option-body { padding: 16px 16px; }

/* feature checkboxes */
.tc-est__feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.tc-est__feature[hidden] { display: none; }
.tc-est__feature:hover { border-color: rgba(166, 128, 241, 0.5); }
.tc-est__check {
  flex: 0 0 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.2s ease;
}
.tc-est__feature input:checked ~ .tc-est__check { background: #c8f560; border-color: #c8f560; color: #14112b; }
.tc-est__feature:has(input:checked) { border-color: #a680f1; background: rgba(124, 77, 255, 0.14); }
.tc-est__feature input:focus-visible ~ .tc-est__check { outline: 2px solid #c8f560; outline-offset: 2px; }
.tc-est__feature-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tc-est__feature-body strong { font-size: 14.5px; font-weight: 600; color: #fff; }
.tc-est__feature-body em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #14112b;
  background: #c8f560;
  border-radius: 20px;
  padding: 2px 7px;
  margin-left: 4px;
  vertical-align: 2px;
}
.tc-est__feature-body small { font-size: 12.5px; color: rgba(255, 255, 255, 0.58); line-height: 1.45; }

/* size slider */
.tc-est__size { padding: 22px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); }
.tc-est__size-label { display: block; font-size: 15px; color: #fff; margin-bottom: 14px; }
.tc-est__size-row { display: flex; align-items: center; gap: 18px; }
.tc-est__size-row input[type="range"] {
  --fill: 50%;
  flex: 1;
  min-width: 0;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #7c4dff 0, #a680f1 var(--fill), rgba(255, 255, 255, 0.14) var(--fill));
  outline: none;
}
.tc-est__size-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #c8f560;
  border: 4px solid #14112b;
  box-shadow: 0 0 0 2px #c8f560;
  cursor: pointer;
}
.tc-est__size-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #c8f560;
  border: 4px solid #14112b;
  cursor: pointer;
}
.tc-est__size-row input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(200, 245, 96, 0.5); }
.tc-est__size-row input[type="number"] {
  width: 96px;
  height: 46px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
}
.tc-est__size-scale { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.45); padding-right: 114px; }

/* fields */
.tc-est__row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.tc-est__field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tc-est__field label { font-size: 14px; color: #fff; font-weight: 500; }
.tc-est__field label span { color: rgba(255, 255, 255, 0.5); font-weight: 400; }
.tc-est__field label sup { color: #c8f560; }
.tc-est__field input,
.tc-est__field select {
  height: 48px;
  width: 100%;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
  outline: none;
}
.tc-est__field select option { background: #14112b; color: #fff; }
.tc-est__field input:focus,
.tc-est__field select:focus { border-color: #a680f1; box-shadow: 0 0 0 3px rgba(166, 128, 241, 0.18); }
.tc-est__field input::placeholder { color: rgba(255, 255, 255, 0.32); }
.tc-est__ferr { display: none; color: #ff8a80; font-size: 12.5px; }
.tc-est__field.has-error input { border-color: #ff6b5e; }
.tc-est__field.has-error .tc-est__ferr { display: block; }
.tc-est__privacy { margin: 16px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.55); }
.tc-est__privacy i { color: #c8f560; margin-right: 4px; }
.tc-est__privacy a { color: #c4a8ff; }
.tc-est__error { margin: 16px 0 0; color: #ff8a80; font-size: 14px; }

/* nav */
.tc-est__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tc-est__nav[hidden] { display: none; }
.tc-est__back,
.tc-est__link {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  cursor: pointer;
  padding: 10px 4px;
}
.tc-est__back:hover,
.tc-est__link:hover { color: #fff; }
.tc-est__next { margin-left: auto; }
.tc-est__next:disabled { opacity: 0.7; cursor: wait; }

/* result */
.tc-est__result[hidden] { display: none; }
.tc-est__result { animation: tcEstIn 0.4s ease; }
.tc-est__result-box {
  text-align: center;
  padding: 34px 20px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0, rgba(124, 77, 255, 0.45), rgba(20, 17, 43, 0.9) 70%);
  border: 1px solid rgba(166, 128, 241, 0.5);
}
.tc-est__result-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #c8f560; }
.tc-est__range { font-size: clamp(30px, 5.5vw, 48px); font-weight: 600; line-height: 1.15; margin: 10px 0 12px; color: #fff; overflow-wrap: anywhere; }
.tc-est__weeks { color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.tc-est__weeks i { color: #a680f1; margin-right: 4px; }
.tc-est__result-detail { margin-top: 26px; }
.tc-est__result-detail h3 { font-size: 20px; margin: 0 0 12px; color: #fff; }
.tc-est__summary { list-style: none; padding: 0; margin: 0; }
.tc-est__summary li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14.5px;
}
.tc-est__summary span { color: rgba(255, 255, 255, 0.55); }
.tc-est__summary strong { color: #fff; font-weight: 500; }
.tc-est__disclaimer { font-size: 13.5px; color: rgba(255, 255, 255, 0.6); margin: 16px 0 0; line-height: 1.6; }
.tc-est__result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.tc-est__wa i { margin-right: 4px; }

/* aside */
.tc-est__aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; min-width: 0; }
.tc-est__panel {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}
.tc-est__panel h3 { font-size: 17px; margin: 0 0 12px; color: #fff; }
.tc-est__live { margin: 0; }
.tc-est__live div { padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.tc-est__live div:last-child { border-bottom: 0; }
.tc-est__live dt { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); font-weight: 500; }
.tc-est__live dd { margin: 3px 0 0; font-size: 14px; color: #fff; overflow-wrap: anywhere; }
.tc-est__trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tc-est__trust li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.tc-est__trust i { color: #c8f560; width: 16px; margin-top: 3px; }
.tc-est__aside .tc-quote-compact { margin-top: 0; }

/* faq */
.tc-est__faq { max-width: 860px; margin: 70px auto 0; }
.tc-est__faq h2 { text-align: center; margin: 0 0 26px; }
.tc-est__q {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 12px;
}
.tc-est__q summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-size: 16px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.tc-est__q summary::-webkit-details-marker { display: none; }
.tc-est__q summary i { color: #a680f1; transition: transform 0.25s ease; }
.tc-est__q[open] summary i { transform: rotate(45deg); }
.tc-est__q p { margin: 0; padding: 0 20px 18px; color: rgba(255, 255, 255, 0.7); font-size: 15px; line-height: 1.7; }

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .tc-est__grid--types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .tc-est__layout { grid-template-columns: 1fr; }
  .tc-est__aside { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-est__aside .tc-quote-compact { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .tc-est .container { padding-left: 16px; padding-right: 16px; }
  .tc-est__card { padding: 22px 16px; border-radius: 18px; }
  .tc-est__intro { margin-bottom: 26px; }
  .tc-est__intro p { font-size: 15px; }
  .tc-est__plabel { display: none; }
  .tc-est__progress li.is-current .tc-est__plabel { display: block; position: absolute; top: 34px; left: 0; font-size: 11px; color: #c8f560; white-space: nowrap; overflow: visible; }
  .tc-est__progress { margin-bottom: 40px; }
  .tc-est__step legend { font-size: 21px; }
  .tc-est__grid--types,
  .tc-est__grid--3,
  .tc-est__grid--features,
  .tc-est__row2 { grid-template-columns: 1fr; }
  .tc-est__grid--types .tc-est__option-body { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; align-items: start; padding: 16px 40px 16px 16px; }
  .tc-est__grid--types .tc-est__option-icon { grid-row: 1 / span 2; margin: 2px 0 0; font-size: 20px; text-align: center; }
  .tc-est__grid--types .tc-est__option small { grid-column: 2; }
  /* keep the chat button clear of the sticky Back / Next bar on this page */
  .tc-chat__launcher { bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important; }
  .tc-chat__teaser { bottom: calc(212px + env(safe-area-inset-bottom, 0px)) !important; }
  .tc-est__size { padding: 18px 14px; }
  .tc-est__size-row { gap: 12px; }
  .tc-est__size-row input[type="number"] { width: 78px; }
  .tc-est__size-scale { padding-right: 90px; }
  .tc-est__field input, .tc-est__field select { font-size: 16px; }
  .tc-est__nav { position: sticky; bottom: 64px; margin: 22px -16px -22px; padding: 14px 16px; background: rgba(11, 8, 32, 0.96); border-radius: 0 0 18px 18px; z-index: 5; }
  .tc-est__aside { grid-template-columns: 1fr; }
  .tc-est__summary li { grid-template-columns: 86px minmax(0, 1fr); }
  .tc-est__result-actions .cmn-btn { width: 100%; justify-content: center; }
  .tc-est__faq { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .tc-est__step.is-active, .tc-est__result { animation: none; }
  .tc-est__option-body, .tc-est__tick { transition: none; }
}
