/* Tech Solution Finder — homepage wizard */
.tsf-section {
  padding: 5rem 0 5.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 45%, #f1f5f9 100%);
  position: relative;
  overflow: hidden;
}

.tsf-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(16, 165, 245, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 100%, rgba(59, 130, 246, 0.06), transparent 50%);
  pointer-events: none;
}

.tsf-container { position: relative; z-index: 1; }

.tsf-header { max-width: 42rem; margin: 0 auto 2.5rem; }

.tsf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #10A5F5;
  background: rgba(16, 165, 245, 0.12);
  border: 1px solid rgba(16, 165, 245, 0.35);
  margin-bottom: 1rem;
}

.tsf-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0b1f3a;
  margin: 0 0 0.75rem;
}

.tsf-highlight {
  color: #10A5F5;
  background: linear-gradient(90deg, #10A5F5, #10A5F5);
  }

.tsf-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.tsf-mobile-progress {
  display: none;
  margin-bottom: 1.25rem;
}

@media (max-width: 1023px) {
  .tsf-mobile-progress { display: block; }
}

.tsf-mobile-progress__top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0.4rem;
}

.tsf-mobile-progress__name { font-weight: 600; color: #0b1f3a; }

.tsf-mobile-progress__track {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.tsf-mobile-progress__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10A5F5, #10A5F5);
  transition: width 0.35s ease;
}

.tsf-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 1100px) {
  .tsf-layout {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 1.75rem;
  }
}

.tsf-wizard-card {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 48px rgba(11, 31, 58, 0.08);
  overflow: hidden;
}

.tsf-wizard-inner {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .tsf-wizard-inner {
    grid-template-columns: 220px 1fr;
    min-height: 520px;
  }
}

.tsf-steps-nav {
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, #0b1f3a 0%, #134e63 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .tsf-steps-nav {
    border-bottom: none;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.tsf-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

@media (min-width: 900px) {
  .tsf-steps-list {
    flex-direction: column;
    gap: 0.35rem;
    overflow: visible;
  }
}

.tsf-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  min-width: 140px;
  opacity: 0.55;
  transition: opacity 0.25s, background 0.25s;
}

@media (min-width: 900px) {
  .tsf-step-item { min-width: 0; }
}

.tsf-step-item.is-active,
.tsf-step-item.is-complete {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.tsf-step-marker {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.tsf-step-item.is-active .tsf-step-marker {
  background: #10A5F5;
  border-color: #10A5F5;
  color: #0b1f3a;
}

.tsf-step-item.is-complete .tsf-step-marker {
  background: rgba(16, 165, 245, 0.25);
  border-color: #10A5F5;
}

.tsf-step-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.tsf-step-copy small {
  display: none;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.65);
}

@media (min-width: 900px) {
  .tsf-step-copy small { display: block; }
}

.tsf-main {
  padding: 1.35rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}

@media (min-width: 640px) {
  .tsf-main { padding: 1.5rem 1.75rem 1.25rem; }
}

.tsf-panels { flex: 1; position: relative; }

.tsf-panel { animation: tsf-fade-in 0.35s ease; }
.tsf-panel[hidden] { display: none !important; }

@keyframes tsf-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tsf-panel.tsf-shake { animation: tsf-shake 0.45s ease; }

@keyframes tsf-shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.tsf-question {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0b1f3a;
  margin: 0 0 1.1rem;
  line-height: 1.35;
}

.tsf-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.tsf-options-grid--3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .tsf-options-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.tsf-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  border-radius: 0.85rem;
  border: 2px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
  text-align: center;
}

.tsf-option-card:hover {
  border-color: #E6F4FE;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
}

.tsf-option-card.is-selected {
  border-color: #10A5F5;
  background: rgba(16, 165, 245, 0.08);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.18);
}

.tsf-option-check {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #10A5F5;
  color: #fff;
  font-size: 0.55rem;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}

.tsf-option-card.is-selected .tsf-option-check {
  opacity: 1;
  transform: scale(1);
}

.tsf-option-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: #10A5F5;
  background: rgba(16, 165, 245, 0.12);
}

