/* ==========================================================
 * CONTRATAR — somente FORM (para usar com Elementor)
 * ========================================================== */

.inv-contratar-form {
  width: 100%;
  max-width: 760px; /* Largura máxima ideal para desktop */
  margin: 0 auto;
  min-height: 0 !important;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif; /* Garante a fonte em tudo */
}

/* Garante que padding e bordas não estourem a largura */
.inv-contratar-form * {
  box-sizing: border-box;
}

/* ==========================================================
 * FIX DO "BURACO" NA ETAPA 2 (Elementor/Flex/Min-height)
 * ========================================================== */
.inv-step1, .inv-step2, .inv-step3, .inv-thanks {
  min-height: 0 !important;
  height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.inv-contratar-form,
.inv-contratar-form .elementor-widget-container,
.inv-contratar-form .elementor-shortcode {
  min-height: 0 !important;
}

.inv-step2 { display: block; }

/* ==========================================================
 * Steps (Barra de progresso)
 * ========================================================== */
.inv-contratar-form__steps {
  width: 100%;
  margin: 0 0 25px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.inv-step {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.inv-step__num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #a01763;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0; /* Impede que o círculo amasse */
}

.inv-step__label {
  font-weight: 600;
  font-size: 16px;
  color: #b1115d;
}

.inv-step__num--ghost { background: #f5d9e6; color: #c78aa9; }
.inv-step__label--ghost { color: #e1b8cc; font-weight: 400; }

.inv-step__line {
  flex-grow: 1; /* A linha ocupa o espaço que sobrar */
  height: 2px;
  background: #b8bcc4;
  opacity: .75;
  border-radius: 99px;
  min-width: 20px;
}

.inv-step.is-active .inv-step__num,
.inv-step.is-done .inv-step__num { background: #a01763; color: #fff; }

.inv-step.is-active .inv-step__label,
.inv-step.is-done .inv-step__label { color: #a01763; font-weight: 600; }

/* ==========================================================
 * Inputs
 * ========================================================== */
.inv-field { margin-bottom: 18px; }

.inv-field input,
.inv-field textarea {
  width: 100%;
  border: 1px solid #b7bcc4;
  border-radius: 12px; /* Arredondamento mais moderno */
  padding: 16px;
  font-size: 16px; /* Tamanho legível */
  color: #111;
  background: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.inv-field input::placeholder,
.inv-field textarea::placeholder {
  color: #aeb3bb;
  font-weight: 400;
  font-size: 14px;
}

.inv-field input:focus,
.inv-field textarea:focus {
  border-color: #b1115d;
  box-shadow: 0 0 0 4px rgba(160,23,99, 0.1); /* Glow suave */
}

/* ==========================================================
 * Botões Gerais
 * ========================================================== */
.inv-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
  background: #b1115d;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.2s;
  text-align: center;
}

.inv-btn:hover { background: #91124d; transform: translateY(-1px); }
.inv-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Botão WhatsApp */
.inv-wa {
  background: #cfeccf;
  color: #1b7f1b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  font-weight: 600;
}
.inv-wa:hover { background: #bfeec0; color:#1b7f1b ; }
.inv-wa__icon{
  color: #1b7f1b;
}

/* Privacidade */
.inv-contratar__privacy {
  margin-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #c0c4cc;
  line-height: 1.4;
}
.inv-contratar__privacy-link { color: #a01763; font-weight: 600; text-decoration: none; }

/* Mensagens de erro */
.inv-contratar__msg {
  margin-top: 10px;
  font-size: 14px;
  color: #b00020;
  text-align: center;
}

/* ==========================================================
 * Step 2: Seleção e Lista
 * ========================================================== */
.inv-type {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Desktop: lado a lado */
  gap: 12px;
  margin-bottom: 15px;
}

.inv-type__btn {
  border: 1px solid #b7bcc4;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.inv-type__btn:hover { border-color: #a01763; color: #a01763; }
.inv-type__btn.is-active {
  border-color: #a01763;
  background-color: #fdf2f7; /* Fundo leve para indicar ativo */
  color: #a01763;
}

/* Lista de Serviços */
.inv-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 15px 0;
  min-height: 0 !important;
  height: 300px !important; /* Altura fixa confortável */
  max-height: 300px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 2px; /* Espaço para o box-shadow não cortar */
}

/* Scrollbar Bonita */
.inv-services::-webkit-scrollbar { width: 6px; }
.inv-services::-webkit-scrollbar-track { background: transparent; }
.inv-services::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }
.inv-services::-webkit-scrollbar-thumb:hover { background: #a01763; }

.inv-service {
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 12px;
  padding: 12px 15px;
  cursor: pointer;
  position: relative;
  transition: border 0.2s, transform 0.1s;
}

.inv-service:hover { border-color: #b1115d; }
.inv-service.is-selected {
  border-color: #a01763;
  background-color: #fffafa;
  box-shadow: 0 4px 10px rgba(160,23,99,0.1);
}

.inv-service__tag {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #a01763;
  font-weight: 700;
  margin-bottom: 4px;
}
.inv-service__title { font-weight: 600; font-size: 15px; color: #333; }
.inv-service__desc { font-size: 13px; color: #777; margin-top: 4px; line-height: 1.4; }

/* Botões de Ação (Voltar / Próximo) */
.inv-step2__actions,
.inv-step3__actions {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Desktop: lado a lado */
  gap: 12px;
  margin-top: 15px;
}

.inv-back { background: #f0f2f5; color: #555; }
.inv-back:hover { background: #e4e6eb; }


/* ==========================================================
 * Summary / Thanks
 * ========================================================== */
.inv-summary {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 20px;
  background: #f9f9f9;
  margin-bottom: 20px;
}
.inv-summary__title { margin: 0 0 15px; font-size: 18px; font-weight: 700; color: #333; }
.inv-summary__grid { display: grid; gap: 12px; font-size: 15px; color: #555; }
.inv-summary__grid strong { color: #000; }

.inv-thanks__box {
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  background: #fff;
  text-align: center;
}
.inv-thanks__title { font-size: 24px; color: #a01763; margin-bottom: 10px; }
.inv-thanks__text { color: #666; font-size: 16px; }


/* ==========================================================
 * RESPONSIVIDADE (Mobile & Tablet)
 * Onde a mágica acontece para não ficar "espremido"
 * ========================================================== */

@media (max-width: 768px) {
  /* 1. Ajuste dos Steps: Oculta texto, mantém só números */
  .inv-contratar-form__steps {
    justify-content: center;
    gap: 10px;
  }
  .inv-step__label { display: none; } /* Remove textos "Seus Dados", etc */
  .inv-step__num { width: 40px; height: 40px; font-size: 16px; }
  .inv-step__line { max-width: 40px; }

  /* 2. Botões de Tipo (PF/PJ) EMPILHADOS */
  .inv-type {
    grid-template-columns: 1fr; /* Uma coluna só! */
    gap: 10px;
  }
  .inv-type__btn { padding: 16px; } /* Área de toque maior */

  /* 3. Botões de Ação (Voltar/Próximo) EMPILHADOS */
  .inv-step2__actions,
  .inv-step3__actions {
    grid-template-columns: 1fr; /* Uma coluna só! */
    gap: 10px;
  }
  
  /* Ordem visual: Botão principal (Próximo) primeiro, Voltar depois */
  .inv-step2__actions .inv-btn:not(.inv-back),
  .inv-step3__actions .inv-btn:not(.inv-back) {
    order: -1; 
  }

  /* 4. Ajustes de espaçamento e fontes */
  .inv-btn, .inv-wa { font-size: 16px; padding: 14px; }
  .inv-field input, .inv-field textarea { font-size: 16px; padding: 14px; }
  
  /* Lista de serviços um pouco menor para caber na tela */
  .inv-services { height: 260px !important; }
}