/* =========================================================
   NGI SUL - CANAL DE ÉTICA E DENÚNCIAS
   ========================================================= */

:root {
  --navy: #072f5f;
  --navy2: #0a467d;
  --green: #54ae32;
  --green2: #3c9422;
  --bg: #f3f7fa;
  --text: #17324d;
  --muted: #66788a;
  --line: #d9e5ec;
  --danger: #b42318;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;

  color: var(--text);

  background:
    linear-gradient(
      180deg,
      #eef5f8 0,
      #ffffff 35%,
      #f4f7f9 100%
    );
}


/* =========================================================
   PÁGINA
   ========================================================= */

.page {
  width: min(980px, calc(100% - 28px));
  margin: 28px auto 60px;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  padding: 34px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      var(--navy),
      #061e3d
    );

  border-radius: 28px;

  box-shadow:
    0 16px 50px rgba(0, 43, 84, 0.19);
}

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ngi {
  padding: 15px 18px;

  font-size: 38px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 0.9;

  white-space: nowrap;

  color: var(--navy);
  background: #ffffff;

  border-radius: 18px;
}

.ngi span {
  display: block;

  font-size: 21px;
  letter-spacing: 0;

  text-align: right;

  color: var(--green);
}

.hero h1 {
  margin: 0 0 6px;

  font-size: clamp(26px, 4vw, 42px);
}

.hero p {
  margin: 0;

  opacity: 0.88;
}


/* =========================================================
   SEGURANÇA
   ========================================================= */

.security {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 190px;
}

.shield {
  font-size: 42px;
}


/* =========================================================
   AVISO PRINCIPAL
   ========================================================= */

.notice {
  margin: -1px 25px 22px;

  padding: 16px 20px;

  font-size: 20px;

  text-align: center;

  color: #ffffff;
  background: var(--green);

  border-radius: 0 0 20px 20px;
}


/* =========================================================
   CARDS
   ========================================================= */

.card {
  margin: 20px 0;

  padding: 30px;

  background: #ffffff;

  border: 1px solid var(--line);
  border-radius: 22px;

  box-shadow:
    0 10px 30px rgba(8, 52, 92, 0.05);
}

.intro h2,
.form h2 {
  margin: 0 0 8px;

  color: var(--navy);
}

.intro p {
  line-height: 1.65;
}


/* =========================================================
   PILLS
   ========================================================= */

.pill-row {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 18px;
}

.pill-row span {
  padding: 8px 12px;

  font-weight: 700;

  color: #31751f;
  background: #eff9eb;

  border: 1px solid #cfe9c6;
  border-radius: 999px;
}


/* =========================================================
   SEÇÕES DO FORMULÁRIO
   ========================================================= */

.form section {
  position: relative;

  padding: 28px 0;

  border-bottom: 1px solid var(--line);
}

.form section:first-child {
  padding-top: 4px;
}

.form section:last-of-type {
  border-bottom: 0;
}


/* =========================================================
   NÚMERO DAS ETAPAS
   ========================================================= */

.step {
  position: absolute;

  top: 22px;
  right: 0;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  font-weight: 800;

  color: #ffffff;
  background: var(--navy);

  border-radius: 50%;
}


/* =========================================================
   TEXTOS AUXILIARES
   ========================================================= */

.hint,
.label-title {
  color: var(--muted);
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 16px;
}

.wide {
  grid-column: 1 / -1;
}


/* =========================================================
   LABELS
   ========================================================= */

label {
  display: block;

  font-weight: 700;

  color: #23415f;
}

label span {
  font-weight: 400;

  color: var(--muted);
}


/* =========================================================
   CAMPOS
   ========================================================= */

input,
textarea {
  width: 100%;

  margin-top: 7px;

  padding: 13px 14px;

  font: inherit;

  color: var(--text);
  background: #ffffff;

  border: 1px solid #bccbd6;
  border-radius: 12px;

  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--green);

  box-shadow:
    0 0 0 4px rgba(84, 174, 50, 0.09);
}

textarea {
  resize: vertical;
}


/* =========================================================
   RADIO / CHECKBOX
   ========================================================= */

.choice-grid,
.checks {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
}

.choice,
.checks label,
.declaration {
  display: flex;
  align-items: center;

  gap: 10px;

  padding: 12px 14px;

  font-weight: 600;

  background: #f8fafb;

  border: 1px solid var(--line);
  border-radius: 12px;
}

.choice input,
.checks input,
.declaration input {
  width: auto;

  margin: 0;

  accent-color: var(--green);
}

.declaration {
  align-items: flex-start;

  padding: 16px;
}


/* =========================================================
   CAMPOS CONDICIONAIS
   ========================================================= */

.conditional {
  margin-top: 18px;
}

.hidden {
  display: none !important;
}


/* =========================================================
   AVISO DE PRIVACIDADE
   ========================================================= */

.privacy {
  margin: 26px 0 14px;

  padding: 14px 16px;

  background: #eef6fc;

  border-left: 4px solid var(--navy2);
  border-radius: 10px;
}


/* =========================================================
   BOTÃO
   ========================================================= */