.tsf-option-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.3;
}

.tsf-other-wrap {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
}

.tsf-other-wrap[hidden] { display: none !important; }

.tsf-other-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.5rem;
}

.tsf-other-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  font-size: 0.88rem;
}

.tsf-other-input:focus {
  outline: none;
  border-color: #10A5F5;
  box-shadow: 0 0 0 3px rgba(16, 165, 245, 0.2);
}

.tsf-form-lead {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1rem;
}

.tsf-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 520px) {
  .tsf-form-grid { grid-template-columns: 1fr 1fr; }
}

.tsf-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.3rem;
}

.tsf-field input,
.tsf-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  font-size: 0.88rem;
  color: #0b1f3a;
}

.tsf-field input:focus,
.tsf-field textarea:focus {
  outline: none;
  border-color: #10A5F5;
  box-shadow: 0 0 0 3px rgba(16, 165, 245, 0.2);
}

.tsf-field--full { grid-column: 1 / -1; }

.tsf-nda {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0.85rem 0 0.75rem;
}

.tsf-nda i { color: #10A5F5; }

.tsf-btn-submit {
  width: 100%;
  justify-content: center;
  background: linear-gradient(135deg, #0b1f3a, #10A5F5) !important;
  color: #fff !important;
  border: none !important;
}

.tsf-form-success {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(16, 165, 245, 0.12);
  border: 1px solid rgba(16, 165, 245, 0.35);
  text-align: center;
  color: #0f766e;
}

.tsf-form-success i { font-size: 1.5rem; margin-bottom: 0.35rem; }

.tsf-error {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.82rem;
}

.tsf-error[hidden] { display: none !important; }

.tsf-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.tsf-nav-spacer { flex: 1; }

.tsf-nav-step-text {
  font-size: 0.82rem;
  color: #64748b;
}

.tsf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.tsf-btn:focus-visible {
  outline: 2px solid #10A5F5;
  outline-offset: 2px;
}

.tsf-btn-back,
.tsf-btn-skip {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.tsf-btn-back:hover,
.tsf-btn-skip:hover { background: #e2e8f0; }

.tsf-btn-next {
  background: linear-gradient(135deg, #0b1f3a, #10A5F5);
  color: #fff;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.3);
}

.tsf-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(13, 148, 136, 0.38);
}

.tsf-btn[hidden] { display: none !important; }

/* Result card */
.tsf-result-card {
  background: linear-gradient(165deg, #0b1f3a 0%, #134e63 55%, #0f766e 100%);
  border-radius: 1.25rem;
  padding: 1.5rem;
  color: #fff;
  box-shadow: 0 24px 48px rgba(11, 31, 58, 0.25);
  position: sticky;
  top: 6rem;
}

.tsf-result-card.tsf-has-selection .tsf-match-badge {
  opacity: 1;
}

.tsf-result-visual {
  position: relative;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: #10A5F5;
}

.tsf-result-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(16, 165, 245, 0.35), transparent 65%);
  animation: tsf-pulse 3s ease-in-out infinite;
}

@keyframes tsf-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.tsf-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tsf-result-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #10A5F5;
}

.tsf-match-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(16, 165, 245, 0.2);
  color: #E6F4FE;
  border: 1px solid rgba(16, 165, 245, 0.4);
  opacity: 0.6;
}

.tsf-result-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.tsf-result-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1rem;
}

.tsf-result-meta {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.tsf-result-meta li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.tsf-result-meta i {
  color: #10A5F5;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.tsf-result-meta strong { color: #fff; }

.tsf-result-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0b1f3a;
  background: #10A5F5;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 24px rgba(16, 165, 245, 0.35);
}

.tsf-result-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 165, 245, 0.45);
  color: #0b1f3a;
}

.tsf-result-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  margin: 0.75rem 0 0;
}

.tsf-result-note i { color: #10A5F5; }

@media (prefers-reduced-motion: reduce) {
  .tsf-panel,
  .tsf-result-glow,
  .tsf-mobile-progress__fill { animation: none !important; transition-duration: 0.01ms !important; }
}
