:root {
  --primary: #1f4c7a;
  --accent: #f4b400;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;
  --bg: #ffffff;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(2, 6, 23, .12);
  --radius: 18px;
  --danger: #e11d48;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  height: 100%
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--text);
  background: var(--bg)
}

/* =============== HEADER =============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(1.15) blur(8px);
  border-bottom: 1px solid var(--border)
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px
}

/* Logos topo */
.partner-left,
.partner-right {
  display: flex;
  align-items: center
}

.partner-left img,
.partner-right img {
  width: 100px;
  height: auto;
  object-fit: contain
}

.logo-ph {
  width: 150px;
  height: 150px;
  border: 2px dashed #e2e8f0;
  border-radius: 10px;
  background: #fff
}

/* Bloco de marca (texto) */
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 12px
}

.name {
  font-weight: 900;
  letter-spacing: .2px
}

.tag {
  color: var(--muted);
  font-size: .85rem
}

.spacer {
  flex: 1
}

/* =============== HERO =============== */
.hero {
  position: relative;
  padding: 60px 0 72px;
  background: radial-gradient(900px 520px at 75% -10%, rgba(31, 76, 122, .14), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f6f8fb 55%, #f8fafc 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1000px 280px at -10% 10%, rgba(244, 180, 0, .08), transparent 60%);
  pointer-events: none
}

.hero-grid {
  display: grid;
  gap: 30px;
  align-items: center;
  grid-template-columns: 1.1fr 1fr
}

@media(max-width:980px) {
  .hero-grid {
    grid-template-columns: 1fr
  }
}

.headline {
  padding-right: 20px
}

.headline h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.06;
  margin: 0 0 12px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -.4px
}

.headline p {
  color: var(--muted);
  font-size: 1.06rem;
  margin: 0 0 18px
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 800;
  font-size: .92rem
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent)
}

/* Logo ADM centralizada */
.adm-slot {
  margin-top: 28px;
  display: flex;
  justify-content: center
}

.adm-slot img {
  width: 150px;
  height: auto;
  object-fit: contain
}

.adm-slot .logo-ph {
  width: 150px;
  height: 150px;
  border-radius: 14px
}

/* =============== CARD/FORM =============== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow)
}

.card header {
  padding: 18px;
  border-bottom: 1px solid var(--border)
}

.card header h2 {
  margin: 0;
  font-size: 1.1rem
}

form {
  padding: 18px
}

.row {
  display: grid;
  gap: 12px
}

.cols-2 {
  grid-template-columns: 1fr 1fr
}

@media(max-width:900px) {
  .cols-2 {
    grid-template-columns: 1fr
  }
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
  color: #334155
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: #0b1220;
  outline: none;
  font-weight: 700
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 76, 122, .15)
}

.select-wrap {
  position: relative
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px
}

.select-wrap:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #6b7280
}

.drop {
  border: 2px dashed #e2e8f0;
  background: #fff;
  border-radius: 14px;
  padding: 14px
}

.drop-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px
}

.upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 900;
  border: none;
  cursor: pointer
}

.btn-outline {
  background: transparent;
  color: #1f4c7a;
  border: 1px solid #1f4c7a;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer
}

.btn-outline.small {
  padding: 8px 10px;
  font-size: .9rem
}

.filename {
  font-weight: 800;
  color: #0b1220
}

.hidden {
  display: none
}

/* erros visuais */
.invalid {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .15)
}

.drop.err {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, .15)
}

.check.err label {
  color: #dc2626;
  font-weight: 900
}

/* botões */
.actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap
}

.btns-left,
.btns-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}

.btns-left {
  flex: 1 1 auto
}

.btns-right {
  flex: 0 0 auto
}

@media(max-width:600px) {
  .actions {
    flex-direction: column;
    align-items: stretch
  }

  .btns-left,
  .btns-right {
    width: 100%
  }

  .btns-left button,
  .btns-right button {
    width: 100%
  }
}

button {
  cursor: pointer;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 900;
  letter-spacing: .02em
}

.btn-primary {
  background: var(--accent);
  color: #0b0f19
}

.btn-primary:disabled {
  background: #e5e7eb;
  color: #94a3b8;
  cursor: not-allowed
}

.status {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: none
}

.status.show {
  display: block
}

.ok {
  color: #16a34a
}

.err {
  color: #dc2626
}

/* ===== Overrides para jogar as logos às extremidades ===== */
.site-header .container {
  max-width: 100%;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  justify-content: space-between;
}

/* ===== Materiais úteis ===== */
.help-downloads {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px
}

.help-downloads .label {
  font-weight: 900;
  color: #334155;
  margin-bottom: 6px
}

.help-downloads .dl {
  display: block;
  font-weight: 800;
  color: #1f4c7a;
  text-decoration: none;
  line-height: 1.3
}

.help-downloads .dl+.dl {
  margin-top: 6px
}

.help-downloads .dl:hover {
  text-decoration: underline
}

/* ===== Links sociais (header) ===== */
.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: #d1d5db;
}

.social-links img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

/* responsivo: se apertar a largura, encolhe um pouco */
@media (max-width: 720px) {
  .social-links a {
    width: 38px;
    height: 38px;
  }

  .social-links img {
    width: 22px;
    height: 22px;
  }
}

/* ===== Modal de sucesso ===== */
.modal-backdrop{
  position:fixed; inset:0; z-index:50;
  background:rgba(2,6,23,.55);
  display:flex; align-items:center; justify-content:center;
}
.modal-backdrop.hidden{ display:none; }
.modal{
  width:calc(100% - 32px); max-width:420px;
  background:#fff; border:1px solid var(--border);
  border-radius:16px; box-shadow:var(--shadow);
  padding:22px; text-align:center;
}
.modal h3{ margin:0 0 8px; font-size:1.2rem; color:#0b1220; }
.modal p{ margin:0 0 16px; color:#475569; }
.modal .btn-primary{ min-width:120px; }

/* mensagem de erro embaixo do campo */
.field-error {
  margin-top: 4px;
  color: #dc2626;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-error::before {
  content: "⚠";
  font-size: 0.78rem;
}

/* se quiser tirar o vermelho das bordas antigas, garante isso: */
input,
select,
.drop {
  /* mantém borda normal */
  border-color: var(--border);
  box-shadow: none;
}

input.invalid,
select.invalid,
.drop.err {
  /* agora não vamos pintar nada aqui, porque a mensagem já resolve */
  border-color: var(--border);
  box-shadow: none;
}
