/* Probe finder (/products/probe-finder). Builds on landing.css + modern-theme.css tokens. */

.pfx {
  background: #fff;
  border: 1px solid rgba(11, 20, 32, .08);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(11, 20, 32, .08);
  overflow: hidden;
  scroll-margin-top: 90px;
}

/* ---- stepper ---- */
.pfx-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #eceff3;
}

.pfx-step {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  padding: 1.05rem .75rem;
  font-family: "Sora", sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b7280;
}

.pfx-step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #c9cfd8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}

.pfx-step:disabled { cursor: default; opacity: .65; }
.pfx-step.active { color: #b86f0e; border-bottom-color: var(--brand-orange); }
.pfx-step.active span { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; }
.pfx-step.done span { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

/* ---- layout ---- */
.pfx-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; }
.pfx-main { padding: 1.75rem 2rem 2rem; min-width: 0; }
.pfx-side { background: #f6f7f9; border-left: 1px solid #eceff3; padding: 1.75rem; }

.pfx-pane { display: none; }
.pfx-pane.active { display: block; animation: lpFade .25s ease; }

.pfx-title { font-size: 1.3rem; font-weight: 700; color: var(--ink-900); margin-bottom: 1.25rem; }
.pfx-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

.pfx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.5rem; }
.pfx-field label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink-900); margin-bottom: .4rem; }
.pfx-field .custom-select, .pfx-static { height: 46px; }
.pfx-static { display: flex; align-items: center; padding: 0 .9rem; border: 1px solid #e3e7ec; border-radius: .25rem; background: #f6f7f9; color: #495568; }

.pfx-stepper { display: flex; height: 46px; border: 1px solid #ced4da; border-radius: .25rem; overflow: hidden; }
.pfx-stepper button { width: 46px; border: 0; background: #fff; font-size: 1.2rem; color: #495568; }
.pfx-stepper button:hover { background: #f3f5f8; }
.pfx-stepper input { flex: 1; min-width: 0; border: 0; border-left: 1px solid #e3e7ec; border-right: 1px solid #e3e7ec; text-align: center; font-size: 1rem; -moz-appearance: textfield; }
.pfx-stepper input::-webkit-outer-spin-button, .pfx-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pfx-stepper input:focus { outline: 2px solid rgba(232, 162, 60, .5); outline-offset: -2px; }

.pfx-switch { position: relative; display: inline-block; width: 46px; height: 26px; margin: 0; flex: none; }
.pfx-switch input { opacity: 0; width: 0; height: 0; }
.pfx-switch span { position: absolute; inset: 0; border-radius: 26px; background: #c9cfd8; cursor: pointer; transition: background .2s ease; }
.pfx-switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.pfx-switch input:checked + span { background: var(--brand-orange); }
.pfx-switch input:checked + span::before { transform: translateX(20px); }
.pfx-switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(232, 162, 60, .35); }

.pfx-fill-manual { display: flex; align-items: center; gap: .6rem; flex: 1; }
.pfx-fill-manual input { flex: 1; accent-color: var(--brand-orange); }
.pfx-fill-manual output { font-weight: 700; min-width: 3rem; }

.pfx-error { margin: 1rem 0 0; color: #b42318; font-size: .88rem; }

.pfx-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .6rem; margin-top: 1.75rem; }
.pfx-note { margin-right: auto; color: #6b7280; font-size: .82rem; }

/* ---- tube setup panel ---- */
.pfx-side-title { font-size: 1.15rem; font-weight: 700; color: var(--ink-900); margin-bottom: 1.25rem; }
.pfx-setup { display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: center; }
.pfx-svg { width: 150px; height: 150px; }
.pfx-svg circle { transition: r .25s ease; }
.pfx-svg-wall { fill: #c9ced6; stroke: var(--ink-900); stroke-width: 2; }
.pfx-svg-bore { fill: #fff; stroke: var(--ink-900); stroke-width: 2; }
.pfx-svg-probe { fill: rgba(232, 162, 60, .25); stroke: var(--brand-orange); stroke-width: 2.5; stroke-dasharray: 6 4; }

.pfx-dl { margin: 0; }
.pfx-dl dt { font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #b86f0e; }
.pfx-dl dd { margin: .1rem 0 .7rem; color: var(--ink-900); font-size: .92rem; }
.pfx-legend { display: flex; gap: 1.1rem; margin-top: 1rem; font-size: .76rem; color: #6b7280; }
.pfx-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; vertical-align: -1px; margin-right: .3rem; }
.pfx-swatch.is-wall { background: #c9ced6; border: 1.5px solid var(--ink-900); }
.pfx-swatch.is-probe { background: rgba(232, 162, 60, .25); border: 1.5px dashed var(--brand-orange); }

/* ---- results ---- */
.pfx-advice { display: flex; gap: .8rem; background: #fff8ec; border: 1px solid #f5dcae; border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.25rem; font-size: .9rem; color: #5b4416; }
.pfx-advice > i { color: var(--brand-orange); margin-top: .2rem; }
.pfx-advice-sub { display: block; color: #8a7046; font-size: .8rem; margin-top: .2rem; }

.pfx-card { border: 1px solid #e5e8ec; border-radius: 14px; padding: 1.25rem 1.35rem; margin-bottom: 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.pfx-card:hover { border-color: rgba(232, 162, 60, .6); box-shadow: 0 10px 26px rgba(11, 20, 32, .08); }
.pfx-card.is-disabled { opacity: .7; background: #fafbfc; }
.pfx-card-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.pfx-card-head h3 { font-size: 1.1rem; font-weight: 700; color: var(--ink-900); margin: .35rem 0 .2rem; }
.pfx-card-head p { color: #6b7280; font-size: .84rem; margin: 0; }
.pfx-card-link { font-size: .8rem; font-weight: 600; white-space: nowrap; }

.pfx-badge { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 50px; background: #eef0f3; color: #495568; }
.pfx-badge.is-best { background: var(--brand-orange); color: var(--ink-900); }

.pfx-pn { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; padding: .7rem .9rem; border-radius: 10px; background: var(--ink-900); color: rgba(255, 255, 255, .6); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.pfx-pn code { color: #fff; font-size: 1.1rem; letter-spacing: .04em; text-transform: none; background: transparent; }

.pfx-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.pfx-k { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #8a94a6; margin-bottom: .35rem; }
.pfx-v { font-size: .9rem; color: var(--ink-900); }

.pfx-sizes { display: flex; flex-wrap: wrap; gap: .35rem; }
.pfx-chip { border: 1px solid #e3e7ec; background: #fff; border-radius: 8px; padding: .3rem .6rem; font-size: .84rem; font-weight: 600; color: var(--ink-900); }
.pfx-chip small { color: #8a94a6; font-weight: 500; margin-left: .2rem; }
.pfx-chip:hover { border-color: var(--brand-orange); }
.pfx-chip.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.pfx-chip.active small { color: rgba(255, 255, 255, .7); }

.pfx-fillbar { height: 8px; border-radius: 8px; background: #eef0f3; overflow: hidden; margin-bottom: .3rem; }
.pfx-fillbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-teal), var(--brand-orange)); }
.pfx-cable { max-width: 140px; }

.pfx-freq { width: 100%; font-size: .86rem; }
.pfx-freq th { font-weight: 500; color: #6b7280; padding: .3rem .5rem .3rem 0; }
.pfx-freq td { font-weight: 700; color: var(--ink-900); text-align: right; padding: .3rem 0; white-space: nowrap; }
.pfx-freq tr + tr { border-top: 1px dashed #eceff3; }
.pfx-freq small { font-weight: 500; color: #b86f0e; }

.pfx-warn { margin-top: .8rem; font-size: .82rem; color: #8a5a00; background: #fff8ec; border-radius: 8px; padding: .5rem .7rem; }

.pfx-cal { display: flex; gap: .7rem; align-items: flex-start; margin: 1rem 0 0; padding: .75rem .9rem; border: 1px dashed #d3d8df; border-radius: 10px; cursor: pointer; font-weight: 400; }
.pfx-cal input { margin-top: .25rem; accent-color: var(--brand-orange); }
.pfx-cal strong { display: block; font-size: .86rem; color: var(--ink-900); }
.pfx-cal code { display: block; font-size: .86rem; margin: .15rem 0; }
.pfx-cal small { color: #8a94a6; }

.pfx-card-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.pfx-disclaimer { font-size: .78rem; color: #8a94a6; margin: 1rem 0 0; }

/* ---- summary ---- */
.pfx-summary { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pfx-summary th { width: 38%; color: #6b7280; font-weight: 500; padding: .55rem 1rem .55rem 0; vertical-align: top; }
.pfx-summary td { color: var(--ink-900); font-weight: 600; padding: .55rem 0; }
.pfx-summary tr + tr { border-top: 1px solid #eef0f3; }

/* ---- help ---- */
.pfx-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.pfx-help h4 { font-size: .95rem; font-weight: 700; color: var(--ink-900); }
.pfx-help h4 i { color: var(--brand-orange); margin-right: .35rem; }
.pfx-help p { font-size: .84rem; color: #6b7280; margin: 0; }

@media (max-width: 1199px) {
  .pfx-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .pfx-setup { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 991px) {
  .pfx-body { grid-template-columns: 1fr; }
  .pfx-side { border-left: 0; border-top: 1px solid #eceff3; order: -1; padding: 1.25rem; }
  .pfx-setup { grid-template-columns: 120px 1fr; justify-items: start; text-align: left; }
  .pfx-svg { width: 120px; height: 120px; }
  .pfx-help { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .pfx-main { padding: 1.25rem; }
  .pfx-grid, .pfx-card-grid { grid-template-columns: 1fr; }
  .pfx-step { font-size: .68rem; flex-direction: column; gap: .3rem; padding: .8rem .3rem; }
  .pfx-pn code { font-size: .95rem; }
}
