.wcm-widget-class {
  background:
    radial-gradient(circle at 2px 2px, rgba(13, 109, 141, 0.06) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(180deg, #f8fbfd 0%, #eef3f7 100%);
}

.portal-shell {
  --pf-bg: #f2f5f8;
  --pf-card: #ffffff;
  --pf-border: #d9e2ec;
  --pf-ink: #133045;
  --pf-muted: #5f7282;
  --pf-primary: #0a6d8d;
  --pf-primary-strong: #085a74;
  --pf-success: #0f766e;
  --pf-success-bg: #ecfdf5;
  --pf-danger: #b42318;

  max-width: 980px;
  margin: 28px auto;
  padding: 0 12px 32px;
  color: var(--pf-ink);
}

.page-header {
  position: relative;
  margin: 0 0 20px;
  padding: 18px 16px 14px;
  border: 1px solid #0b4a5f;
  border-radius: 12px;
  background: #0b556b;
  box-shadow: 0 8px 20px rgba(11, 85, 107, 0.24);
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.75);
}

.page-brand {
  position: absolute;
  right: 0;
  top: 6px;
  width: 188px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.page-brand img {
  max-width: 94%;
  max-height: 82%;
  object-fit: contain;
}

.brand-fallback-text {
  display: none;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.page-brand.brand-fallback .brand-fallback-text {
  display: inline-block;
}

.page-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7f0f7;
  margin-bottom: 6px;
}

.page-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
}

.page-title i {
  margin-right: 8px;
  color: #d7f0f7;
}

.page-subtitle {
  margin: 8px 0 0;
  color: #d5e8ef;
  font-size: 15px;
  max-width: 70%;
}

.form-card {
  background: var(--pf-card);
  border: 1px solid var(--pf-border);
  border-radius: 14px;
  padding: 22px 20px 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portal-shell .page-header .page-title,
.portal-shell .page-header .page-title i {
  color: #ffffff !important;
}

.portal-shell .page-header .page-subtitle {
  color: #e6f2f6 !important;
}

.portal-shell .page-header .page-eyebrow {
  color: #dff6ff !important;
}

.portal-shell .form-card {
  background: #ffffff !important;
  border-color: #cfdce8 !important;
}

.portal-shell .arquivo-nome:empty {
  display: none;
}

.form-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}

.titulo-secao {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  color: #0b3f55;
}

.sub-secao {
  margin: 6px 0 18px;
  color: var(--pf-muted);
  font-size: 13px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group > label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #324b5d;
}

.portal-shell .form-control,
.portal-shell .input-group-addon,
.portal-shell select.form-control {
  border-radius: 8px;
}

.portal-shell .form-control {
  height: 40px;
  border: 1px solid #c9d5e2;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.portal-shell textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.portal-shell .form-control:hover {
  border-color: #8fb5c3;
}

.portal-shell .form-control:focus {
  border-color: #0a6d8d;
  box-shadow: 0 0 0 3px rgba(10, 109, 141, 0.12);
}

.portal-shell .has-error .form-control,
.portal-shell .alertaCampo.has-error .form-control {
  border-color: var(--pf-danger);
}

.btn-anexo {
  background: #eef4f7;
  border: 1px dashed #9db7c5;
  color: #133045;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  transition: background 0.15s ease;
}

.btn-anexo:hover {
  background: #e4eef3;
}

.arquivo-nome {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f8fb;
  border: 1px solid #d7e5ef;
  color: #365266;
  font-size: 13px;
}

.btn-enviar {
  margin-top: 10px;
  min-width: 220px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0a6d8d 0%, #0f8f98 100%);
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  color: white;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-enviar:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(10, 109, 141, 0.25);
}

.envio-status {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
}

.envio-status.hidden {
  display: none;
}

.envio-status.success {
  color: #065f46;
  background: var(--pf-success-bg);
  border-color: #a7f3d0;
}

.envio-status.error {
  color: #7a271a;
  background: #fef3f2;
  border-color: #fecdca;
}

.portal-success-state {
  max-width: 760px;
  margin: 32px auto;
  padding: 26px 24px;
  border: 1px solid #b7ebd8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f4fffb 0%, #ecfdf5 100%);
  animation: fadeIn 0.4s ease;
}

.portal-success-title {
  margin: 0 0 8px;
  color: #0f5132;
  font-weight: 800;
}

.portal-success-desc {
  margin: 0;
  color: #1f5f46;
}

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

@media (max-width: 991px) {
  .portal-shell {
    padding: 0 10px 24px;
  }

  .page-title {
    font-size: 28px;
  }

  .page-subtitle {
    max-width: 100%;
    padding-right: 184px;
  }
}

@media (max-width: 767px) {
  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding-top: 76px;
  }

  .page-brand {
    left: 0;
    right: auto;
    top: 8px;
    width: 164px;
    height: 58px;
  }

  .page-subtitle {
    padding-right: 0;
  }

  .form-card {
    padding: 16px 14px 10px;
    border-radius: 12px;
  }

  .btn-enviar {
    width: 100%;
  }
}
