/* Correção para barra de erro não quebrar o grid dos campos do formulário */
.lead-fields .form-group,
.lead-fields > div {
  position: relative;
}



.input-error-msg {
  color: #dc3545;
  font-size: 0.92rem;
  margin: 4px 0 0 2px;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 3;
}
/* ========================= */
/* ESTILOS DE ERRO DO FORM  */
/* ========================= */

.input-erro {
  border-color: #dc3545 !important;
  box-shadow: none;
  background: #fff;
}

input[type="checkbox"].input-erro {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}




/* Reset e Configurações Globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

        :root {
          --color-primary: #dc3545;
          --color-primary-hover: #c82333;
          --color-secondary: #CB0003;
          --color-border: #dee2e6;
          --color-bg-light: #f8f9fa;
          --color-text: #333;
          --color-text-light: #666;
          --border-radius: 8px;
          --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        body {
          font-family: 'UOLtext', Arial, sans-serif;
          color: var(--color-text);
          background-color: #fff;
          line-height: 1.6;
        }

        /* Header */
        .header {
          background-color: #fff;
          border-bottom: 1px solid var(--color-border);
          padding: 1.5rem 0;
          text-align: center;
        }

        .header-title {
          font-size: 2rem;
          font-weight: 300;
          letter-spacing: 0.3rem;
          color: var(--color-text);
        }

        /* Container Principal */
        .container {
          max-width: 800px;
          margin: 0 auto;
          padding: 2rem 1rem;
        }

        /* Seção de Introdução */
        .intro-section {
          margin-bottom: 2rem;
        }

        .logo-box {
          display: inline-block;
          margin-bottom: 1.5rem;
        }

.logo-text {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-text);
}

        .description {
          color: var(--color-text);
          font-size: 0.95rem;
          line-height: 1.7;
        }

        /* Card do Formulário */
        .form-card {
          background-color: #fff;
          border-radius: 0 12px 12px 12px;
          padding: 0;
          margin-bottom: 2rem;
          box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
          border: 1px solid #d0d0d0;
          border-top: none;
          overflow: visible;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
        }

/* Tabs de Interesse */
.interest-tabs {
  display: flex;
  gap: 0.5rem;
  background-color: #fff;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.tab-button {
  flex: 1;
  min-width: 120px;
  padding: 0.875rem 1rem;
  border: none;
  border-bottom: 3px solid transparent;
  background-color: #fff;
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

        .tab-button:hover {
          color: var(--color-text);
          background-color: #e0e0e0;
        }

        .tab-button.active {
          background-color: #fff;
          color: var(--color-primary);
          border-color: #d0d0d0;
          border-bottom: none;
          font-weight: 700;
          z-index: 2;
        }

/* Botões de Tipo de Veículo */
.vehicle-type-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 1rem 1.5rem 1rem;
  width: 100%;
}

        .vehicle-button {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 0.625rem;
          padding: 1.25rem 1rem;
          border: 2px solid #d8d8d8;
          background-color: #fff;
          color: #333;
          font-size: 0.95rem;
          font-weight: 600;
          cursor: pointer;
          transition: all 0.2s ease;
          border-radius: 8px;
        }

        .vehicle-button:hover {
          border-color: var(--color-primary);
          color: var(--color-primary);
        }

        .vehicle-button.active {
          border-color: var(--color-primary);
          color: var(--color-primary);
          background-color: #fff;
        }

        .vehicle-button svg {
          width: 24px;
          height: 24px;
        }

/* Form Groups */
.form-group {
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  width: 100%;
}

        .form-group label {
          display: block;
          font-size: 0.875rem;
          font-weight: 400;
          color: #333;
          margin-bottom: 0.5rem;
        }

        .form-select {
          width: 100%;
          padding: 0.875rem 1rem;
          border: 1px solid #d8d8d8;
          border-radius: 6px;
          background-color: #fff;
          color: #333;
          font-size: 1rem;
          cursor: pointer;
          transition: border-color 0.3s ease;
          appearance: none;
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23dc3545' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
          background-repeat: no-repeat;
          background-position: right 1rem center;
          padding-right: 2.5rem;
        }

        .form-select:focus {
          outline: none;
          border-color: var(--color-primary);
        }

        .form-select:disabled {
          background-color: #e9ecef;
          cursor: not-allowed;
          opacity: 0.6;
        }

/* Form Row - para campos lado a lado */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  width: 100%;
}

