/* ── Product Finder / Help Me Choose ── */

/* Hero */
.finder-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  background: var(--clr-neutral-200);
}
.finder-hero__text {
  max-width: 38rem;
  margin: var(--space-base) auto 0;
  font-size: var(--fs-lg);
  color: #555;
}

/* Category grid */
.finder-categories {
  padding: var(--space-2xl) 0 var(--space-4xl);
}
.finder-categories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}
.finder-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.finder-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: var(--clr-accent-400);
}
.finder-cat-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-base);
  color: var(--clr-primary-400);
}
.finder-cat-card:hover .finder-cat-card__icon {
  color: var(--clr-accent-500);
}
.finder-cat-card__icon svg {
  width: 100%;
  height: 100%;
}
.finder-cat-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}
.finder-cat-card__desc {
  font-size: var(--fs-sm);
  color: #666;
  margin-bottom: var(--space-base);
  flex-grow: 1;
}
.finder-cat-card .btn {
  margin-top: auto;
}

/* Homepage card link (single card) */
.difference__card--link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.difference__card--link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.difference__card--link .btn {
  margin-top: auto;
}

@media (max-width: 480px) {
  .finder-categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-base);
  }
  .finder-cat-card {
    padding: var(--space-base);
  }
  .finder-cat-card__icon {
    width: 40px;
    height: 40px;
  }
}

/* Quiz */
.finder-quiz {
  padding: var(--space-2xl) 0 var(--space-4xl);
  min-height: 60vh;
}
.finder-quiz__container {
  max-width: 40rem;
  margin: 0 auto;
}
.finder-quiz__header {
  margin-bottom: var(--space-xl);
}
.finder-quiz__back-link {
  font-size: var(--fs-sm);
  color: #666;
  text-decoration: none;
}
.finder-quiz__back-link:hover {
  color: var(--clr-primary-400);
}
.finder-quiz__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-top: var(--space-sm);
}

/* Progress */
.finder-quiz__progress {
  margin-bottom: var(--space-xl);
}
.finder-quiz__progress-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}
.finder-quiz__progress-fill {
  height: 100%;
  background: var(--clr-accent-400);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}
.finder-quiz__step {
  font-size: var(--fs-sm);
  color: #888;
  margin-top: var(--space-xs);
}

/* Question */
.finder-quiz__question-text {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}
.finder-quiz__helper {
  font-size: var(--fs-sm);
  color: #666;
  margin-bottom: var(--space-lg);
}

/* Answer cells */
.finder-quiz__answers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-base);
}
.finder-quiz__answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) var(--space-base);
  border: 2px solid #e0e0e0;
  border-radius: 14px;
  background: #fff;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  min-height: 120px;
}
.finder-quiz__answer:hover {
  border-color: var(--clr-accent-400);
  background: var(--clr-accent-100);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
}
.finder-quiz__answer--selected {
  border-color: var(--clr-accent-500);
  background: var(--clr-accent-100);
  box-shadow: 0 0 0 3px rgba(255, 187, 0, 0.2);
}
.finder-quiz__answer-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-sm);
  color: var(--clr-primary-400);
  flex-shrink: 0;
}
.finder-quiz__answer--selected .finder-quiz__answer-icon {
  color: var(--clr-accent-500);
}
.finder-quiz__answer-icon svg {
  width: 100%;
  height: 100%;
}
.finder-quiz__answer-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  line-height: 1.3;
}
.finder-quiz__answer-helper {
  display: block;
  font-size: var(--fs-xs);
  color: #888;
  font-weight: var(--fw-regular);
  margin-top: 2px;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .finder-quiz__answers {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Quiz nav */
.finder-quiz__nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
}

/* Results */
.finder-results {
  padding: var(--space-2xl) 0 var(--space-4xl);
}
.finder-results__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.finder-results__subtitle {
  font-size: var(--fs-lg);
  color: #555;
  margin-top: var(--space-sm);
}
.finder-results__grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: var(--space-2xl);
}
@media (max-width: 900px) {
  .finder-results__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .finder-results__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}
