/* Modal Baixar PDF — visual próprio (não usa .modal-interesse) */
.modal-download-pdf {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}

.modal-download-pdf.is-open,
.modal-download-pdf[style*="display: block"],
.modal-download-pdf:not([hidden]) {
  display: flex;
}

.modal-download-pdf[hidden] {
  display: none !important;
}

.modal-download-pdf__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 42, 100, 0.55);
  cursor: pointer;
}

.modal-download-pdf__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(3, 42, 100, 0.22);
  padding: 28px 28px 24px;
  box-sizing: border-box;
}

.modal-download-pdf__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #032A64;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.modal-download-pdf__close:hover {
  background: #f3f6f8;
  color: #E43470;
}

.modal-download-pdf__header {
  margin-bottom: 20px;
  padding-right: 28px;
}

.modal-download-pdf__eyebrow {
  margin: 0 0 6px;
  color: #3A99B0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-download-pdf__title {
  margin: 0 0 8px;
  color: #032A64;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.modal-download-pdf__subtitle {
  margin: 0;
  color: #5b6b7a;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.modal-download-pdf__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-download-pdf__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.modal-download-pdf__field label {
  color: #032A64;
  font-size: 13px;
  font-weight: 700;
}

.modal-download-pdf__field input,
.modal-download-pdf__field select {
  width: 100%;
  height: 42px;
  border: 1px solid #d5dde5;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
  color: #032A64;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-download-pdf__field input::placeholder {
  color: #9aa8b5;
}

.modal-download-pdf__field input:focus,
.modal-download-pdf__field select:focus {
  outline: none;
  border-color: #3A99B0;
  box-shadow: 0 0 0 3px rgba(58, 153, 176, 0.18);
}

.modal-download-pdf__field input.error-form,
.modal-download-pdf__field select.error-form {
  border-color: #E43470;
  box-shadow: 0 0 0 3px rgba(228, 52, 112, 0.12);
}

.modal-download-pdf__field input.valide-form,
.modal-download-pdf__field select.valide-form {
  border-color: #2f9e74;
  box-shadow: 0 0 0 3px rgba(47, 158, 116, 0.14);
}

.modal-download-pdf__row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 12px;
}

.modal-download-pdf__fieldset {
  margin: 4px 0 0;
  padding: 0;
  border: 0;
}

.modal-download-pdf__fieldset legend {
  color: #032A64;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
}

.modal-download-pdf__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-download-pdf__option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d5dde5;
  border-radius: 6px;
  cursor: pointer;
  color: #032A64;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.modal-download-pdf__option:hover {
  border-color: #3A99B0;
  background: #f7fbfd;
}

.modal-download-pdf__option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #E43470;
  flex-shrink: 0;
}

.modal-download-pdf__option:has(input:checked) {
  border-color: #E43470;
  background: rgba(228, 52, 112, 0.06);
}

.modal-download-pdf__submit {
  margin-top: 6px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 6px;
  background: #E43470;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.modal-download-pdf__submit:hover:not(:disabled) {
  background: #c92c60;
}

.modal-download-pdf__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.modal-download-pdf__error {
  margin: 10px 0 0;
  color: #E43470;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.modal-download-pdf__success {
  display: none;
  text-align: center;
  padding: 28px 12px 16px;
}

.modal-download-pdf__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(58, 153, 176, 0.12);
  color: #3A99B0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.modal-download-pdf__success p {
  margin: 0;
  color: #032A64;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .modal-download-pdf__dialog {
    padding: 24px 18px 20px;
  }

  .modal-download-pdf__row {
    grid-template-columns: 1fr;
  }

  .modal-download-pdf__title {
    font-size: 20px;
  }
}
