.ui-widget-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.ui-dialog {
  border: none;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  max-width: 640px;
  width: calc(100% - 32px) !important;
}

.ui-dialog-title {
  display: none;
}

.ui-dialog-titlebar {
  background: transparent;
  border: none;
  padding: 8px;
}

.ui-dialog .ui-dialog-titlebar {
    padding: 1.2em 1em;
    position: relative;
}

.ui-dialog-content {
  padding: 0;
  max-height: 80vh !important;
  overflow-y: auto;
}

.ui-dialog .ui-dialog-titlebar-close {
  all: unset;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
}

.ui-dialog-titlebar-close::before {
  content: "✕";
  font-size: 1.4rem;
  font-weight: 600;
  color: #667085;
}

.ui-dialog-titlebar-close:hover {
  background: #f3f4f6;
}

.ui-dialog-titlebar-close:hover::before {
  color: #101828;
}

.webform--styled {
  padding: 0 20px 20px 20px;
}

.webform--styled .form-item {
  margin-bottom: 16px;
}

.webform--styled label {
  font-size: 14px;
  font-weight: 600;
  margin: 5px 0px;
  display: block;
  color: #344054;
}

.webform--styled .form-control {
  height: 40px;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.webform--styled textarea.form-control {
  height: auto;
  min-height: 100px;
}

.webform--styled .form-control:focus {
  border-color: #2970ff;
  box-shadow: 0 0 0 2px rgba(41, 112, 255, 0.15);
}

.webform--styled .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.webform--styled .form-check-input {
  width: 32px;
  height: 18px;
}

.webform--styled .form-check-label {
  font-size: 13px;
  color: #475467;
}

.webform--styled .form-actions {
  margin-top: 20px;
}

.webform--styled .btn-primary {
  width: 100%;
  height: 42px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  background: #2970ff;
  color: #FFF;
  border: none;
  transition: 0.2s;
}

.webform--styled .btn-primary:hover {
  background: #155eef;
}