*,
*::before,
*::after {
  box-sizing: border-box;
}

body.inscricao-page {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#bloco_rodape img.conf-footer__logo {
  width: auto;
  height: 28px;
  max-width: 148px;
  max-height: 28px;
}

.conf-container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 15px;
}

.conf-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.conf-row--gap {
  margin-top: 20px;
}

.conf-row--center {
  justify-content: center;
}

.conf-row--info {
  align-items: flex-start;
}

.conf-row--footer-top {
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.conf-row--footer-links {
  padding: 10px 0 0;
}

.conf-col-12,
.conf-col-8,
.conf-col-6,
.conf-col-4,
.conf-col-3 {
  padding: 0 15px;
  width: 100%;
}

.conf-col-8--padded {
  padding-left: 30px;
  padding-right: 30px;
}

.conf-col-4--end,
.conf-col-6--end,
.conf-col-3--end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .conf-col-12 { width: 100%; }
  .conf-col-8 { width: 66.666%; }
  .conf-col-6 { width: 50%; }
  .conf-col-4 { width: 33.333%; }
  .conf-col-3 { width: 25%; }
}

/* bloco_header */

#bloco_header {
  width: 100%;
  background-color: #184036;
  padding: 8px 0 28px;
}

header {
  display: block;
  margin: 0 auto;
  width: 100%;
}

.conf-header__inner {
  text-align: center;
}

.conf-header__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  line-height: 18px;
}

/* bloco_banner */

#bloco_banner {
  width: 100%;
  background-color: #f0f0f0;
}

.conf-banner__img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dadada;
  border-radius: 10px;
  margin-top: -20px;
  margin-bottom: -20px;
}

/* bloco_titulo */

#bloco_titulo {
  width: 100%;
  background-color: #fff;
  padding: 48px 0 15px;
}

h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.1;
  color: #333;
  font-weight: 700;
}

.conf-meta {
  margin: 0 0 4px;
  font-size: 1.15rem;
  color: #777;
}

.conf-meta--bold {
  color: #222;
  font-weight: 700;
}

.conf-meta--selected {
  margin-top: 10px;
  color: #333;
}

.conf-back-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f8f4e;
  text-decoration: none;
}

.conf-back-link:hover {
  text-decoration: underline;
}

.conf-inscricao-badge {
  display: flex;
  align-items: stretch;
  width: min(100%, 300px);
  min-height: 90px;
  border-radius: 4px;
  overflow: hidden;
  background: #27ae60;
  color: #fff;
  cursor: default;
  text-decoration: none;
}

.conf-inscricao-badge--link {
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.conf-inscricao-badge--link:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.conf-inscricao-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33.333%;
  background: #1e8449;
  padding: 16px 8px;
}

.conf-inscricao-badge__icon svg {
  width: 42px;
  height: 42px;
}

.conf-inscricao-badge__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 14px;
}

.conf-inscricao-badge__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.conf-inscricao-badge__sub {
  margin: 2px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}

/* bloco_descricao */

#bloco_descricao {
  width: 100%;
  background-color: #f9f9f9;
  padding: 20px 0;
}

.conf-policy {
  font-size: 1.05rem;
  color: #666;
}

.conf-policy p {
  margin: 0 0 12px;
}

.conf-policy strong {
  color: #333;
}

.conf-divider {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 10px 0 0;
}

/* bloco_organizador */

#bloco_organizador {
  width: 100%;
  background-color: #eaeaea;
  padding: 20px 0 25px;
}

h4 {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.conf-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  font-size: 1.05rem;
  color: #777;
}

.conf-contact__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #27ae60;
}

.conf-contact a {
  text-decoration: none;
  color: inherit;
}

.conf-contact a:hover {
  text-decoration: underline;
}

/* bloco_info */

#bloco_info {
  width: 100%;
  background-color: #fff;
  padding: 28px 0 32px;
  border-top: 1px solid #ececec;
}

.conf-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.conf-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.conf-trust__item--panel {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.conf-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  flex-shrink: 0;
}

.conf-trust__icon svg {
  width: 24px;
  height: 24px;
}

.conf-trust__icon--nav {
  background: #e8f7ee;
  color: #1f8f4e;
}

.conf-trust__icon--ssl {
  background: #eef3fb;
  color: #2f5f9e;
}

.conf-trust__copy {
  min-width: 0;
}

.conf-trust__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #2b2b2b;
  line-height: 1.25;
}

.conf-trust__sub {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: #777;
  line-height: 1.4;
}