/* Botão Consultar */
.btn-consultar {
  width: 100%;
  max-width: 265px;
  padding: 0.875rem 1rem;
  background-color: #ccc;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.3s ease;
  margin: 0.5rem 0 2rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

        .btn-consultar:not(:disabled) {
          background-color: var(--color-secondary);
          cursor: pointer;
        }

        .btn-consultar:not(:disabled):hover {
          background-color: var(--color-secondary);
          opacity: 0.9;
        }

/* Box Principais Marcas */
.brands-section {
  border: 1.5px solid #e0e0e0;
  border-radius: var(--border-radius);
  background: #fff;
  padding: 1.5rem 1.25rem 1.25rem;
  margin-top: 1.5rem;
}

.brands-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 1.25rem 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  font-size: 0.75rem;
  font-weight: 500;
  color: #333;
  text-align: center;
}

.brand-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-color: #ccc;
}

.brand-card img {
  width: 60px;
  height: 45px;
  object-fit: contain;
}

.btn-ver-todas {
  display: block;
  width: 160px;
  margin: 1.25rem auto 0;
  padding: 0.75rem 1rem;
  background-color: var(--color-secondary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.btn-ver-todas:hover {
  opacity: 0.9;
}

/* Página de todas as marcas */
.brands-page {
  background: #fff;
  padding: 1rem 0;
}

.brands-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 1.25rem;
}

.breadcrumb-link {
  background: none;
  border: none;
  color: #CB0003;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0;
}

.breadcrumb-sep {
  color: #999;
}

.breadcrumb-current {
  color: #555;
}

.brands-page-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #222;
  margin: 0 0 1.25rem;
}

.brands-grid-page {
  margin-bottom: 1.5rem;
}

.brands-search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.6rem 0.875rem;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.brands-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.875rem;
  color: #333;
  background: transparent;
}

.brands-search-icon {
  flex-shrink: 0;
}

.brands-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.alphabet-btn {
  background: none;
  border: none;
  padding: 0.3rem 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  border-radius: 4px;
  transition: color 0.15s;
}

.alphabet-btn.active,
.alphabet-btn:hover {
  color: #CB0003;
}

.brands-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.brands-list-col {
  display: flex;
  flex-direction: column;
}

.brands-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.5rem;
  font-size: 0.82rem;
  color: #333;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
}

.brands-list-item:hover,
.brands-list-item.selected {
  color: #CB0003;
}

.brands-list-item.selected .brands-list-radio {
  border-color: #CB0003;
  background: #CB0003;
  box-shadow: inset 0 0 0 2px #fff;
}

.brands-list-radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #bbb;
  flex-shrink: 0;
  display: inline-block;
  transition: border-color 0.15s, background 0.15s;
}

.brands-proximo-bar {
  padding: 1.5rem 0 0.5rem;
  display: flex;
  justify-content: center;
}

/* Página de modelos */
.models-brand-header {
  background-color: #CB0003;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: left;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
  text-transform: capitalize;
}

.models-list-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #222;
  margin: 0 0 0.75rem;
}

.models-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
}

.models-list-col {
  display: flex;
  flex-direction: column;
}

.models-list-col:first-child {
  border-right: 1px solid #e8e8e8;
}

.models-empty {
  text-align: center;
  color: #888;
  font-size: 0.875rem;
  padding: 2rem 1rem;
}

.years-page {
  background: #fff;
  padding: 1rem 0;
}

.btn-proximo {
  width: 160px;
  padding: 0.75rem 1rem;
  background-color: #CB0003;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.btn-proximo:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.btn-proximo:not(:disabled):hover {
  opacity: 0.9;
}

/* Página de Resultado */
.result-page {
  margin-top: 2rem;
  background: #fff;
  border-radius: var(--border-radius);
  padding: 2rem 0;
}

        /* Breadcrumb */
        .breadcrumb {
          padding: 1rem 0;
          border-bottom: 1px solid var(--color-border);
          margin-bottom: 1.5rem;
          color: var(--color-primary);
          font-size: 0.875rem;
        }

        .breadcrumb a {
          color: var(--color-primary);
          text-decoration: none;
          transition: opacity 0.2s ease;
        }

        .breadcrumb a:hover {
          opacity: 0.7;
        }

/* Cabeçalho do Resultado */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1rem;
}

.vehicle-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text);
  margin: 0;
  flex: 1;
  text-transform: uppercase;
}

.btn-new-consult {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #fff;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  border: none;
}




        .btn-new-consult svg {
          width: 16px;
          height: 16px;
        }

