/* fault-code-search.css — Consulta de códigos de falha */

/* ─── hero ──────────────────────────────────────────────────────────────────── */
.fcs-hero {
  background: linear-gradient(135deg, var(--blue-950), #0f633c);
  color: var(--white);
  padding-block: clamp(40px, 7vw, 80px);
}

.fcs-hero-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.fcs-hero .eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7ee8c0;
  margin: 0 0 10px;
}

.fcs-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--white);
}

.fcs-hero > .fcs-hero-inner > p {
  font-size: 1.06rem;
  color: rgba(255,255,255,0.88);
  max-width: 760px;
  margin: 0 0 22px;
}

.fcs-safety-alert {
  max-width: 780px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.1);
  border-left: 4px solid #7ee8c0;
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.55;
}

/* ─── search section ────────────────────────────────────────────────────────── */
.fcs-search-section {
  background: var(--gray-100);
  padding-block: clamp(30px, 5vw, 56px);
}

.fcs-search-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

.fcs-filters {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(7,29,54,0.06);
}

.fcs-filter-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.fcs-filter-row + .fcs-filter-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  align-items: center;
}

.fcs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 160px;
}

.fcs-field-wide {
  flex: 2 1 280px;
}

.fcs-field label {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--gray-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fcs-field select,
.fcs-field input[type="text"] {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.97rem;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color 0.15s;
}

.fcs-field select:focus,
.fcs-field input[type="text"]:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(22,133,217,0.15);
}

/* ─── risk filters ──────────────────────────────────────────────────────────── */
.fcs-risk-label {
  font-size: 0.83rem;
  font-weight: 800;
  color: var(--gray-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 4px;
}

.fcs-risk-check {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.93rem;
  min-height: 44px;
  padding-inline: 4px;
}

.fcs-risk-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--blue-500);
  cursor: pointer;
  flex-shrink: 0;
}

.fcs-btn-clear {
  margin-left: auto;
  padding: 7px 16px;
  min-height: 44px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.fcs-btn-clear:hover,
.fcs-btn-clear:focus-visible {
  border-color: var(--blue-500);
  color: var(--blue-700);
  outline: none;
}

/* ─── badges ────────────────────────────────────────────────────────────────── */
.fcs-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fcs-badge-alto   { background: #fde8e8; color: #8b1a1a; }
.fcs-badge-medio  { background: #fff4d6; color: #7a4f00; }
.fcs-badge-baixo  { background: #e6f4ea; color: #1a5c2e; }

/* ─── status ────────────────────────────────────────────────────────────────── */
.fcs-status {
  font-size: 0.93rem;
  color: var(--gray-700);
  margin-bottom: 16px;
  min-height: 1.4em;
}

/* ─── results grid ──────────────────────────────────────────────────────────── */
.fcs-results {
  display: grid;
  gap: 20px;
}

/* ─── card ──────────────────────────────────────────────────────────────────── */
.fcs-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(7,29,54,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fcs-card-alto   { border-left: 5px solid #c0392b; }
.fcs-card-medio  { border-left: 5px solid #e67e22; }
.fcs-card-baixo  { border-left: 5px solid #27ae60; }

.fcs-card-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.fcs-card-code-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.fcs-code-label {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--blue-950);
  line-height: 1;
  letter-spacing: -0.02em;
}

.fcs-card-title-block {
  flex: 1 1 200px;
}

.fcs-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--blue-950);
  margin: 0 0 5px;
  line-height: 1.3;
}

.fcs-card-tech {
  font-size: 0.83rem;
  color: var(--gray-700);
  margin: 0;
}

.fcs-card-tech code {
  font-family: "SF Mono", "Fira Mono", "Consolas", monospace;
  background: var(--gray-100);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.82rem;
}

.fcs-card-body {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.fcs-description {
  font-size: 0.97rem;
  color: var(--gray-900);
  margin: 0;
  line-height: 1.6;
}

.fcs-guidance {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.fcs-guidance-title {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-700);
  margin: 0 0 10px;
}

.fcs-guidance ol {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fcs-guidance li {
  font-size: 0.94rem;
  color: var(--gray-900);
  line-height: 1.5;
}

.fcs-action {
  font-size: 0.93rem;
  color: var(--blue-950);
  padding: 10px 14px;
  background: #eaf6ff;
  border: 1px solid #d3ebff;
  border-radius: var(--radius);
}

.fcs-models {
  font-size: 0.87rem;
  color: var(--gray-700);
  margin: 0;
}

.fcs-card-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--gray-100);
}

.fcs-note {
  font-size: 0.78rem;
  color: var(--gray-700);
  margin: 0;
  flex: 1;
  font-style: italic;
}

/* ─── WhatsApp button ───────────────────────────────────────────────────────── */
.fcs-wa-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #25d366;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.fcs-wa-btn:hover,
.fcs-wa-btn:focus-visible {
  background: #1da851;
  transform: translateY(-1px);
  outline: none;
}

.fcs-wa-btn-large {
  padding: 14px 32px;
  font-size: 1.04rem;
}

/* ─── empty / pending states ────────────────────────────────────────────────── */
.fcs-empty,
.fcs-pending {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  color: var(--gray-700);
}

.fcs-empty p,
.fcs-pending p {
  margin: 0 0 12px;
  font-size: 0.97rem;
}

.fcs-empty .fcs-wa-btn,
.fcs-pending .fcs-wa-btn {
  margin-top: 8px;
}

/* ─── CTA section ───────────────────────────────────────────────────────────── */
.fcs-cta-section {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding-block: clamp(36px, 6vw, 64px);
}

.fcs-cta-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
  text-align: center;
}

.fcs-cta-inner h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 900;
  color: var(--blue-950);
  margin: 0 0 12px;
}

.fcs-cta-inner > p {
  font-size: 1.02rem;
  color: var(--gray-700);
  margin: 0 0 24px;
  max-width: 580px;
  margin-inline: auto;
}

.fcs-back-link {
  display: block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--gray-700);
  text-decoration: none;
}

.fcs-back-link:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

/* ─── responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .fcs-filter-row {
    flex-direction: column;
    gap: 12px;
  }

  .fcs-field {
    flex: 1 1 auto;
  }

  .fcs-btn-clear {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .fcs-filter-row {
    flex-direction: column;
    gap: 12px;
  }

  .fcs-field {
    flex: 1 1 auto;
  }

  .fcs-filter-row-risk {
    flex-wrap: wrap;
    gap: 10px;
  }

  .fcs-btn-clear {
    margin-left: 0;
    width: 100%;
  }

  .fcs-card-header {
    flex-direction: column;
    gap: 10px;
  }

  .fcs-card-code-block {
    flex-direction: row;
    align-items: center;
  }

  .fcs-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .fcs-wa-btn {
    width: 100%;
    text-align: center;
  }

  .fcs-cta-inner .fcs-wa-btn-large {
    width: 100%;
    text-align: center;
  }
}
