/* ========================================================================
   FORM — portado da LP Manufacturing (css/styles.css)
   ------------------------------------------------------------------------
   Mesmas regras da LP Manufacturing, com duas adaptações ao novo layout:

   1. `--purple` vira `--form-purple` para não colidir com as variáveis de cor
      que a página já define (--purple-primary / --purple-deep).
   2. `.form` não repete moldura: no Manufacturing ele é um card branco solto
      sobre o hero; aqui já vive dentro do `.hero-card`, que é branco e tem
      borda e sombra próprias. Repetir daria card dentro de card.
   ======================================================================== */

:root {
  --form-purple: #7f06c3;
}

.form-wrap { display: block; }

.form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.form__header { display: flex; flex-direction: column; gap: 16px; }
.form__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #000;
  line-height: 1.15;
}
.form__subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.1px;
  color: rgba(0,0,0,.85);
  font-weight: 500;
}
.form__fields { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: flex; flex-wrap: wrap; gap: 16px; }
.form__group {
  flex: 1 1 calc(50% - 8px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.form__group--full { flex-basis: 100%; }
.form__label {
  font-size: 12px;
  font-weight: 500;
  color: #000;
}
.form__input,
.form__select {
  width: 100%;
  height: 37px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(206,206,206,.25);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #000;
  outline: none;
  transition: box-shadow .15s;
  letter-spacing: -0.3px;
}
.form__input:focus,
.form__select:focus { box-shadow: 0 0 0 2px var(--form-purple); }
.form__input::placeholder { color: rgba(0,0,0,.7); letter-spacing: -.5px; }
.form__select-wrapper { position: relative; }
.form__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1 1l5 5 5-5' stroke='%23191919' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form__privacy {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(0,0,0,.55);
  text-align: center;
  line-height: 1.4;
}

.btn--submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
  background: var(--form-purple);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  text-align: center;
  letter-spacing: -0.2px;
}
.btn--submit:hover { transform: translateY(-1px); }

/* ========================================================================
   FORM — searchable selects, phone picker, consent block
   ======================================================================== */
.form__searchable { position: relative; }
.form__searchable-input { width: 100%; cursor: pointer; }
.form__searchable-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 4px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.form__searchable-dropdown.open { display: block; }
.form__searchable-option {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #191919;
}
.form__searchable-option:hover,
.form__searchable-option.highlighted { background: #f0edff; }
.form__searchable-option.hidden { display: none; }

.form__phone-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  border-radius: 10px;
  background: rgba(206,206,206,.25);
  padding: 0 12px;
  transition: box-shadow .15s, background .15s;
}
.form__phone-row:focus-within {
  box-shadow: 0 0 0 2px var(--form-purple);
  background: #fff;
}
.form__phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: #191919;
  user-select: none;
  cursor: pointer;
  padding: 4px 6px 4px 2px;
  margin-left: -2px;
  border-radius: 6px;
  transition: background .15s;
}
.form__phone-prefix:hover,
.form__phone-prefix:focus-visible {
  background: rgba(127,6,195,.08);
  outline: none;
}
.form__phone-flag {
  display: block;
  width: 20px; height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.form__phone-caret {
  font-size: 16px;
  line-height: 1;
  color: rgba(0,0,0,.5);
  transition: transform .15s;
  margin-left: 2px;
}
.form__phone-prefix[aria-expanded="true"] .form__phone-caret { transform: rotate(180deg); }
.form__input--phone {
  flex: 1;
  height: auto;
  border-radius: 0;
  background: transparent !important;
  padding: 0;
  box-shadow: none !important;
}
.form__input--phone:focus { box-shadow: none !important; background: transparent !important; }

.form__phone-dropdown {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  left: 0;
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.15);
  overflow: hidden;
}
.form__phone-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  background: #fafafa;
}
.form__phone-search:focus {
  background: #fff;
  border-bottom-color: var(--form-purple);
}
.form__phone-list { max-height: 280px; overflow-y: auto; }
.form__phone-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.3;
}
.form__phone-item:hover,
.form__phone-item.is-active { background: rgba(127,6,195,.10); }
.form__phone-item img {
  width: 20px; height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  flex-shrink: 0;
}
.form__phone-item-name {
  flex: 1;
  color: #191919;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.form__phone-item-dial {
  color: #666;
  font-size: 12px;
  flex-shrink: 0;
}

.form__consent {
  padding: 16px 18px;
  border: 1.5px solid var(--form-purple);
  border-radius: 10px;
  background: rgba(127,6,195,.04);
}
.form__consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.form__consent-checkbox {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin: 2px 0 0 0;
  accent-color: var(--form-purple);
  cursor: pointer;
}
.form__consent-checkbox:focus-visible {
  outline: 2px solid var(--form-purple);
  outline-offset: 2px;
  border-radius: 3px;
}
.form__consent-copy {
  font-size: 13px;
  line-height: 1.5;
  color: #191919;
  font-weight: 400;
}
.form__consent-copy a {
  color: var(--form-purple);
  text-decoration: underline;
  font-weight: 500;
}
.form__consent-links {
  margin: 10px 0 0 32px;
  font-size: 12px;
  color: #8a8a8a;
}
.form__consent-links a {
  color: var(--form-purple);
  text-decoration: underline;
  font-weight: 500;
}

/* Breakpoint do Manufacturing: campos em duas colunas a partir de 900px. */
@media (min-width: 900px) {
  .form { gap: 24px; }
  .form__title { font-size: 24px; }
  .form__group { flex: 1 1 calc(50% - 8px); }
  .form__group[style*="100%"] { flex: 1 1 100% !important; }
}

/* Em telas estreitas, meia largura deixa cada campo com ~150px: o placeholder
   "example@companyname.com" e o rótulo "Number of employees*" ficam cortados.
   O padrão passa a ser uma coluna — sem mudar nenhum campo nem o que é enviado.

   As linhas marcadas com `form__row--pair` são a exceção: nome, país/estado e
   cargo têm rótulo e valor curtos, cabem lado a lado e assim o formulário não
   vira uma coluna de onze campos. */
@media (max-width: 600px) {
  .form__group,
  .form__group[style*="100%"] { flex: 1 1 100% !important; }
  .form__row { gap: 20px; }

  .form__row--pair { gap: 12px; }
  .form__row--pair .form__group { flex: 1 1 calc(50% - 6px) !important; }
}