.finder-results__card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s;
  max-width: 340px;
  width: 100%;
  justify-self: center;
}
.finder-results__card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.finder-results__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}
.finder-results__badge--best_match {
  background: var(--clr-accent-400);
  color: #fff;
}
.finder-results__badge--best_value {
  background: #28a745;
  color: #fff;
}
.finder-results__badge--upgrade_pick {
  background: var(--clr-primary-400);
  color: #fff;
}
.finder-results__badge--closest_match {
  background: #6c757d;
  color: #fff;
}
.finder-results__fit-label {
  font-size: var(--fs-xs);
  color: #888;
  margin-bottom: var(--space-sm);
}
.finder-results__image-link {
  display: block;
  text-align: center;
  margin-bottom: var(--space-base);
}
.finder-results__image {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
}
.finder-results__info {
  margin-bottom: var(--space-base);
}
.finder-results__name {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: var(--space-xs) 0;
}
.finder-results__reason {
  padding: var(--space-base);
  background: var(--clr-neutral-200);
  border-radius: 8px;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-base);
  flex-grow: 1;
}
.finder-results__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.finder-results__actions .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

/* Compare button */
.finder-results__compare {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* Empty state */
.finder-results__empty {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.finder-results__empty h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-base);
}
.finder-results__empty p {
  margin-bottom: var(--space-lg);
  color: #666;
}

/* Staff review form */
.finder-results__review {
  background: var(--clr-neutral-200);
  border-radius: 16px;
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
}
.finder-results__review-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}
.finder-results__review-subtitle {
  color: #666;
  margin-bottom: var(--space-lg);
}
.finder-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-base);
  margin-bottom: var(--space-lg);
}
.finder-form__field {
  display: flex;
  flex-direction: column;
}
.finder-form__field--full {
  grid-column: 1 / -1;
}
.finder-form__field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-xs);
}
.finder-form__field input,
.finder-form__field select,
.finder-form__field textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: var(--fs-base);
}
.finder-form__field input:focus,
.finder-form__field select:focus,
.finder-form__field textarea:focus {
  outline: none;
  border-color: var(--clr-accent-400);
  box-shadow: 0 0 0 3px rgba(255, 187, 0, 0.15);
}
.finder-form__error {
  color: #dc3545;
  font-size: var(--fs-xs);
  margin-top: 2px;
}
@media (max-width: 600px) {
  .finder-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Restart */
.finder-results__restart {
  display: flex;
  gap: var(--space-base);
  justify-content: center;
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

/* Success page */
.finder-success {
  padding: var(--space-3xl) 0 var(--space-4xl);
}
.finder-success__card {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  padding: var(--space-3xl) var(--space-2xl);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.finder-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
}
.finder-success__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-base);
}
.finder-success__text {
  color: #555;
  margin-bottom: var(--space-base);
}
.finder-success__actions {
  display: flex;
  gap: var(--space-base);
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* CTA partial */
.finder-cta {
  margin: var(--space-xl) 0;
}
.finder-cta__inner {
  background: var(--clr-neutral-200);
  border-radius: 12px;
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
}
.finder-cta__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}
.finder-cta__text {
  color: #666;
  margin-bottom: var(--space-base);
}

/* Staff-specific styles */
.staff-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}
.staff-detail-card {
  background: #fff;
  border-radius: 12px;
  padding: var(--space-lg);
  border: 1px solid #e0e0e0;
}
.staff-detail-card--full {
  grid-column: 1 / -1;
}
.staff-detail-card h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-base);
}
.staff-detail-card h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin: var(--space-base) 0 var(--space-sm);
}
.staff-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs) var(--space-base);
}
.staff-dl dt {
  font-weight: var(--fw-medium);
  color: #666;
}
.staff-form-group {
  margin-bottom: var(--space-base);
}
.staff-form-group label {
  display: block;
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-xs);
}
.staff-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--ff-body);
}
.staff-back-link {
  display: inline-block;
  margin-bottom: var(--space-lg);
  color: #666;
  text-decoration: none;
}
.staff-back-link:hover {
  color: var(--clr-primary-400);
}
.staff-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.staff-filters .btn {
  font-size: var(--fs-xs);
  padding: 6px 12px;
}
.staff-badge {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}
.staff-badge--new { background: #fff3cd; color: #856404; }
.staff-badge--reviewed { background: #cce5ff; color: #004085; }
.staff-badge--contacted { background: #d4edda; color: #155724; }
.staff-badge--quote_started { background: #e2e3e5; color: #383d41; }
.staff-badge--quote_sent { background: #d1ecf1; color: #0c5460; }
.staff-badge--closed { background: #f8d7da; color: #721c24; }

@media (max-width: 768px) {
  .staff-detail-grid {
    grid-template-columns: 1fr;
  }
}