.conf-trust__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  min-width: 72px;
  padding: 6px 12px;
  border: 1px solid #d5deea;
  border-radius: 6px;
  background: #fff;
  color: #2f5f9e;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.conf-panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: 12px 16px;
  border: 1px solid #27ae60;
  border-radius: 8px;
  background: #27ae60;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.conf-panel-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.conf-panel-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .conf-trust {
    grid-template-columns: 1fr;
  }
}

/* bloco_rodape */

#bloco_rodape {
  width: 100%;
  background-color: #111a32;
  color: #fff;
  padding: 14px 0;
}

.conf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 4px 0;
}

.conf-footer__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 148px;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
}

#bloco_rodape .conf-footer__logo {
  display: block;
  width: auto;
  height: 28px;
  max-width: 148px;
  max-height: 28px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.95;
}

.conf-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.conf-footer__nav a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  white-space: nowrap;
}

.conf-footer__nav a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .conf-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .conf-footer__nav {
    gap: 8px 14px;
  }
}

@media (max-width: 767px) {
  #bloco_titulo {
    padding-top: 32px;
  }

  .conf-col-4--end,
  .conf-col-3--end,
  .conf-col-6--end {
    align-items: flex-start;
    margin-top: 16px;
  }

  .conf-inscricao-badge {
    width: 100%;
  }

  .conf-col-8--padded {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Oficinas list */

.conf-oficinas-list {
  margin-top: 24px;
}

.conf-oficinas-list__title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
}

.conf-oficinas-list__intro {
  margin: 0 0 16px;
  color: #666;
  font-size: 0.98rem;
}

.conf-oficinas-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.conf-oficina-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

.conf-oficina-card--esgotada {
  opacity: 0.72;
  background: #f7f7f7;
}

.conf-oficina-card__municipio {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #222;
}

.conf-oficina-card__meta,
.conf-oficina-card__local {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #666;
}

.conf-oficina-card__vagas {
  margin: 8px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
}

.conf-oficina-card__vagas--aberta {
  color: #1f8f4e;
}

.conf-oficina-card__vagas--esgotada {
  color: #a33;
}

.conf-oficina-card__vagas-total {
  font-weight: 500;
  color: #888;
}

.conf-oficina-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 11px 18px;
  border-radius: 6px;
  background: #27ae60;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.conf-oficina-card__btn:hover {
  filter: brightness(1.05);
  color: #fff;
  text-decoration: none;
}

.conf-oficina-card__btn--disabled {
  background: #bbb;
  color: #fff;
  cursor: not-allowed;
}

/* Formulário */

#bloco_formulario {
  width: 100%;
  background-color: #f9f9f9;
  padding: 20px 0 30px;
}

.conf-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
}

.conf-alert--error {
  background: #fdecea;
  color: #8a1f17;
  border: 1px solid #f5c2c0;
}

.conf-alert--success {
  background: #e8f7ee;
  color: #145c32;
  border: 1px solid #b9e3c8;
}

.conf-form {
  display: grid;
  gap: 20px;
}

.conf-fieldset {
  margin: 0;
  padding: 18px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
}

.conf-fieldset legend {
  padding: 0 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

.conf-field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.conf-field > span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #444;
}

.conf-field input,
.conf-field select,
.conf-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font: inherit;
  color: #333;
  background: #fff;
}

.conf-field textarea {
  resize: vertical;
  min-height: 90px;
}

.conf-oficina-resumo {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3faf5;
  border: 1px solid #cfe8d6;
  font-size: 0.92rem;
  color: #355;
}

.conf-field-hint {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #777;
  line-height: 1.45;
}

.conf-checkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.conf-checkgrid--footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.conf-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fafafa;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.conf-check:hover {
  border-color: #b9d9c4;
  background: #f6fbf8;
}

.conf-check:has(input:checked) {
  border-color: #27ae60;
  background: #f0faf4;
  box-shadow: inset 0 0 0 1px rgba(39, 174, 96, 0.15);
}

.conf-check--none:has(input:checked) {
  border-color: #6b8f79;
  background: #eef5f0;
}

.conf-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #27ae60;
  cursor: pointer;
}

.conf-check__text {
  flex: 1;
  min-width: 0;
}

.conf-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fafafa;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
  cursor: pointer;
}

.conf-consent:has(input:checked) {
  border-color: #27ae60;
  background: #f0faf4;
}

.conf-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #27ae60;
  cursor: pointer;
}

@media (max-width: 640px) {
  .conf-checkgrid {
    grid-template-columns: 1fr;
  }
}

.conf-submit {
  justify-self: start;
  padding: 14px 28px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f8f4e, #146b3a);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.conf-submit:hover:not(:disabled) {
  filter: brightness(1.05);
}

.conf-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
