: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: #0f2c54;
  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
}

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

.note {
  font-size: 12.5px;
  color: #667;
  margin-left: 6px
}

.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;
}

.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
}

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

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

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

/* chips (centralizados) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px
}

.chips.center {
  justify-content: center;
  text-align: center
}

.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
}

.subsection-card {
  margin-top: 18px;
  padding: 18px 18px 8px;
  border: 1px solid #e4e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fd 100%);
}

.subsection-title {
  margin: 0 0 4px;
  color: #18365f;
  font-size: 15px;
  font-weight: 700;
}

.dependente-item-card {
  padding-bottom: 18px;
}

.subsection-sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.schedule-options {
  margin-top: 10px;
  border: 1px solid #dbe3f1;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.schedule-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e8edf6;
  cursor: pointer;
  color: #4b5563;
  font-size: 15px;
}

.schedule-option:last-child {
  border-bottom: 0;
}

.schedule-option input {
  appearance: none;
  width: 28px;
  height: 16px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  margin: 0;
  transition: background .18s ease;
}

.schedule-option input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.schedule-option input:checked {
  background: #2563eb;
}

.schedule-option input:checked::after {
  transform: translateX(12px);
}

.schedule-section-title {
  margin: 18px 0 8px;
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
}

.schedule-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.time-field .label {
  margin-top: 0;
}

.btn-inline-add,
.btn-inline-remove {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.btn-inline-add {
  background: #eaf2ff;
  color: #18365f;
  border-color: #cfe0ff;
  box-shadow: 0 8px 18px rgba(26, 62, 110, 0.08);
}

.btn-inline-add:hover {
  transform: translateY(-1px);
  background: #dce9ff;
}

.btn-inline-remove {
  background: #fff1f2;
  color: #b42318;
  border-color: #fecdd3;
}

.btn-inline-remove:hover {
  transform: translateY(-1px);
  background: #ffe4e6;
}

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

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

  .time-grid {
    grid-template-columns: 1fr;
  }

  .schedule-grid,
  .schedule-grid-two {
    grid-template-columns: 1fr;
  }
}

/* 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.primary:hover {
  filter: brightness(0.98)
}

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

/* botão outline corrigido */
.btn.ghost {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
  padding: 20px 16px;
  /* compensa a borda para alinhar com o primary */
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  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.ghost:active {
  transform: translateY(1px)
}

.download-callout {
  display: flex;
  justify-content: center;
  margin: 10px 0 16px;
}

.download-panel {
  margin: 10px 0 18px;
  padding: 18px;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  box-shadow: 0 10px 24px rgba(26, 62, 110, 0.08);
}

.download-file-name {
  text-align: center;
  color: #18365f;
  font-weight: 700;
  font-size: 14px;
  word-break: break-word;
}

.download-btn {
  min-width: 340px;
  max-width: 100%;
  text-decoration: none;
  background: linear-gradient(135deg, #e8f1ff 0%, #d7e8ff 100%) !important;
  border-color: #9fc0f3 !important;
  color: #12386a !important;
  box-shadow: 0 12px 28px rgba(26, 62, 110, 0.14);
}

.download-btn:hover {
  background: linear-gradient(135deg, #dceaff 0%, #c9ddff 100%) !important;
  color: #0f2c54 !important;
  transform: translateY(-1px);
}

.download-fallback-link {
  display: block;
  text-align: center;
  color: #12386a;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
}

.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);
}
