@font-face {
  font-family: "GalanoGrotesque";
  src: url("../fonts/galano/Galano Grotesque.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "GalanoGrotesque";
  src: url("../fonts/galano/Galano Grotesque Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "GalanoGrotesque";
  src: url("../fonts/galano/Galano Grotesque Semi Bold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "GalanoGrotesque";
  src: url("../fonts/galano/Galano Grotesque Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Gotham";
  src: url("../fonts/gotham/GothamBook.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Gotham";
  src: url("../fonts/gotham/GothamMedium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Gotham";
  src: url("../fonts/gotham/GothamBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}


:root {
  --dpeam-green: #04a64b;
  --dpeam-green-hover: #03853c;
  --dpeam-teal: #104856;
  --dpeam-teal-2: #0c3a45;
  --dpeam-teal-soft: #2e6872;
  --dpeam-bg: #f3f5f4;
  --dpeam-surface: #ffffff;
  --dpeam-surface-soft: #f8fbfa;
  --dpeam-border: #d7e2dd;
  --dpeam-text: #104856;
  --dpeam-text-soft: #5d7680;
  --dpeam-text-light: #7d939b;
  --dpeam-danger: #c94b49;
  --dpeam-shadow: 0 10px 30px rgba(16, 72, 86, 0.12);
  --dpeam-shadow-soft: 0 4px 18px rgba(16, 72, 86, 0.08);
  --dpeam-radius: 16px;
  --dpeam-radius-sm: 10px;
  --dpeam-gradient: linear-gradient(135deg, #04a64b 0%, #104856 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "GalanoGrotesque", Arial, sans-serif;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--dpeam-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: var(--dpeam-text);
}

.top-bar {
  width: 100%;
  background: #0e5d58;
  height: 82px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.top-bar .logo {
  height: 50px;
  object-fit: contain;
}

#app {
  background: var(--dpeam-surface);
  border-radius: var(--dpeam-radius);
  padding: 64px 88px;
  box-shadow: var(--dpeam-shadow);
  text-align: center;
  width: min(92vw, 860px);
  margin-top: 86px;
  z-index: 10;
  transition: all 0.3s ease;
  border: 1px solid rgba(16, 72, 86, 0.06);
  position: relative;
}

.icon-top i {
  font-size: 48px;
  color: var(--dpeam-teal);
  margin-bottom: 24px;
}

h2 {
  text-align: center;
  width: 100%;
  margin: 0 0 24px 0;
  font-size: 24px;
  line-height: 1.2;
  color: var(--dpeam-teal);
  font-family: "Gotham", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.descricao {
  font-size: 15px;
  line-height: 1.6;
  color: var(--dpeam-text-soft);
  margin-bottom: 34px;
  text-align: center;
}

.form-group {
  width: 50%;
  margin: 0 auto 24px auto;
  text-align: left;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--dpeam-teal);
  display: block;
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  padding: 12px 4px;
  border: none;
  border-bottom: 2px solid #bfd1cb;
  outline: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--dpeam-text);
  background: transparent;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
  border-bottom-color: var(--dpeam-green);
}

input[type="text"]::placeholder {
  color: var(--dpeam-text-light);
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease, transform 0.2s ease;
  margin-top: 10px;
}

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

.btn-buscar {
  background-color: var(--dpeam-teal);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 72, 86, 0.18);
}

.btn-buscar:hover,
.btn-buscar:focus,
.btn-buscar:active {
  background-color: var(--dpeam-teal-2);
  color: #ffffff;
}

.btn-buscar:disabled {
  background-color: #d9e0e2;
  color: #7c8f96;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
  transform: none;
}

.btn-cancelar {
  background-color: #e7eceb;
  color: var(--dpeam-teal);
}

.btn-cancelar:hover,
.btn-cancelar:focus,
.btn-cancelar:active {
  background-color: #dbe4e2;
  color: var(--dpeam-teal);
}

.error-message {
  color: var(--dpeam-danger);
  font-size: 13px;
  margin-top: 10px;
  display: none;
}

.required-text {
  color: var(--dpeam-danger);
  font-size: 13px;
  margin-top: 18px;
  margin-bottom: 18px;
  text-align: center;
  min-height: 18px;
}

.bg-img {
  position: fixed;
  width: 100vw;
  height: auto;
  z-index: 1;
  opacity: 1;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.bg-left {
  right: 0;
  top: 0;
  bottom: auto;
}

.bg-right {
  left: 0;
  bottom: 0;
  top: auto;
}

.link-ajuda {
  display: inline-block;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--dpeam-green);
  margin-top: 4px;
  text-decoration: none;
}

.link-ajuda:hover {
  text-decoration: underline;
  color: var(--dpeam-green-hover);
}

/* Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  padding: 16px;
  background: rgba(16, 72, 86, 0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

/* Modal */
.modal {
  background: #fff;
  border-radius: 18px;
  width: min(720px, 100%);
  max-width: 90%;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.btn-open {
  background: var(--dpeam-teal);
  color: white;
}

.btn-close {
  background: #e7eceb;
  color: var(--dpeam-teal);
}

.btn-download {
  background: var(--dpeam-green);
  margin-left: 2%;
  color: white;
}

.modal-footer {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-title {
  font-weight: bold;
  color: var(--dpeam-teal);
  font-family: "Gotham", Arial, sans-serif;
}

.img-responsiva {
  max-width: 70%;
  height: auto;
  margin: auto;
  display: block;
}

.captcha-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.captcha-top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.captcha-image-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.captcha-image {
  width: 150px;
  height: 50px;
  border: 1px solid var(--dpeam-border);
  border-radius: 12px;
  background: #fff;
  object-fit: cover;
  display: block;
  box-shadow: var(--dpeam-shadow-soft);
}

.captcha-status-ok {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--dpeam-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.captcha-icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--dpeam-teal);
  cursor: pointer;
  font-size: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}

.captcha-icon-btn:hover:not(:disabled) {
  background: rgba(16, 72, 86, 0.08);
}

.btn-validar-captcha-inline {
  min-width: 126px;
  height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: #e7eceb;
  color: var(--dpeam-teal);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.btn-validar-captcha-inline:hover:not(:disabled) {
  background: #dbe4e2;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.captcha-icon-btn:disabled,
.btn-validar-captcha-inline:disabled,
.btn-buscar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-voltar {
  background-color: #e7eceb;
  color: var(--dpeam-teal);
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-voltar:hover,
.btn-voltar:focus,
.btn-voltar:active {
  background-color: #dbe4e2;
  color: var(--dpeam-teal);
}

/* Responsividade */
@media (max-width: 1024px) {
  #app {
    width: min(94vw, 760px);
    padding: 52px 48px;
  }

  .form-group {
    width: 70%;
  }

  h2 {
    width: 70%;
  }
}

@media (max-width: 768px) {
  .bg-img {
    display: none;
  }

  .top-bar {
    height: 64px;
  }

  .top-bar .logo {
    height: 40px;
  }

  #app {
    width: 92%;
    padding: 38px 24px;
    margin-top: 88px;
    border-radius: 14px;
  }

  h2 {
    width: 100%;
    font-size: 20px;
  }

  .descricao,
  .form-group {
    width: 100%;
  }

  input[type="text"] {
    width: 100%;
    font-size: 14px;
  }

  .actions {
    flex-direction: column;
    gap: 10px;
  }

  .actions button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .captcha-top-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .captcha-image-wrapper {
    flex: 0 0 auto;
  }

  .captcha-icon-btn {
    flex: 0 0 42px;
  }

  .btn-validar-captcha-inline {
    width: 100%;
    min-width: 0;
    margin-top: 4px;
  }

  .modal {
    max-width: 100%;
    padding: 18px;
  }
}

@media (max-width: 768px) {
  #app {
    padding: 28px 18px;
  }

  .top-bar {
    height: 58px;
  }

  .top-bar .logo {
    height: 34px;
  }

  .icon-top i {
    font-size: 40px;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 20px;
  }

  .descricao {
    font-size: 14px;
  }

  .form-group label {
    font-size: 13px;
  }

  input[type="text"] {
    font-size: 14px;
    padding: 11px 4px;
  }
}