* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
  background: #ededed;
  color: #000;
}

a {
  color: #004b80;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  background: #ededed;
  min-height: 100vh;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.top-stripe {
  background: #f5a000;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 12px;
  font-size: 11px;
  color: #fff;
  font-weight: 600;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 8px;
  background: #fff;
}

.header__logo img {
  max-height: 110px;
  width: auto;
}

.header__nav {
  font-size: 11.5px;
  color: #004b80;
  text-align: right;
  line-height: 1.5;
}

.content {
  padding: 4px 6px 40px;
}

.card {
  background: #fff;
  border: 1px solid #f5a000;
  padding: 12px 12px 26px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 0 0 1px #f5a000 inset;
}

.card__title {
  text-align: center;
  font-size: 12px;
  color: #004b80;
  font-weight: 700;
  border-top: 1px solid #f5a000;
  padding-top: 8px;
  margin-top: 4px;
}

.btn-row {
  display: flex;
  justify-content: center;
  margin: 10px 0 10px;
}

.btn-red {
  background: linear-gradient(180deg, #c30000 0%, #a10000 100%);
  border: 1px solid #7a0000;
  color: #fff;
  font-weight: 700;
  padding: 8px 20px;
  min-width: 160px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-size: 12px;
}

.btn-red:active {
  transform: translateY(1px);
}

.section-text {
  font-size: 12px;
  margin: 4px 0 10px;
}

.table-wrapper {
  overflow-x: auto;
}

.main-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.main-table th,
.main-table td {
  border: 1px solid #b5b5b5;
  padding: 6px 8px;
  text-align: center;
  vertical-align: top;
  line-height: 1.25;
}

.main-table th {
  background: #f5f5f5;
  font-weight: 700;
}

.text-left {
  text-align: left;
}

.sub {
  display: block;
  font-size: 11px;
  color: #555;
}

.col-cargo { width: 44%; }
.col-localidade { width: 9%; }
.col-remun { width: 12%; }
.col-vagas { width: 10%; }
.col-cr { width: 9%; }
.col-insc { width: 12%; }

.section-title {
  font-size: 12px;
  margin: 14px 0 6px;
}

.table-wrapper--small {
  max-width: 230px;
}

.small-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.small-table th,
.small-table td {
  border: 1px solid #b5b5b5;
  padding: 6px 8px;
  text-align: left;
}

.small-table th {
  background: #f5f5f5;
  font-weight: 700;
}

.small-table--edital {
  max-width: 240px;
}

.icon-cell {
  width: 24px;
  text-align: center;
}
.icon-cell img {
  width: 18px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.edital-link {
  color: #003f97;
  font-weight: 600;
}

.footer {
  background: #0a3051;
  color: #fff;
  padding: 14px 0 16px;
  margin-top: 12px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer__idecan {
  height: 36px;
  width: auto;
}

.footer__phone {
  height: 34px;
  width: auto;
}

.footer__text {
  line-height: 1.4;
  color: #d9e6f2;
}

.footer__links {
  color: #d9e6f2;
  text-align: right;
  flex: 1;
}

.footer__links a {
  color: #d9e6f2;
}

.floating-whatsapp {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  display: none;
}

/* Modal inscrição */
.hidden { display: none !important; }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 12px;
  z-index: 20000;
  overflow-y: auto;
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 6px;
  max-width: 640px;
  width: 100%;
  padding: 18px 18px 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.modal-step h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: #0a3051;
}

.modal-step p {
  margin: 0 0 12px;
  font-size: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.field span {
  font-weight: 700;
  color: #0a3051;
}

.field input,
.field select {
  padding: 6px 8px;
  border: 1px solid #b5b5b5;
  border-radius: 3px;
  font-size: 12px;
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 12px;
}

.inline-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}

.inline-options.tight {
  gap: 6px;
}

.modal-section-title {
  margin-bottom: 8px;
}

.section-block {
  border: 1px solid #f5a000;
  padding: 10px 12px 12px;
  margin-bottom: 12px;
}

.error-inline {
  color: #c30000;
  font-size: 12px;
  margin-top: 6px;
}

.field-error {
  border-color: #c30000 !important;
}

.inline-error {
  color: #c30000;
  font-size: 11px;
  margin-top: 4px;
}

.modal-btn-row {
  justify-content: center;
  margin-top: 12px;
}

.confirm-actions .btn-red {
  min-width: 120px;
}

.spacer-bottom {
  height: 120px;
}

.pcd-fields {
  display: grid;
  gap: 8px;
}

.pcd-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.pcd-option input[type="text"] {
  width: 100%;
}

.modal-open {
  overflow: hidden;
  height: 100vh;
}

.confirm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  font-size: 12px;
}

.confirm-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  background: #fafafa;
}

.confirm-label {
  font-weight: 700;
  color: #0a3051;
}

.confirm-value {
  color: #222;
  word-break: break-word;
}

.confirm-note {
  font-size: 13px;
  margin: 12px 0;
}

.confirm-section-title {
  font-weight: 700;
  color: #0a3051;
  margin: 16px 0 8px;
  padding-top: 8px;
  border-top: 1px solid #f5a000;
}

/* Atendimento especial */
.atendimento-list {
  display: grid;
  gap: 10px;
}

.at-item {
  display: grid;
  grid-template-columns: auto 260px 1fr;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.at-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: #0a3051;
}

.at-item input[type="text"] {
  width: 100%;
  font-size: 12px;
}

/* Quem somos page */
.qs-card {
  border: 1px solid #f5a000;
  padding: 12px 14px 14px;
  margin-bottom: 12px;
}

.qs-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #004b80;
}

.qs-card p {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.35;
}

/* Fale conosco page */
.fc-hero {
  background: url('images/atendimento.jpg') center top no-repeat;
  background-size: cover;
  height: 420px;
}

.fc-content {
  padding: 12px 8px 18px;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .header__nav {
    text-align: left;
  }

  .card {
    padding: 16px 10px 22px;
  }

  .col-cargo { width: 52%; }
  .col-localidade,
  .col-remun,
  .col-vagas,
  .col-cr,
  .col-insc { width: auto; }

  .table-wrapper--small {
    max-width: 100%;
  }

  .footer {
    padding: 16px 0 18px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer__links {
    text-align: left;
    width: 100%;
  }

  .modal-box {
    padding: 14px 12px 18px;
  }
}

@media (max-width: 640px) {
  .page {
    width: 100%;
  }

  .header__logo img {
    max-height: 90px;
  }

  .btn-red {
    width: 170px;
    text-align: center;
  }

  .footer__logos {
    gap: 10px;
  }

  .table-wrapper {
    width: 100%;
  }

  /* Oculta ícone do edital no mobile */
  .icon-cell img {
    display: none;
  }

  .modal-box {
    max-width: 95vw;
    width: 95vw;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    box-shadow: none;
    padding: 14px 12px 18px;
    margin: 10px auto;
  }

  .inline-options {
    gap: 6px;
  }

  /* Ajuste QR code no mobile */
  #pix-qrcode img {
    max-width: 260px;
    width: 100%;
    height: auto;
  }
}