button {
  width: 100%;

  padding: 17px 20px;

  font-size: 17px;
  font-weight: 800;

  color: #ffffff;

  background:
    linear-gradient(
      90deg,
      var(--green2),
      var(--green)
    );

  border: 0;
  border-radius: 14px;

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(84, 174, 50, 0.19);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);

  box-shadow:
    0 10px 24px rgba(84, 174, 50, 0.26);
}

button:disabled {
  opacity: 0.6;

  cursor: wait;
}


/* =========================================================
   STATUS
   ========================================================= */

#status {
  margin-top: 14px;

  font-weight: 700;

  text-align: center;
}

#status.ok {
  color: #23751a;
}

#status.err {
  color: var(--danger);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  margin-top: 28px;

  color: #ffffff;

  background:
    linear-gradient(
      135deg,
      #0b3769 0%,
      #082b55 100%
    );

  border-radius: 20px;

  overflow: hidden;

  box-shadow:
    0 12px 32px rgba(7, 47, 95, 0.14);
}


/* =========================================================
   ÁREA PRINCIPAL DO FOOTER
   ========================================================= */

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 32px;

  min-height: 130px;

  padding: 26px 34px;
}


/* =========================================================
   LADO ESQUERDO - NGI SUL
   ========================================================= */

.footer-left {
  flex: 1;

  min-width: 0;
}

.footer-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;

  gap: 6px;

  margin-bottom: 8px;

  font-size: 18px;
  line-height: 1.45;
}

.footer-title strong {
  color: #7bd652;

  font-weight: 800;
}

.footer-title span {
  color: #ffffff;
}

.footer-left p {
  margin: 0;

  font-size: 14px;
  line-height: 1.55;

  color: #d8e3ed;
}

.footer-left p strong {
  color: #7bd652;
}


/* =========================================================
   SEPARADOR
   ========================================================= */

.footer-divider {
  flex: 0 0 1px;

  width: 1px;
  height: 64px;

  background:
    rgba(255, 255, 255, 0.18);
}


/* =========================================================
   LADO DIREITO - TECMEN
   ========================================================= */

.footer-right {
  flex: 0 0 220px;

  width: 220px;
  max-width: 220px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.footer-right small {
  display: block;

  margin: 0 0 9px;

  font-size: 10px;
  font-weight: 600;

  line-height: 1;

  text-transform: uppercase;
  letter-spacing: 1.4px;

  color: #cdd9e5;
}


/* =========================================================
   LINK TECMEN
   ========================================================= */

.footer-right a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 190px;
  max-width: 190px;
  height: 58px;

  padding: 0;
  margin: 0;

  overflow: hidden;

  text-decoration: none;
}


/* =========================================================
   LOGO TECMEN
   IMPORTANTE: LIMITA A IMAGEM EXTERNA
   ========================================================= */

.footer-logo,
.footer-right a img {
  display: block !important;

  width: auto !important;
  height: auto !important;

  max-width: 180px !important;
  max-height: 52px !important;

  margin: 0 !important;
  padding: 0 !important;

  object-fit: contain !important;

  background: transparent !important;

  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;

  transition: transform 0.2s ease;
}

.footer-right a:hover .footer-logo,
.footer-right a:hover img {
  transform: scale(1.03);
}


/* =========================================================
   PARTE INFERIOR DO FOOTER
   ========================================================= */

.footer-bottom {
  padding: 9px 20px;

  font-size: 10px;
  line-height: 1.4;

  text-align: center;

  color:
    rgba(255, 255, 255, 0.58);

  border-top:
    1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom span {
  margin: 0 6px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

  .page {
    width: min(100% - 16px, 980px);

    margin-top: 8px;
  }


  /* HEADER */

  .hero {
    display: block;

    padding: 22px;

    border-radius: 20px;
  }

  .brand {
    align-items: flex-start;
  }

  .ngi {
    font-size: 29px;
  }

  .security {
    margin-top: 18px;
  }


  /* AVISO */

  .notice {
    margin: 0 12px 16px;

    font-size: 16px;
  }


  /* CARDS */

  .card {
    padding: 20px;

    border-radius: 17px;
  }


  /* FORM */

  .grid,
  .choice-grid,
  .checks {
    grid-template-columns: 1fr;
  }

  .step {
    position: static;

    margin-bottom: 10px;
  }


  /* FOOTER */

  .footer {
    border-radius: 16px;
  }

  .footer-main {
    flex-direction: column;

    gap: 20px;

    min-height: 0;

    padding: 24px 20px;

    text-align: center;
  }

  .footer-left {
    width: 100%;
  }

  .footer-title {
    justify-content: center;

    font-size: 16px;
  }

  .footer-left p {
    font-size: 13px;
  }

  .footer-divider {
    flex: 0 0 1px;

    width: 80px;
    height: 1px;
  }

  .footer-right {
    flex: none;

    width: 190px;
    max-width: 190px;
  }

  .footer-right a {
    width: 170px;
    max-width: 170px;

    height: 52px;
  }

  .footer-logo,
  .footer-right a img {
    max-width: 165px !important;
    max-height: 46px !important;
  }

  .footer-bottom {
    font-size: 9px;
  }
}