/* Container do Resultado */
.result-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Coluna Esquerda */
.result-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

        /* Seção de Referência */
        .reference-section label {
          display: block;
          font-size: 0.875rem;
          color: var(--color-text-light);
          margin-bottom: 0.5rem;
        }

        .month-select {
          width: 100%;
          padding: 0.75rem 1rem;
          border: 1px solid var(--color-border);
          border-radius: 4px;
          background-color: #fff;
          color: var(--color-text);
          font-size: 0.95rem;
          cursor: pointer;
          transition: border-color 0.3s ease;
          appearance: none;
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
          background-repeat: no-repeat;
          background-position: right 1rem center;
          padding-right: 2.5rem;
        }

        .month-select:focus {
          outline: none;
          border-color: var(--color-primary);
        }

/* Seção de Preço */
.price-section {
  flex: 1;
  background-color: #fff;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

        .price-label {
          font-size: 0.875rem;
          color: var(--color-text-light);
          margin-bottom: 0.5rem;
        }

        .price-value {
          font-size: 2.5rem;
          font-weight: 700;
          color: var(--color-text);
          margin: 0.5rem 0;
        }

        .price-date {
          font-size: 0.8rem;
          color: var(--color-text-light);
          margin-top: 0.5rem;
        }

/* Imagem do Veículo */
.vehicle-image {
  flex: 1 1 0;
  width: 100%;
  max-width: 320px;
  min-width: 220px;
  aspect-ratio: 4/3;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

/* --- Correção: Valor e Imagem lado a lado --- */
.vehicle-info-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

#priceChart {
  width: 100% !important;
  height: 510px !important;
  max-width: 100%;
  display: block;
  min-height: 510px !important;
}

.chart-section {
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 0;
}

.chart-warning {
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.lead-section {
  background: #fff;

  max-width: 100%;
  margin: 2rem auto 2rem auto;
}

.lead-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 3rem 2.5rem 3rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.lead-title {
  font-size: 1.125rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.lead-title span {
  font-weight: 700;
  font-size: 1.25rem;
  display: block;
  margin-top: 0.25rem;
}

.lead-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.lead-fields input.full-width {
  grid-column: 1 / -1;
}

.lead-fields input {
  padding: 0.875rem 1rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 0.95rem;
  background: #f8f8f8;
  color: var(--color-text);
  transition: border-color 0.2s ease;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 1.1rem;
  background: #f8f8f8;
  color: #333;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #999;
  background: #fff;
}

input::placeholder {
  color: #888;
  font-size: 1.05rem;
}

input[disabled] {
  background: #eee;
  color: #aaa;
  cursor: not-allowed;
}

.lead-fields input.full-width {
  grid-column: 1 / -1;
}

.lead-fields input:focus {
  outline: none;
  border-color: #999;
}

.lead-fields input::placeholder {
  color: #888;
}

.lead-required {
  width: 100%;
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 1rem;
  text-align: left;
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #333;
  margin-bottom: 1.5rem;
  width: 100%;
}

.lead-consent input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
}

.lead-consent label {
  line-height: 1.5;
}

.lead-consent a {
  color: #0066cc;
  text-decoration: underline;
}

.btn-lead-full {
  width: 100%;
  background: #ffd100;
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: none;
}

.btn-lead-full:hover {
  background: #f0c300;
}

@media (max-width: 600px) {
  .lead-section {
    padding: 2rem 1.5rem;
  }

  .lead-fields {
    grid-template-columns: 1fr;
  }

  .lead-fields input.full-width {
    grid-column: 1;
  }
}



/* Garantir centralização e visibilidade do loading */
.loading {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
  display: block;
}

        @keyframes spin {
          to {
            transform: rotate(360deg);
          }
        }

/* Especialista: layout igual ao Figma */
.expert-section {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 2rem 0;
  position: relative;
  max-width: 100%;
  overflow: visible;
}

.expert-box {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  position: relative;
  overflow: visible;
}

.expert-avatar {
  width: 260px;
  height: auto;
  object-fit: contain;
  display: block;
  position: absolute;
  left: 0px;
  bottom: 0;
  z-index: 2;
}

.expert-content {
  background: #eaf4ff;
  border: 2px solid #3b82f6;
  border-radius: 12px;
  padding: 0.5rem 3rem 0.5rem 13rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
  min-height: 260px;
  position: relative;
  width: 100%;
  margin-top: 8.5rem;
  margin-bottom: 5.5rem;
}

@media (max-width: 900px) {

  .expert-section,
  .expert-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .expert-avatar {
    width: 130px;
    position: relative;
    left: 0;
    bottom: auto;
    margin-bottom: -30px;
    z-index: 2;
  }

  .expert-content {
    margin-left: 0;
    padding: 1.5rem 1rem 1rem 1rem;
    min-height: 200px;
    overflow: visible;
  }
}

.expert-content h4 {
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

.expert-content p {
  line-height: 1.75;
  color: var(--color-text);
  font-size: 0.9rem;
  text-align: left;
}

/* Ficha Técnica */
.spec-section {
  background: #fff;
  overflow: hidden;
  margin: 1.5rem 0;
}

.spec-section h4 {
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  padding: 0 0 1.5rem 0;
  margin: 0;
  color: var(--color-text);
}

/* Tabs da Ficha Técnica */
.spec-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.spec-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 3px solid transparent;
  background: #fff;
  color: var(--color-text-light);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.spec-tab:hover {
  color: var(--color-text);
  background: #f8f9fa;
}

.spec-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
  background: #fff;
}

/* Conteúdo da Ficha Técnica */
.spec-content {
  padding: 1.5rem 0.5rem;
  background: #fff;
}

.spec-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0.75rem 0;
}

.spec-item {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

@media (max-width: 768px) {
  /* Ordem desejada no mobile:
     1) mês/ano
     2) imagem
     3) preço */
  .vehicle-info-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
  }

  /* "achata" o container para reordenar os filhos internos */
  .price-section {
    display: contents;
  }

  .reference-section {
    order: 1;
  }

  .vehicle-image {
    order: 2;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .price-section > div:last-child {
    order: 3;
  }

  .price-value {
    font-size: 2.1rem;
    line-height: 1.1;
  }
}

@media (max-width: 900px) {
.expert-avatar {
width: clamp(150px, 22vw, 210px);
position: absolute;
left: -8px;
bottom: 0;
margin: 0;
}

.expert-content {
padding: 0.75rem 1.25rem 1rem clamp(120px, 22vw, 170px);
min-height: 220px;

margin-bottom: 2rem;
}

  .expert-content h4 {
    margin-bottom: 0.75rem;
    font-size: clamp(0.96rem, 1.8vw, 1.08rem);
    letter-spacing: 0.02em;
  }

  .expert-content p {
    font-size: clamp(0.84rem, 1.45vw, 0.9rem);
    line-height: 1.55;
  }

}
@media (max-width: 560px) {
.expert-avatar {
        width: 100px;
        left: 0px;
}

.expert-content {
        padding-left: 86px;

}

  .expert-content h4 {
    font-size: 0.72rem;
  }

  .expert-content p {
    font-size: 0.62rem;
    line-height: 1.5;
  }

}
/* Responsividade da Ficha Técnica */
@media (max-width: 768px) {
  .spec-tabs {
    flex-direction: column;
  }

  .spec-tab {
    border-bottom: 1px solid var(--color-border);
    border-left: 3px solid transparent;
    text-align: left;
  }

  .spec-tab.active {
    border-bottom: 1px solid var(--color-border);
    border-left-color: var(--color-primary);
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Concorrentes Diretos */
.competitors-section {
  margin: 2rem 0 1.5rem 0;
}

.competitors-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--color-text);
  letter-spacing: 0.03em;
}

.competitors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.competitor-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: row;
  gap: 1rem;
  transition: box-shadow 0.2s ease;
}

.competitor-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.competitor-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.competitor-name {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.4;
  min-height: 2.8em;
}

.competitor-price-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.competitor-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.competitor-image {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}

.competitor-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.competitor-bt {
  display: flex;
  justify-content: flex-start;
}

.btn-competitor {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-competitor:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-competitor svg {
  width: 16px;
  height: 16px;
}

/* Responsividade Concorrentes */
@media (max-width: 768px) {
  .competitors-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal de sucesso para lead */
.lead-success-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem 2rem 2rem;
  max-width: 540px;
  margin: 2rem auto 2rem auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.lead-success-modal .success-icon {
  width: 80px;
  height: 80px;
  background: #178a3b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.lead-success-modal .success-icon svg {
  width: 48px;
  height: 48px;
  stroke: #fff;
  stroke-width: 3;
}

.lead-success-modal .success-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.lead-success-modal .success-subtitle {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.lead-success-modal .success-desc {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0;
}