:root {
  --azul: #1A3E6E;
  --vermelho: #CC4331;
  --bg: #F5F6FA;
  --txt: #2a2a2a;
  --muted: #6b7280;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: Poppins, Arial, sans-serif;
}

/* ===== HERO (compact) */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a192f 0%, #003366 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-height: 0;
  display: block;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  min-height: 138px;
}

.logo {
  height: 150px;
  width: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.hero-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: calc(100% - 220px);
  pointer-events: none;
}

.ghost {
  display: block;
  margin-left: auto;
  width: 1px;
  height: 1px;
  visibility: hidden;
}

@media (max-width:900px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 18px
  }

  .logo {
    height: 65px
  }

  .hero-title {
    position: static;
    left: auto;
    transform: none;
    width: 100%;
    text-align: left;
    pointer-events: auto;
  }

  .ghost {
    display: none
  }
}

/* ===== CONTAINER + CARD */
.container {
  max-width: 1000px;
  margin: 28px auto 60px;
  padding: 0 20px
}

.backlink {
  display: inline-block;
  color: var(--azul);
  text-decoration: none;
  margin-bottom: 14px
}

.backlink:hover {
  text-decoration: underline
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

.card-title {
  margin: 0 0 6px;
  color: var(--azul);
  font-size: 26px;
  font-weight: 700;
  text-align: center
}

.card-sub {
  margin: 0 0 22px;
  color: var(--muted);
  text-align: center
}

/* ===== FORM */
.form {
  display: block
}

.label {
  display: block;
  font-weight: 600;
  margin: 16px 0 6px;
  margin-bottom: 12px;
}

.req {
  color: var(--vermelho);
  font-weight: 700
}

.field {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  transition: box-shadow .15s, border-color .15s;
  margin-bottom: 15px;
}

.field:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(26, 62, 110, .12)
}

.textarea {
  min-height: 120px;
  resize: vertical
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: center;
  /* 🔹 centraliza os chips */
  text-align: center;
}

.mt-8 {
  margin-top: 8px
}

.mt-20 {
  margin-top: 20px
}

.chip {
  display: inline-flex;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid #cfd6e1;
  border-radius: 999px;
  background: #f7f9fc;
  color: #1f3353;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
}

.chip input:checked+span {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul)
}

/* linha com 2 colunas */
.row {
  display: flex;
  gap: 16px;
  margin-top: 6px
}

.col {
  flex: 1;
  min-width: 0
}

@media (max-width:640px) {
  .row {
    flex-direction: column
  }
}

/* ações */
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  flex-wrap: wrap
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  transition: transform .05s ease, filter .15s ease;
}

.btn.primary {
  background: var(--vermelho);
  color: #fff;
  box-shadow: 0 10px 18px rgba(204, 67, 49, .25)
}

.btn.ghost {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
  padding: 20px 16px;
  /* 🔹 reduz o padding vertical */
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  /* 🔹 centraliza verticalmente o texto */
  justify-content: center;
  box-shadow: 0 4px 10px rgba(26, 62, 110, 0.08);
}

.btn.ghost:hover {
  background: var(--azul);
  color: #fff;
  filter: brightness(1.05);
}

.btn:hover {
  filter: brightness(0.98)
}

.btn:active {
  transform: translateY(1px)
}

.backlink {
  display: inline-flex;
  /* Permite padding e alinhamento */
  align-items: center;
  /* Centraliza o texto verticalmente */
  gap: 8px;
  /* Espaçamento entre o ícone e o texto */
  color: var(--azul);
  text-decoration: none;
  margin-bottom: 24px;
  /* Aumentado para melhor separação visual */
  padding: 8px 14px;
  border: 1px solid #dfe7f3;
  /* Borda sutil */
  border-radius: 8px;
  background: #f7f9fc;
  font-weight: 600;
  transition: all 0.15s ease;
  box-shadow: 0 4px 8px rgba(26, 62, 110, 0.04);
}

.backlink:hover {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(26, 62, 110, 0.1);
}

.backlink:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(26, 62, 110, 0.04);
}

/* ===== AUTOCOMPLETE ===== */
.autocomplete {
  position: relative;
}

.autocomplete[data-disabled="true"] .field {
  background-color: #f3f4f6;
  cursor: not-allowed;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  max-height: 240px;
  overflow-y: auto;
  z-index: 12;
}

.autocomplete-list[hidden] {
  display: none;
}

.autocomplete-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.autocomplete-item:hover,
.autocomplete-item.is-active {
  background-color: #f1f5f9;
}

.autocomplete-item mark {
  background: rgba(59, 130, 246, 0.18);
  color: inherit;
  padding: 0 2px;
}
